body {
  background-image: url("img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  font-family: "zabars", Arial, Helvetica, sans-serif;
  margin: 0;
}

body div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

canvas {
  background-color: black;
  display: block;
  width: 100%;
  height: 100%;
}

.instructions-container {
  width: 60%;
  height: 60%;
  display: flex;
  flex-direction: column;
  color: black;
  font-size: 32px;
  background-color: #ffa500;
  border: 5px solid black;
  border-radius: 10px;
  z-index: 5;
  position: absolute;
  justify-content: start;
}

.instructions-container span {
  display: flex;
  justify-content: center;
  height: 80%;
}

.overlay-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  z-index: 4;
}

.close-image {
  display: flex;
  align-items: end;
  width: 100%;
  padding-right: 25px;
  padding-top: 15px;
}

.close-image img {
  height: 25px;
  cursor: pointer;
}

.mute {
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
  position: absolute;
  z-index: 3;
  display: none;
}

button {
  width: 180px;
  height: 60px;
  font-size: 28px;
  font-family: "zabars";
  background-color: #ffa500;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 1.5px;
}

#muteButton {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#restart {
  display: none;
  position: absolute;
  top: 160px;
}

#muteButton,
#restart {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
}

.container {
  position: relative;
  width: 720px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.start-screen {
  position: absolute;
  width: 720px;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.start-screen-image {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.start-game-instructions-btn {
  position: absolute;
  z-index: 2;
  top: 28px;
}

.start-game-instructions-btn {
  display: flex;
  gap: 16px;
  flex-direction: row;
}

.turn-device {
  width: 100%;
  height: 100%;
  background-color: #ffa500;
}

.turn-device img {
  width: 50%;
}

.responsive-buttons {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 80%;
  z-index: 999;
  display: none;
}

.responsive-left-right,
.responsive-jump-throw {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.responsive-left-right div,
.responsive-jump-throw div {
  background-color: #ffa500;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  border: 3px solid black;
  touch-action: manipulation;
}

button:hover, .close-image img {
  transform: scale(1.05);
}

.d-none {
  display: none;
}

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

@media only screen and (min-width: 720px) {
  .turn-device {
    display: none;
  }
}

@media only screen and (max-width: 720px) and (orientation: portrait) {
  .container,
  canvas,
  .start-screen,
  .instructions-container,
  .mute,
  #startScreen,
  #restart,
  .game-container {
    display: none !important;
  }

  .turn-device {
    display: flex; /* Zeigt das Dreh-Bild im Hochformat */
  }
}

@media only screen and (max-width: 720px) and (orientation: landscape) {
  .container,
  canvas,
  .start-screen {
    width: 100% !important;
  }

  .turn-device {
    display: none;
  }

  #restart {
    top: 20px !important;
  }

  .header {
    display: none;
  }

  span {
    font-size: 24px;
    text-align: center;
  }

  .close-image img {
    height: 16px !important;
  }

  .start-game-instructions-btn {
    top: 20px !important;
  }

  .responsive-buttons {
    display: flex;
  }
}

@media only screen and (max-height: 480px) {
  .container,
  canvas,
  .start-screen {
    height: 100vh !important;
    width: 100%;
  }
  .header {
    display: none;
  }

  #restart {
    top: 20px;
  }

  button {
    font-size: 18px;
    width: 150px;
  }

  .responsive-buttons {
    display: flex;
  }
}
