@font-face {
  font-family: "tacobox";
  src: url("fonts/TACOBOX_.TTF") format("truetype"); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

* {
  margin: 0;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

.d-none {
  display: none;
}

.d-flex {
  display: flex;
}

.direktion-column {
  flex-direction: column;
}

html {
  height: 100%;
}

body {
  font-family: "tacobox", "Arial", "Helvetica", "sans-serif";
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bolder;
  background: url("img/background_site/mexico-desert-way.png") center center
    no-repeat;
  background-size: cover;
  letter-spacing: 5px;
  line-height: 1.4;
  text-shadow: 4px 4px 2px rgb(2, 168, 35);
  text-align: center;
}

canvas {
  background-color: black;
  border-radius: 28px;
  width: 100%;
}
.game-container {
  width: 720px;
  height: 480px;
  border-radius: 36px;
  border: 3px solid black;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  width: 720px;
  height: 480px;
  border-radius: 28px;
  position: absolute;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.overlay > * {
  position: relative;
}

.main-btn {
  border-radius: 12px;
  background-color: rgb(5, 149, 5);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border: 3px solid rgb(0, 0, 0);
  bottom: 4px;
}

.game-instructions {
  border-radius: 28px;
  border: 6px solid black;
  box-shadow: 4px 4px 2px rgb(2, 168, 35);
}
.btn-area {
  position: absolute;
  display: flex;
  gap: 8px;
  bottom: 8px;
}

.overlay.start {
  background-image: url("img/9_intro_outro_screens/start/startscreen_1.png");
  justify-content: center;
}

.restart,
.controls,
.info {
  background-color: rgba(128, 128, 128, 0.76);
}

.overlay.win {
  background-image: url("img/You won, you lost/You Win A.png");
  background-color: rgb(20, 104, 249);
  border: 3px solid rgb(251, 251, 251);
}

.overlay.game-over {
  background-image: url("img/You won, you lost/Game Over.png");
  background-color: rgb(20, 104, 249);
  border: 3px solid rgb(251, 251, 251);
}

.fullscreens {
  width: 100%;
  height: 100%;
  justify-content: center;
}

button > img {
  height: 48px;
  width: 48px;
}

.mute-btn.muted::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 3px;
  background-color: red;
  transform: rotate(-45deg);
}

.aktivBtn {
  background-color: black;
  border: 3px solid rgb(255, 0, 0);
}

.game-instructions {
  height: 100%;
  width: 100%;
}

#controls-menu > div {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#controls-menu > div > img {
  max-height: 40%;
}

span {
  color: blue;
  text-shadow: 4px 4px 2px rgba(1, 177, 253, 0.745);
  font-size: 26px;
}

.init-btn {
  height: 56px;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.6);
  color: orange;
  border-radius: 8px;
  border: 4px solid white;
  font-size: 15px;
  font-family: "tacobox", "Arial", "Helvetica", "sans-serif";
  font-weight: 200;
}

.init-btn:hover {
  scale: 1.3;
  color: black;
  background-color: orange;
  box-shadow: 4px 4px 2px rgb(2, 168, 35);
  font-size: 22px;
}

.init-btn.end-btn {
  top: 30%;
}
.init-btn.end-btn.left:hover {
  transform: translateX(-25px);
}
.init-btn.end-btn.right:hover {
  transform: translateX(25px);
}

.device-instruction {
  display: none;
}

.overlay-privacy,
.overlay-legal-notice {
  overflow: auto;
  scrollbar-width: none;
  width: 96%;
  margin-bottom: 58px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-shadow: 0px 0px 0px rgba(1, 177, 253, 0);
}

.mobile-overlay {
  width: 100%;
  display: none;
  justify-content: space-between;
  z-index: 1000;
  pointer-events: none;
  position: absolute;
  bottom: 10px;
}

.control-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  backdrop-filter: blur(5px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-hand-btn,
.left-hand-btn,
.mobile-overlay,
.game-container,
canvas,
.control-btn,
html,
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.left-hand-btn {
  justify-content: space-between;
  z-index: 1000;
  pointer-events: none;
  bottom: 10px;
  margin-left: 5%;
  gap: 28px;
  display: flex;
}
.right-hand-btn {
  justify-content: space-between;
  z-index: 1000;
  pointer-events: none;
  bottom: 10px;
  margin-right: 5%;
  gap: 28px;
  display: flex;
}

@media (max-width: 800px) and (orientation: portrait) {
  .game-container {
    display: none;
  }
  .mobile-controls {
    display: flex;
  }
  .device-instruction {
    width: 100vw;
    height: 70vh;
    display: block;
  }
  h2 {
    margin-top: 15%;
  }
}

@media (max-width: 740px) {
  .game-container,
  .overlay {
    width: 96%;
    height: 96%;
    border: 0px;
  }
}

@media (max-width: 800px) or (max-height: 550px) {
  h1 {
    display: none;
  }
  .mobile-overlay {
    display: flex;
  }

  canvas,
  .game-container,
  .overlay,
  body {
    width: 100%;
    height: 100vh;
    border: 0px;
    overflow: hidden;
  }
}
@media (max-height: 420px) {
  #controls-menu > div {
    font-size: 18px;
  }
  span {
    font-size: 22px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mobile-overlay {
    display: flex;
  }
}
