body {
  height: 100vh;
  background: 
    linear-gradient(to bottom, #0c0c36 0%, #171766 40%, #23239b 100%);
  overflow: hidden;
}

#prompt {
  position: fixed;
  top: 2vh;
  left: 0;
  color: white;
  font-size: 3.7vh;
  width: 100%;
  text-align: center;
  z-index: 3;
}

#ball-container {
  position: fixed;
  top: 43vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* The ball itself */
#ball {
  position: relative;
  width: 50vh;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, #323232, #0a0a0a 80%, #000000 100%);
}

#eight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25vh;
  height: 25vh;
  background: radial-gradient(circle at 50% 50%, #dbdbdb 0%, #f0f0f0 30%, #ffffff 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.initialized #eight {
  background: radial-gradient(circle at 50% 50%, #101049 0%, #191970 50%, #131335 100%);
}

#eight:before {
  content: "8";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  color: black;
  font-family: Arial;
  font-size: 20vh;
  transform: translate(-50%, -50%);
}

.initialized #eight:before {
  content: "";
}

#answer {
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  text-align: center;
  color: white;
  font-size: 2vh;
  transform: translate(-50%, -50%);
  transition-duration: .75s;
}

#answer.shown {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.4);
}

/* Light on the bottom of the ball. */
#ball:before {
  content: "";
  position: absolute;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  bottom: 2.5%;
  left: 5%;
  opacity: 0.6;
  height: 100%;
  width: 90%;
  filter: blur(5px);
  z-index: 2;
}

/* Spot lighting on the top-left of the ball. */
#ball:after {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8) 14%, rgba(255, 255, 255, 0) 24%);
  transform: translateX(-10vh) translateY(-12vh) skewX(-20deg);
  filter: blur(10px);
}

.shake {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-3px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(6px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-12px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(12px, 0, 0);
  }
}

#question {
  position: fixed;
  width: 60vw;
  height: 8vh;
  left: 20vw;
  bottom: 15vh;
  color: white;
  background-color: rgba(255,255,255,.3);
  border: none;
  font-size: min(4.7vh, 4.7vw);
  text-align: center;
  z-index: 3;
}

#question::placeholder {
  text-align: center;
  color: #9d9de4;
}