body {
  height: 100vh;
  width: 100%;
  margin: 0;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fe870f url('img/5_background/desert2.jpg') no-repeat fixed center;
  font-family: 'jichimichange', Arial, Helvetica, sans-serif;
}

h1 {
  margin: 0;
  font-size: 100px;
  letter-spacing: 5px;
  color: #a0220a;
  text-shadow: 8px 8px 10px rgba(0, 0, 0, 1);
  z-index: 1;
  text-align: center;
}

h3 {
  font-size: 64px;
  margin: 0;
  text-shadow: 5px 5px 10px #220d0a;
  text-align: center;
  z-index: 4;
  padding-bottom: 10px;
  letter-spacing: 5px;
}

canvas {
  position: absolute;
  display: block;
  background-color: black;
  box-shadow: 0px 0px 10px 8px rgba(255, 255, 255, 0.5);
}

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

@font-face {
  font-family: 'jichimichange';
  src: url('fonts/JI Chimichanga.ttf') format('truetype');
}

.content {
  margin-top: 100px;
  position: relative;
  width: 720px;
  height: 480px;
}

.startscreen {
  position: absolute;
  width: 720px;
  height: 480px;
  display: flex;
  justify-content: center;
  z-index: 5;
}

.startscreenimg {
  position: absolute;
  width: 720px;
  height: 480px;
  display: flex;
}

.overlay {
  position: absolute;
  width: 720px;
  height: 480px;
  color: #a0220a;
  text-shadow: 2px 2px 5px #220d0a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.overlayimg {
  position: absolute;
  width: 720px;
  height: 480px;
  z-index: 1;
}

.background {
  position: absolute;
  background-color: #ffa62b;
  opacity: 0.7;
  width: 720px;
  height: 480px;
  z-index: 2;
}

.backwards {
  position: absolute;
  z-index: 4;
  height: 50px;
  width: 50px;
  border: 1px solid #a0220a;
  border-radius: 50px;
  top: 10%;
  left: 10%;
  background-color: #fe870f;
  display: flex;
  justify-content: center;
  align-items: center;
}

.forwards {
  position: absolute;
  z-index: 4;
  height: 50px;
  width: 50px;
  border: 1px solid #a0220a;
  border-radius: 50px;
  top: 10%;
  right: 10%;
  background-color: #fe870f;
  display: flex;
  justify-content: center;
  align-items: center;
}

.backwards:hover,
.forwards:hover {
  border: 1px solid #fe870f;
  background-color: #a0220a;
}

.backwards img,
.forwards img {
  z-index: 4;
  height: 35px;
  width: 35px;
  filter: invert(14%) sepia(100%) saturate(2789%) hue-rotate(2deg) brightness(93%) contrast(93%);
}
.backwards:hover img,
.forwards:hover img {
  filter: invert(74%) sepia(25%) saturate(4727%) hue-rotate(347deg) brightness(99%) contrast(89%);
}

.endScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}

.endScreen h2 {
  font-size: 50px;
}

.overlayManual {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  position: absolute;
  width: 720px;
  height: 480px;
}

.manual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.controls,
.instructions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3;
  position: relative;
  width: 60%;
}

.flex {
  display: flex;
  justify-content: space-between;
  width: fit-content;
  z-index: 4;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 6;
}

.button {
  margin-top: 20px;
  background-color: #fe870f;
  color: #a0220a;
  font-size: 60px;
  height: 100px;
  width: 350px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 20px 2px #220d0a;
}

.button:hover,
.backwards:hover,
.forwards:hover {
  background-color: #a0220a;
  box-shadow: 3px 3px 20px 2px #220d0a;
  cursor: pointer;
  color: #fe870f;
}

.keyboardKeys {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.key {
  background-color: #fe870f;
  height: 50px;
  width: 80px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 10px 2px #220d0a;
  margin: 5px;
  font-size: 30px;
  text-shadow: none;
}

.secondRow {
  display: flex;
  align-items: center;
  gap: 20px;
}

.secondRow p {
  font-size: 30px;
  margin: 25px 0 25px 0;
}

.secondRow img {
  width: 30px;
  height: 30px;
  filter: invert(14%) sepia(100%) saturate(2789%) hue-rotate(2deg) brightness(93%) contrast(93%);
}

.volumeSpeaker {
  position: absolute;
  height: 30px;
  width: 30px;
  top: 2%;
  right: 1%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.touch {
  height: 50px;
  width: 50px;
  border-radius: 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fe870f;
  border-color: #a0220a;
}

.touchBottle {
  height: 50px;
  width: 50px;
}

.touchArrow {
  height: 30px;
  width: 30px;
  z-index: 2;
  filter: invert(14%) sepia(100%) saturate(2789%) hue-rotate(2deg) brightness(93%) contrast(93%);
}

.mobileLeft,
.mobileRight {
  display: flex;
  gap: 40px;
}

.mobileLeft {
  margin-left: 30px;
}

.mobileRight {
  margin-right: 30px;
}

.rotateDevice {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.rotateDevice h2 {
  filter: invert(80%);
  font-size: 50px;
}

.rotateDevice img {
  width: 250px;
  height: auto;
  filter: invert(80%);
}

.d-none {
  display: none;
}

@media (orientation: portrait) {
  .rotateDevice {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

@media (orientation: landscape) and (hover: none) {
  .rotateDevice {
    display: none;
  }

  .mobileversion {
    display: none;
  }

  .mobileButtons {
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 1%;
    width: 100vw;
    max-width: 720px;
  }

  .content,
  canvas,
  .background,
  .startscreen,
  .startscreenimg,
  .endScreen,
  .overlay,
  .overlayimg,
  .overlayManual {
    margin: 0;
    width: 100vw;
    max-width: 720px;
    border-radius: 0;
    height: 100%;
    max-height: 480px;
  }

  #winOrLose {
    margin: 0;
  }

  h1 {
    display: none;
  }

  .controls {
    display: none;
  }
}

@media (orientation: landscape) and (hover: none) and (max-height: 400px) {
  .instructions h3 {
    padding-bottom: 0px;
  }
}

@media only screen and (max-width: 720px) {
  h1 {
    display: none;
  }

  .content,
  canvas,
  .mobileButtons,
  .background,
  .startscreen,
  .startscreenimg,
  .endScreen,
  .overlay,
  .overlayimg,
  .overlayManual {
    width: 100vw;
    border-radius: 0;
  }
}

@media only screen and (min-width: 730px) {
  .rotateDevice {
    display: none;
  }
}

@media only screen and (max-height: 730px) {
  .content,
  canvas,
  .background,
  .startscreen,
  .startscreenimg,
  .endScreen,
  .overlay,
  .overlayimg,
  .overlayManual {
    margin-top: 0;
  }

  h1 {
    display: none;
  }
}

@media only screen and (max-height: 490px) {
  .content,
  canvas,
  .background,
  .startscreen,
  .startscreenimg,
  .endScreen,
  .overlay,
  .overlayimg {
    height: 100%;
    border-radius: 0;
  }
}
