@font-face {
  font-family: "Zabars";
  src: url(./media/fonts/ZABARS/Zabars.ttf);
}

* {
  font-family: "Zabars", sans-serif;
  letter-spacing: 3px;
  font-size: 56px;
}

.d_none {
  display: none;
}

html {
  background-color: orangered;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(.//media/images/desert2.png);
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}

.impressum {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  h1,
  h2,
  p,
  a {
    margin: 8px;
  }
}

.alignment {
  position: relative;
  display: flex;
  flex-direction: column;
}

canvas {
  background-color: black;
  display: block;
}

.gameInstructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px;
  p {
    font-size: 32px;
    text-align: center;
    margin: 0;
  }
}

.mobileButtons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: none;
}

.actionButtons,
.moveButtons {
  display: flex;
  gap: 16px;

  button {
    background-color: transparent;
    padding: 4px;
    border-radius: 100%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: orange;
    cursor: pointer;
  }
  img {
    width: 100%;
    height: auto;
  }
}

.startGameOverlay,
.restartGameOverlay,
.landscapeOverlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  p {
    margin-top: 240px;
    color: rgb(255, 94, 0);
    -webkit-text-stroke: 1px black;
  }
}

.landscapeOverlay {
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.705);
  p {
    margin-top: 50%;
  }
}

.soundMenu,
.screenFull {
  position: absolute;
  background-color: rgb(255, 94, 0);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  cursor: pointer;
  img {
    height: 100%;
    width: 100%;
  }
}

.soundMenu {
  top: 5px;
  right: 5px;
  padding: 0;
}

.screenFull {
  top: 5px;
  right: 50px;
  padding: 8px;
}

.impressumButton {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  cursor: pointer;
}
.webNav {
  background-color: transparent;
  border-style: none;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;

  a {
    color: rgb(255, 255, 255);
    font-size: 20px;
  }
}

.webNavImpressum {
  background-color: transparent;
  border-style: none;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;

  a {
    color: rgb(255, 255, 255);
    font-size: 20px;
  }
}

@media only screen and (max-width: 960px) {
  canvas {
    width: 100%;
  }
}

@media only screen and (max-height: 1050px) and (max-width: 1400px) {
  .mobileButtons {
    top: 80%;
    display: flex;
    justify-content: space-between;
  }

  h1 {
    margin: 0;
  }
}

@media only screen and (max-height: 560px) and (max-width: 960px) {
  canvas {
    height: 100vh;
  }

  .webNav {
    display: none;
  }

  body {
    overflow-y: hidden;
  }

  h1 {
    display: none;
  }
  .gameInstructions {
    display: none;
  }
}

@media (max-width: 600px) {
  .impressum {
    h1 {
      font-size: 40px;
    }
    h2 {
      font-size: 40px;
    }
    p {
      font-size: 24px;
    }
  }
}

@media (max-width: 550px) {
  .actionButtons,
  .moveButtons {
    button {
      width: 40px;
      height: 40px;
    }
  }

  .soundMenu,
  .screenFull {
    height: 40px;
    width: 40px;
  }

  .startGameOverlay,
  .restartGameOverlay,
  .landscapeOverlay {
    p {
      font-size: 36px;
      margin-top: 100px;
    }
  }
}
