body {
  user-select: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-image: url("img/addPicture/desertBackground.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: Bubblegum Sans, sans-serif, serif;
}

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

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

.turnDevice {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  font-size: 30px;
  font-weight: bold;
  gap: 64px;
}

#startScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 780px;
  aspect-ratio: 3/2;
  position: relative;
}

#startScreenImg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 480px;
}

#playButton {
  position: absolute;
  width: 50px;
  height: 50px;
  padding-top: 16px;
  cursor: pointer;
  animation: playButtonMove 1000ms linear infinite;
}

@keyframes playButtonMove {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.125);
  }
  100% {
    transform: scale(1.25);
  }
}

.muteContainer {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 16px;
  padding-top: 16px;
}

#unmuteSound,
#muteSound,
#toggleFullscreen {
  height: 20px;
  cursor: pointer;
}

#toggleFullscreen:hover {
  transition: 250ms ease-in-out;
  transform: scale(1.2);
}

.footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  position: absolute;
  bottom: 6px;
}

.footer div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer img {
  height: 20px;
  width: 20px;
}

.footer span {
  font-size: large;
  font-weight: bold;
}

.arrowUp {
  transform: rotate(90deg);
}

.arrowRight {
  transform: rotate(180deg);
}

.canvasContainer {
  display: flex;
  flex-direction: column;
  order: 2;
  width: 720px;
  height: 480px;
}

.touchButtons {
  position: relative;
  bottom: 45px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.newGame {
  position: absolute;
  top: 23%;
  font-weight: bold;
  font-size: 50px;
  cursor: pointer;
  transition: 250ms ease-in-out;
}

.newGame:hover {
  transition: 250ms ease-in-out;
  transform: scale(1.5);
}

@media only screen and (max-width: 720px) {
  canvas,
  .canvasContainer {
    width: 100%;
  }
  #startScreen,
  #startScreenImg {
    width: 100%;
  }
}

@media only screen and (max-height: 480px) {
  canvas,
  .canvasContainer {
    height: 100vh;
  }
  #startScreen,
  #startScreenImg {
    height: 100%;
  }
}
