@font-face {
  font-family: "Zabars";
  src: url("fonts/Zabars.ttf") format("truetype");
}

* {
  box-sizing: border-box;
  font-family: "zabars", Arial, Helvetica, sans-serif;
  margin: 0;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

html {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  background-image: url("img/myImages/background6.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  letter-spacing: 3px;
  overflow: hidden;
}

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

.brownColor {
  color: rgb(114, 23, 23);
}

.no-underline {
  text-decoration: none !important;
}

canvas {
  display: block;
  border: 2px solid black;
  border-radius: 16px;
  box-shadow: 2px 1px 12px 6px rgba(0, 0, 0, 0.4);
}

h1 {
  color: black;
  position: relative;
  top: 0;
  font-size: 40px;
  padding: 0px 16px;
  text-align: center;
}

h2 {
  text-align: center;
  text-decoration: underline;
  font-size: 32px;
  margin: 0;
}

h3 {
  font-size: 24px;
}

span {
  font-size: 24px;
}

#rotateImage {
  height: 68px;
}

#rotateHint {
  color: rgb(114, 23, 23);
}

#soundOnImg:hover,
#soundOffImg:hover,
#pauseGameImg:hover,
#playGameImg:hover {
  cursor: pointer;
}

#soundOnImg,
#soundOffImg,
#pauseGameImg,
#playGameImg {
  width: 50px;
}

.soundControl {
  position: absolute;
  display: flex;
  gap: 30px;
  top: 30px;
  left: 50%;
  transform: translate(-50%, 0%);
}

.startscreen {
  width: 720px;
  height: 480px;
  background: url("img/9_intro_outro_screens/start/startscreen_2.png");
  background-position: center;
  background-size: cover;
  position: relative;
  border: 3px solid black;
  border-radius: 16px;
  box-shadow: 2px 1px 12px 6px rgba(0, 0, 0, 0.4);
}

.controlsscreen {
  width: 720px;
  height: 480px;
  position: relative;
  border: 3px solid black;
  border-radius: 16px;
  box-shadow: 2px 1px 12px 6px rgba(0, 0, 0, 0.4);
  background: url("img/5_background/first_half_background.png");
  background-position: center;
  background-size: cover;
}

.gameScreen {
  position: relative;
}

.winningscreen,
.loosingscreen {
  width: 720px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 3px solid black;
  border-radius: 16px;
  box-shadow: 2px 1px 12px 6px rgba(0, 0, 0, 0.4);
  background-color: rgba(221, 160, 81, 0.863);
}

.moving,
.jumpingAndThrow {
  display: flex;
  gap: 50px;
}

.moving > svg {
  height: 40px;
  background-color: white;
  border-radius: 50%;
}

.jumpingAndThrow > svg {
  height: 40px;
  background-color: white;
  border-radius: 50%;
}

.jumpingAndThrow > img {
  height: 40px;
  background-color: #ffd43b;
  border-radius: 50%;
}

#controlsForMobile {
  position: absolute;
  bottom: 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0px 50px;
}

.loosingscreen {
  overflow: hidden;
}

.backToStartscreen {
  position: absolute;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.backToStartscreen p {
  font-size: 27px;
}

.backToStartscreen:hover {
  cursor: pointer;
  text-shadow: 2px 1px 8px black;
  scale: 1.1;
}

.restartImg {
  height: 40px;
}

.wonImg,
.looseImg {
  height: 0;
  width: 0;
  border-radius: 13px;
}

.animateImgLoose {
  animation: expandLoose 3s forwards;
}

.animateImgWin {
  animation: expandWin 3s forwards;
}

.buttons {
  position: absolute;
  display: flex;
  justify-content: center;
  left: 80%;
  transform: translate(-50%, 50%);
  gap: 24px;
  top: -25px;
}

.buttons button {
  background: none;
  border: none;
  border-radius: 50%;
  transition: 0.25s;
}

.buttons button:hover {
  cursor: pointer;
  scale: 1.2;
}

.buttons button img {
  width: 65px;
  height: 65px;
}

.informationImg {
  position: absolute;
  width: 75px;
  height: 75px;
  top: 16px;
  left: 16px;
  transition: 0.25s;
}

.informationImg:hover {
  cursor: pointer;
  scale: 1.2;
}

.controlsscreen {
  display: flex;
  /* justify-content: center; */
  flex-direction: column;
}

.move,
.jump,
.throw {
  box-sizing: border-box;
  display: flex;
  justify-content: start;
  align-items: center;
  min-height: 120px;
  width: 100%;
  gap: 24px;
  padding-top: 16px;
}

.pepeImage {
  width: 100px;
  height: 100px;
  object-fit: contain;
  scale: 1.4;
  margin-bottom: 23px;
}

.bottleImage {
  width: 100px;
  height: 100px;
  object-fit: contain;
  scale: 1.2;
}

.backButtons {
  position: absolute;
  right: 16px;
  border: none;
  background: none;
  top: 8px;
  width: 75px;
  height: 75px;
  transition: 0.25s;
}

.backButtons img {
  width: 65px;
  height: 65px;
}

.backButtons:hover {
  cursor: pointer;
  scale: 1.2;
}

.inputLoadingscreen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.inputLoadingscreen span {
  font-size: 60px;
  height: 100%;
  align-content: end;
}

ul {
  padding: 0;
  align-content: end;
  height: 100%;
  margin-bottom: 20px;
}

ul > .dot {
  height: 15px;
  width: 15px;
  background-color: black;
  border-radius: 50%;
  margin-left: 20px;
  float: left;
  list-style-type: none;
}

li:nth-child(1) {
  animation: scale 1s linear infinite;
}

li:nth-child(2) {
  animation: scale 1s linear 0.2s infinite;
}

li:nth-child(3) {
  animation: scale 1s linear 0.4s infinite;
}

.informationscreen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0px 16px;
  width: 720px;
  height: 480px;
  position: relative;
  border: 3px solid black;
  border-radius: 16px;
  padding-bottom: 8px;
  box-shadow: 2px 1px 12px 6px rgba(0, 0, 0, 0.4);
  background: url("img/5_background/first_half_background.png");
  background-position: center;
  background-size: cover;
}

