@font-face {
  font-family: "zabras";
  src: url("./fonts/Zabars.ttf") format("truetype");
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background-image: url("./img/10_background_body/desert.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: white;
  font-family: "zabras", Arial, Helvetica, sans-serif;
}

h1 {
  margin: 0;
  font-size: 64px;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

canvas {
  display: block;
}

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

.d-block {
  display: block;
}

button {
  color: black;
}

#play-screen {
  position: relative;
}

#how-to-play-container {
  position: relative;
  width: 720px;
  height: 480px;
  border-radius: 20px;
  background-image: url("./img/10_background_body/hot-to-play-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#rotate-device {
  background-color: white !important;
  background-image: none !important;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#loading-screen img {
  width: 50px;
  height: 50px;
}

#start-screen,
#how-to-play,
#rotate-device {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("./img/10_background_body/desert.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1000;
}

#start-canvas {
  background: url("./img/9_intro_outro_screens/start/startscreen_1.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#legend {
  bottom: 4% !important;
}

.start-button {
  position: absolute;
  bottom: 13%;
  width: 240px;
  height: 72px;
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 40px;
  font-weight: 600;
  font-family: "zabras", Arial, Helvetica, sans-serif;
  background: linear-gradient(
    90deg,
    rgba(142, 198, 247, 1) 0%,
    rgba(251, 153, 0, 1) 100%
  );
  background-size: 150% 100%;
  background-position: right;
  transition: background-position 0.225s ease-in-out,
    box-shadow 0.225s ease-in-out;
  z-index: 1;
}

.start-button:hover,
.button:hover,
#cancel-button:hover {
  cursor: pointer;
  transform: translate(transition);
  background-position: left;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
}

#canvas {
  display: none;
}

.button,
#cancel-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(142, 198, 247, 1) 0%,
    rgba(251, 153, 0, 1) 100%
  );
  background-size: 150% 100%;
  background-position: right;
  transition: background-position 0.225s ease-in-out,
    box-shadow 0.225s ease-in-out;
}

.button img,
#cancel-button img {
  width: 35px;
  height: 35px;
}

.walk-buttons {
  position: absolute;
  left: 40px;
  bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: auto;
  height: auto;
}

.jump-throw-buttons {
  position: absolute;
  right: 40px;
  bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: auto;
  height: auto;
}

.screen-audio-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: auto;
  height: auto;
}

a {
  display: flex;
  justify-content: center;
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.icon-meaning {
  position: absolute;
  top: 30%;
  left: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.icons-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rotate-device-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rotate-device-container img {
  width: 80%;
  height: 80%;
}

.icons-container span,
.icons-container p {
  font-size: 20px;
  margin: 0;
}

.icons-container h3 {
  margin: 0;
  font-size: 24px;
}

.icon-meaning img {
  width: 35px;
  height: 35px;
}

.legals {
  position: absolute;
  bottom: 1%;
  display: flex;
  align-items: center;
  gap: 20px;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  font-size: 46px;
}

#cancel-button {
  position: absolute;
  right: 10px;
  top: 10px;
}

#back-to-menu {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

#play-again {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
}


@media (max-width: 1000px) {

.start-button {
  width: 160px;
  height: 60px;
  padding: 6px 12px;
  font-size: 30px;
  font-weight: 400;
}
}

@media (max-width: 1000px) and (orientation: landscape) {
  h1 {
    display: none;
  }

  .start-button {
    width: 160px;
    height: 60px;
    padding: 6px 12px;
    font-size: 30px;
    font-weight: 400;
  }

  #start-button {
    top: 2%;
    left: 20%;
  }

  #legend {
    top: 2% !important;
    right: 20%;
  }

  #cancel-button {
    right: 5%;
    top: 5%;
  }

  .icon-meaning {
    gap: 16px;
  }

  .icon-meaning img {
    width: 30px;
    height: 30px;
  }

  .icons-container {
    justify-content: center;
    gap: 8px;
  }

  .icons-container span,
  .icons-container p {
    font-size: 18px;
  }

  .button img,
  #cancel-button img {
    width: 20px;
    height: 20px;
  }

  .button,
  #cancel-button {
    width: 50px;
    height: 50px;
  }
}

@media only screen and (max-width: 450px) {
  h1 {
    font-size: 40px;
  }
}

@media only screen and (max-width: 720px) {
  canvas {
    width: 100%;
  }
}

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