body {
  overflow-y: scroll;
  margin: 0;
  width: 100%;
  position: fixed;
  font-family: Montserrat;
}

.message {
  display: none;
  position: absolute;
  background-color: #cacaca;
  color: #555555;
  padding: 10px;
  border-radius: 3px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
}

.light {
  position: absolute;
  cursor: move;
  background-color: dimgrey;
  color: white;
  padding: 5px;
  border-radius: 3px;
}

#start-screen {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 1;
  flex-direction: column;
}

#start-screen.fadeout {
  transition: all 1s linear;
  opacity: 0;
  pointer-events: none;
}

@keyframes scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#start-screen .title {
  text-align: center;
  font-family: Knewave;
  color: #ffffff;
  text-shadow: seagreen;
  font-size: 18px;
  animation: scale 0.5s linear 0s infinite normal;
}

#start-screen .designedby {
  text-align: center;
  font-family: Knewave;
  color: #ffffff;
  text-shadow: seagreen;
  font-size: 28px;
  animation: scale 0.5s linear 0s infinite normal;
}

#start-screen .gametitle {
  text-align: center;
  font-family: Knewave;
  color: #ffffff;
  text-shadow: seagreen;
  font-size: 56px;
  animation: scale 0.5s linear 0s infinite normal;
}

#gameover-screen {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
}

#gameover-screen .title {
  text-align: center;
  font-family: Knewave;
  color: #ffffff;
  text-shadow: seagreen;
  font-size: 23px;
  animation: scale 0.5s linear 0s infinite normal;
}

#gameover-screen.fadein {
  transition: opacity 0s linear;
  opacity: 1;
  pointer-events: all;
}

#gameover-screen.fadeout {
  transition: opacity 1s linear;
  opacity: 0;
  pointer-events: none;
}

#gameover-screen img {
  object-fit: scale-down;
  width: 100%;
  height: 100%;
}

#distance-ui {
  position: absolute;
  top: 2vh;
  left: 2vh;
  font-family: Knewave;
  font-size: 30px;
  color: white;
  text-shadow: 2px 2px #000;
  z-index: 10;
}

#power-ui {
  position: absolute;
  top: 2vh;
  right: 2vh;
  font-family: Knewave;
  font-size: 30px;
  color: white;
  text-shadow: 2px 2px #000;
  z-index: 10;
}

#load-screen {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  cursor: pointer;
  opacity: 1;
  z-index: 10;
}

#load-screen.fadeout {
  transition: all 0.1s linear;
  opacity: 0;
  pointer-events: none;
}

#load-screen .title {
  text-align: center;
  font-family: Knewave;
  color: #ffffff;
  text-shadow: seagreen;
  font-size: 28px;
}
