body {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(230, 148, 27, 0.5) url("../img/11_webpage/background.png")
    no-repeat fixed center;
  height: 100vh;
  width: 100%;
  font-family: "La Tequila", sans-serif;
  margin: 0;
}

h1 {
  font-size: 50px;
  color: #a0220a;
  text-shadow: 5px 5px 10px #220d0a;
  z-index: 1;
  text-align: center;
  position: absolute;
  top: 5%;
}

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

canvas {
  position: absolute;
  background-color: black;
  display: block;
  box-shadow: 0 0 50px 30px #fed961;
  border-radius: 10px;
}

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

.startscreenimg {
  position: absolute;
  width: 720px;
  height: 480px;
  border-radius: 10px;
  display: flex;
}

.overlay {
  position: absolute;
  width: 720px;
  height: 480px;
  border-radius: 10px;
  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;
  border-radius: 10px;
  z-index: 1;
}

.background {
  position: absolute;
  background-color: #fed961;
  opacity: 0.7;
  width: 720px;
  height: 480px;
  border-radius: 10px;
  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: #ef9822;
  display: flex;
  justify-content: center;
  align-items: center;
}
.backwards:hover {
  border: 1px solid #ef9822;
  background-color: #a0220a;
}

.backwards 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{
  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;
}

.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;
}

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

.eggChicks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: fit-content;
  z-index: 4;
  gap: 10px;
}

.eggChicks img {
  transform: scaleX(-1);
  z-index:4;
  margin-left: -5px;
  align-items: end;
}

.instructionText  {  
  font-size: 8px;
  z-index: 4;
   cursor: default;
   height: min-content;
   text-shadow: 1px 1px 10px #220d0a;
}

.wrappingBox {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 70px;
}

.wrappingBox img {
  padding-left: 30px;
}

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

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

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

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

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

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

.secondRow p {
  font-size: 10px;
}

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

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

.touch-bottle {
  height: 50px;
  width: 50px;
}

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

.mobile-left, .mobile-right {
  display: flex;
  gap: 40px;
}

.mobile-left {
  margin-left: 30px;
}

.mobile-right {
  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%);
}

.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;
  }

  .mobile-buttons {
    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,  .mobile-buttons,  .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;
  }

  #winOrLose {
    margin: 0;
  }
  h1 {
    display: none;
  }
}

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