* {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  height: 100vh;
  width: 100vw;
  background: #000;
  overflow: clip;
}

p {
  font-family: Courier New, Courier, monospace;
  font-size: 14px;
  color: #deb887;
}

.planets {
  position: absolute;
  top: 50vh;
  left: 50vw;
}
.sphere {
  transform-origin: center bottom;
}
.orbit {
  border: 1px dashed #000;
  border-radius: 50%;
}
.caption {
  border-left: 1px #deb887 solid;
  padding-left: 0.5vh;
  margin: 1.5vh 0 0 1.5vh;
  transform-origin: left top;
}

#title {
  position: absolute;
  font-size: 180%;
}

#sun {
  background: url(../img/sun.png) 0 0/100% 100%;
  height: 5vh;
  width: 5vh;
  margin-top: -6.5vh;
  margin-left: -2.5vh;
}
#sunLight {
  background: radial-gradient(closest-side at 50% 50%, #ff760a, transparent);
  height: 50vh;
  width: 50vh;
  margin-top: -29vh;
  margin-left: -25vh;
}

#mercury {
  background: url(../img/mercury.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -11vh;
  left: -1vh;
  height: 7vh;
  width: 2vh;
}
#mercuryOrbit {
  height: 11.9vh;
  width: 11.9vh;
  margin-top: -10.1vh;
  margin-left: -6.1vh;
  border-color: #444;
}

#venus {
  background: url(../img/venus.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -16vh;
  left: -1.5vh;
  height: 12vh;
  width: 3vh;
}
#venusOrbit {
  height: 20.9vh;
  width: 20.9vh;
  margin-top: -14.6vh;
  margin-left: -10.6vh;
  border-color: #a49696;
}

#earth {
  background: url(../img/earth.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -23vh;
  left: -1.5vh;
  height: 19vh;
  width: 3vh;
}
#earthOrbit {
  height: 34.9vh;
  width: 34.9vh;
  margin-top: -21.6vh;
  margin-left: -17.6vh;
  border-color: #207fcf;
}

#moon {
  position: absolute;
  top: -0.8vh;
  height: 4.2vh;
  width: 1.5vh;
  margin-top: -2vh;
  margin-left: 0.75vh;
  transform-origin: bottom;
}
#moonOrbit {
  height: 6.8vh;
  width: 6.8vh;
  margin-top: -2vh;
  margin-left: -2vh;
  border-color: #808080;
}
#moonLight {
  height: 1.5vh;
  width: 1.5vh;
  background: url(../img/moon.png) 0 0/100% auto no-repeat;
}

#mars {
  background: url(../img/mars.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -30vh;
  left: -1.5vh;
  height: 26vh;
  width: 3vh;
}
#marsOrbit {
  height: 48.9vh;
  width: 48.9vh;
  margin-top: -28.6vh;
  margin-left: -24.6vh;
  border-color: #a0522d;
}

#jupiter {
  background: url(../img/jupiter.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -35vh;
  left: -1.5vh;
  height: 31vh;
  width: 3vh;
}
#jupiterOrbit {
  height: 58.9vh;
  width: 58.9vh;
  margin-top: -33.6vh;
  margin-left: -29.6vh;
  border-color: #808080;
}

#saturn {
  background: url(../img/saturn.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -40.5vh;
  left: -2vh;
  height: 36.5vh;
  width: 4vh;
}
#saturnOrbit {
  height: 68.9vh;
  width: 68.9vh;
  margin-top: -38.6vh;
  margin-left: -34.6vh;
  border-color: #deb887;
}

#uranus {
  background: url(../img/uranus.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -45vh;
  left: -1.5vh;
  height: 41vh;
  width: 3vh;
}
#uranusOrbit {
  height: 78.9vh;
  width: 78.9vh;
  margin-top: -43.6vh;
  margin-left: -39.6vh;
  border-color: #b3eaed;
}

#neptune {
  background: url(../img/neptune.png) 0 0/100% auto no-repeat;
  position: absolute;
  top: -50vh;
  left: -1.5vh;
  height: 46vh;
  width: 3vh;
}
#neptuneOrbit {
  height: 88.9vh;
  width: 88.9vh;
  margin-top: -48.6vh;
  margin-left: -44.6vh;
  border-color: #5177be;
}

.star {
  --star-size: "";
  position: absolute;
  height: var(--star-size);
  width: var(--star-size);
  background: dimgrey;
  border-radius: 50%;
}
      
#date {
  position: absolute;
  bottom: 0;
  height: 4vh;
  width: 100vw;
  background: #222;
  padding: 2.8vh 2vh 1.2vh 2vh;
  color: #deb887;
  font-weight: bold;
}

button {
  position: absolute;
  bottom: 0;
  border: 0;
  height: 8vh;
  width: 8vh;
  cursor: pointer;
}

#about {
  display: flex;
  position: absolute;
  top: -100vh;
  left: 0;
  height: 100vh;
  height: -webkit-fill-available;
  width: 100vw;
  align-items: center;
  justify-content: center;
  background: #222;
  transition: top 1s ease, opacity 1s ease;
}

#about p {
  padding: 20px;
  color: #deb887;
}

#close {
  float: right;
  font-size: 3em;
  font-weight: bold;
  margin: -0.2em 0 0.5em 0.5em;
  cursor: pointer;
}

#about a {
  color: #deb887;
}

#start {
  background: url("../img/start.png") 0px 0px / 100% 100% no-repeat;
}

#forward {
  background: url("../img/forward.png") 0px 0px / 100% 100% no-repeat;
}

#stop {
  background: url("../img/stop.png") 0px 0px / 100% 100% no-repeat;
}

#info {
  background: url("../img/info.png") 0px 0px / 100% 100% no-repeat;
}

@media (orientation:landscape) {
  #title {
    top: 4vh;
    left: 4vh;
  }

  #date {
    text-align: center;
  }

  #start {
    left: 50vw;
    margin-left: 16vh;
  }

  #forward {
    left: 50vw;
    margin-left: 24vh;
  }

  #stop {
    left: 50vw;
    margin-left: 32vh;
  }

  #info {
    left: 50vw;
    margin-left: 40vh;
  }
  
  #about p {
    max-width: 60vw;
  }
}

@media (orientation:portrait) {
  #title {
    top: 3vw;
    left: 3vw;
  }

  #date {
    text-align: left;
  }

  #start {
    right: 24vh;
  }

  #forward {
    right: 16vh;
  }

  #stop {
    right: 8vh;
  }

  #info {
    right: 0vh;
  }
  
  #about p {
    max-width: 90vh;
  }
}
