body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  background-image: url(./img/9_intro_outro_screens/desert.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: "roundup";
}

#canvas {
  background-color: black;
  border: solid 2px black;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  box-sizing: border-box;
}

#gameControls {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  position: absolute;
  background-color: transparent;
  z-index: 999;
}

.d-none {
  display: none !important;
}

.show-buttons {
  display: block !important;
}

.btnStyle {
  position: absolute;
  background-color: orangered;
  padding: 10px;
  border-radius: 12px;
  box-shadow: inset 0px 0px 6px black;
  width: 32px;
  height: 32px;
}

.btnTouchStyl {
  border-radius: 100%;
  padding: 16px;
}

.btnHover:hover {
  background-color: rgb(255, 92, 32);
  cursor: pointer;
}

#audioImg {
  left: 35%;
  top: 25px;
}

#openScreenImg,
#closeScreenImg {
  right: 35%;
  top: 25px;
}

.throw {
  bottom: 8px;
  left: 90px;
}

.jump {
  bottom: 8px;
  left: 25px;
}

.arrowRight {
  transform: rotate(180deg);
  bottom: 8px;
  right: 90px;
}

.arrowLeft {
  bottom: 8px;
  right: 25px;
}

#gameplayInfo {
  right: 120px;
  top: 25px;
}

#i {
  right: 25px;
  top: 25px;
}

.startEndImg {
  width: 100%;
  height: 100%;
  border: solid 2px black;
  box-sizing: border-box;
}

.startEndScreen {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  box-sizing: border-box;
}

.startEndBtn {
  top: 25px;
  left: 25px;
  font-weight: bold;
  font-size: 32px;
}

#homeBtn {
  top: 25px;
  left: 90px;
}

.infodDiv {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  background-color: rgb(255, 92, 32);
  padding: 2%;
  box-sizing: border-box;
  border: solid 2px black;
  font-size: 32px;
  overflow: auto;
}

.infodDiv::-webkit-scrollbar {
  display: none;
}

.infodDiv {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#headerImpressum {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#headerImpressum h1 {
  margin-block-start: 0px;
  margin-block-end: 0px;
}

#closeImp {
  width: 40px;
  height: 40px;
}

#closeImp:hover {
  cursor: pointer;
  filter: drop-shadow(0px 0px 4px black);
}

#turnDevice {
  width: 200px;
  height: 200px;
  display: none;
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */

@media only screen and (max-width: 950px) and (orientation: portrait) {
  #canvas,
  #gameControls,
  .startEndScreen,
  .infodDiv,
  #headline,
  #headlineBottom {
    display: none;
  }

  #turnDevice {
    display: block;
    position: absolute;
    transform: translate(-50%, -50%);
  }
}

@media only screen and (max-width: 800px) and (orientation: landscape) {
  #headline,
  #headlineBottom,
  #turnDevice,
  #openScreenImg {
    display: none;
  }

  #canvas,
  #gameControls,
  .startEndScreen,
  .infodDiv {
    display: block;
  }

  .btnStyle {
    width: 28px;
    height: 28px;
    padding: 8px;
  }

  .throw,
  .jump,
  .arrowRight,
  .arrowLeft {
    display: block;
  }

  #gameplayInfo,
  #i {
    font-size: 14px;
  }

  #audioImg {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media only screen and (min-width: 800px) and (orientation: landscape) {
  .throw,
  .jump,
  .arrowRight,
  .arrowLeft {
    display: none;
  }
}

/* Responsive for tablets */
@media only screen and (max-width: 1024px) and (orientation: landscape) {
  #canvas,
  #gameControls,
  .startEndScreen,
  .infodDiv {
    max-width: 100%;
    max-height: 100%;
  }

  .btnStyle {
    width: 28px;
    height: 28px;
    padding: 8px;
  }

  #openScreenImg {
    display: none;
  }

  #audioImg {
    left: 50%;
    transform: translateX(-50%);
  }

  .throw,
  .jump,
  .arrowRight,
  .arrowLeft {
    display: block;
  }
}

/* Responsive for larger screens */
@media only screen and (min-width: 1200px) {
  #headline,
  #headlineBottom {
    font-size: 5vw;
  }

  .btnStyle {
    width: 36px;
    height: 36px;
    padding: 12px;
  }

  #openScreenImg {
    display: none;
  }

  #audioImg {
    left: 50%;
    transform: translateX(-50%);
  }

  .throw,
  .jump,
  .arrowRight,
  .arrowLeft {
    display: block;
  }
}
