body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  color: white;
  font-size: 14px;
}

header {
  position: absolute;
  top: 10px;
  left: 10px;

  box-sizing: border-box;
  height: 28px;
  width: calc(100vw - 10px);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}

span.title {
  font-weight: 600;
}

header a {
  color: white;
}

header img {
  vertical-align: middle;
}

canvas {
  display: block;
  height: 100vh;
  width: 100vw;
}

footer {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 10px;
}

footer > a, a:visited {
  color: gray;
}

#overlay {
  position: absolute;
  top: calc(28px + 10px + 2px);
  left: 0;
  padding: 10px;
}

#info, #controls {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 10px;
}

#info {
  margin-bottom: 10px;
}

#info > div {
  margin-bottom: 4px;
}

.control-group:not(:last-child) {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
}

#uwpError {
  color: red;
}

button, input, select {
  padding: 4px 8px;
  border: 1px solid #666;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 3px;
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}

button {
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
}

input:focus, select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #999;
  outline: none;
}

option {
  background: #222;
  color: white;
  padding: 4px 8px;
}

.toggle-button.active {
  background: rgba(0, 150, 255, 0.6);
  border-color: #0096ff;
}

.toggle-button.active:hover {
  background: rgba(0, 150, 255, 0.8);
}

#planet-information {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 50vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: left;
  z-index: 1000;
  user-select: none;
  pointer-events: none;
}

#planet-information > div {
  margin: 0;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 10px
}

#planet-information .uwp {
  display: none;
  margin-bottom: 1em;
}

#planet-information h3 {
  display: none;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.uwp-description {
  font-size: 12px;
}

@media print {
  body {
    background: transparent;
  }
  
  canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: fill !important;
  }
  
  #overlay {
    display: none;
  }

  #planet-information {
    color: black;

    align-items: center;

    top: 0;
    right: 0;
    left: unset;
    width: 50vw;
    height: 100vh;
  }

  #planet-information > div {
    background-color: transparent
  }

  #planet-information .uwp, #planet-information h3 {
    display: block;
  }

  header, footer {
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  #planet-information {
    width: 100vw;
  }

  footer {
    visibility: hidden !important;
  }
}
