* {
  margin: 0;
  padding: 0;
}

h3 {
  color: white;
}

span {
  color: white;
  font-size: 42px;
  font-family: "Silkscreen", cursive;
}

.play-button {
  height: 50px;
  width: 50px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  width: 100svw;
  background-image: url("./img/menue/Space3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

canvas {
  background-color: black;
  display: block;
}

#container {
  position: relative;
  border: 5px solid white;
}

#overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: black;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("./img/menue/Space6.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 100;
}

#overlay > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

#game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  z-index: 101;
}

#game-over-overlay > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

#game-over-overlay > img {
  height: 50px;
}

#mobile-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: none;
}

#mobile-directions-container {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direction-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
}

.direction-button > img {
  width: 20px;
}

#space {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  margin-right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
}

#space > img {
  width: 30px;
}

#options-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  z-index: 150;
}

#options-overlay > div {
  height: 25px;
  width: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#options-overlay > div:hover > img {
  transform: scale(1.2);
}

#options-overlay > div > img {
  width: 15px;
  height: 15px;
}

#controls {
  position: absolute;
  top: 100px;
  right: 0;
  left: 0;
  bottom: 100px;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

#controls > img {
  width: 550px;
}

.d-none {
  display: none !important;
}

.fullscreen {
  width: 100%;
  height: 100%;
}

#rotate-phone-overlay {
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
}

#rotate-phone-overlay > img {
  height: 90%;
}

@media (max-width: 730px) {
  canvas {
    width: 100vw;
    width: 100svw;
  }

  h1 {
    display: none;
  }

  #full-screen-button {
    display: none !important;
  }

  #controls-button {
    display: none !important;
  }

  #container {
    border: unset;
  }

  #mobile-overlay {
    display: flex;
  }
}

@media (max-height: 480px) {
  canvas {
    height: 100vh;
    height: 100svh;
  }

  h1 {
    display: none;
  }

  #container {
    border: unset;
  }

  #full-screen-button {
    display: none !important;
  }

  #controls-button {
    display: none !important;
  }
}