.menuscreen,
.imprintAndDataProtectionscreen,
.aboutTheGame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.aboutTheGameContent {
  flex-grow: 1;
  padding: 50px 12px 0px 12px;
  overflow-y: auto;
}

.aboutTheGameContent span {
  font-size: 32px;
}

.informationContent {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translate(-50%, 0);
}

.personalContent,
.dataProtectionInformation {
  display: flex;
  gap: 24px;
  transition: 0.25s;
}

.personalContent:hover,
.dataProtectionInformation:hover {
  cursor: pointer;
  scale: 1.2;
}

.personalContent span,
.dataProtectionInformation span {
  flex-wrap: wrap;
  align-content: center;
}

.imprintContent {
  padding-top: 40px;
  height: 400px;
  width: 100%;
  text-align: center;
}

.imprintContent p {
  font-size: 32px;
}

.dataProtectionContent {
  padding: 12px;
  flex-grow: 1;
  position: relative;
  display: flex;
  justify-content: start;
  border: rgba(0, 0, 0, 1);
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.linkContainer {
  max-height: 300px;
  max-width: 200px;
  border: 1px solid;
  border-radius: 24px;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.4);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.links a {
  color: black;
}

.headline {
  height: 60px;
  padding-top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding-left: 70px;
  padding-bottom: 16px;
}

.hint {
  position: absolute;
  width: 150px;
  right: 111px;
  top: 29px;
  left: 328px;
}

.hinttext {
  font-size: 16px;
}

@keyframes scale {
  25% {
    scale: 1.5;
  }
}

@keyframes expandLoose {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 110%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}

@keyframes expandWin {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 100%;
    height: 70%;
  }
  100% {
    width: 90%;
    height: 40%;
  }
}

@media only screen and (max-width: 720px) {
  canvas,
  .startscreen,
  .controlsscreen,
  .winningscreen,
  .loosingscreen,
  .gameScreen,
  .loadingscreen,
  .informationscreen {
    width: 100%;
  }
}

@media only screen and (max-height: 480px) {
  body,
  canvas,
  .startscreen,
  .controlsscreen,
  .winningscreen,
  .loosingscreen,
  .gameScreen,
  .loadingscreen,
  .informationscreen {
    height: 100dvh;
  }
}

@media only screen and (max-height: 360px) {
  .aboutTheGameContent {
    padding: 20px 12px 0px 12px;
  }
}

@media only screen and (max-height: 430px) {
  .informationContent {
    flex-direction: row;
    gap: 24px;
  }

  .informationContent div span {
    display: none;
  }

  #controlsForMobile {
    bottom: 28px;
    padding: 0px 65px;
  }

  .moving > svg {
    height: 35px;
  }

  .jumpingAndThrow > svg {
    height: 35px;
  }

  .jumpingAndThrow > img {
    height: 35px;
  }
}

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

  .content div {
    min-height: unset;
    flex-grow: 1;
    padding: unset !important;
    /* height: 100px; */
  }

  .content div img {
    height: 70px;
  }

  .pepeImage {
    margin-top: -13px;
  }

  .content {
    padding-bottom: unset !important;
  }
}
