* {
  margin: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
}

.d_none {
  display: none;
}

.content {
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-image: url(../img/background/Cartoon_Forest_BG_04/Cartoon_Forest_BG_04.png);
}

h1,
h2 {
  font-family: "Anir b", sans-serif;
  text-align: center;
  background: -webkit-linear-gradient(#b09b23, #663f1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 2px black);
}

h3 {
  font-size: 24px;
}

.headline_size {
  font-size: 48px;
}

.main_container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn {
  cursor: pointer;
  font-family: "Jungle Adventure", sans-serif;
  letter-spacing: 1.5px;
  font-size: 32px;
  border: 4px solid #f6efd7;
  border-radius: 16px;
  color: #f6efd7;
  background-image: linear-gradient(to bottom right, #46790d, #559d1f);
  padding: 8px 16px;
}

/* Start Screen */

.start_screen {
  width: 720px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.position_container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

.img_startScreen {
  width: 100%;
  height: 100%;
}

.text_startScreen {
  line-height: 50px;
  font-size: 2.7em;
}

.button_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.start_game {
  width: 175px;
}

.wrapper {
  position: relative;
}

/* Screen Sources */

.screen_sources {
  font-family: "Jungle Adventure", sans-serif;
  background-image: url("../img/settings/menu_sources.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(720px / 2);
  height: 480px;
  transform: translate(-50%, -50%);
  display: none;
  gap: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.close {
  height: 40px;
  width: 40px;
  position: absolute;
  top: 17%;
  left: 85%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Screen Impressum */

.screen_impressum {
  font-family: "Jungle Adventure", sans-serif;
  background-image: url("../img/settings/menu_sources.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(720px / 2);
  height: 480px;
  transform: translate(-50%, -50%);
  display: none;
  gap: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Screen Keyboard */

.screen_keyboard {
  font-family: "Jungle Adventure", sans-serif;
  background-image: url("../img/settings/menu_sources.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(720px / 2);
  height: 480px;
  transform: translate(-50%, -50%);
  display: none;
  gap: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Screen Endboss */

.screen_endboss {
  position: absolute;
  font-family: "Anir b", sans-serif;
  text-align: center;
  background: -webkit-linear-gradient(#ff0000, #330303);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 2px black);
  font-size: 40px;
  opacity: 0;
  transition: opacity 4s ease-in-out;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.show_screen_endboss {
  opacity: 1;
}

.lost_screen {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.screen_text {
  font-family: "Jungle Adventure", sans-serif;
  font-size: 64px;
  letter-spacing: 1.5px;
  color: #ff0000; /* Rot für den Text */
  text-shadow: -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000,
    4px 4px 0 #000, 0 0 4px #000; /* Zusätzliches, weiches Schatten für dickeren Rand */
}

.endscreen {
  font-family: "Jungle Adventure", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(720px / 2);
  height: 480px;
  background-image: url("../img/settings/menu_loose.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  color: black;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 2;
}

.btn_endscreen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.show_endscreen {
  opacity: 1;
}

.collectableInfos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.img_endscreen {
  width: 32px;
  height: 32px;
}

.coins,
.enemies {
  align-items: center;
  display: flex;
  gap: 8px;
}

/* Settings */

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

.left_part {
  display: flex;
  justify-content: flex-start;
  bottom: 8px;
  left: 8px;
  gap: 16px;
  position: absolute;
}

.right_part {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  bottom: 8px;
  position: absolute;
  right: 8px;
}

.img_wrapper {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 100ms ease-in-out;
}

/* Main Container */

canvas {
  display: block;
  transition: filter 1s ease, background-color 1s ease;
}

canvas.grayscale {
  filter: grayscale(1);
}

canvas.redtone {
  filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(2) brightness(0.7);
}

/* Keyboard Layout */

.keyboard_layout {
  border: 1px solid blue;
  padding: 8px;
  width: 720px;
  display: flex;
  justify-content: space-around;
  transform: perspective(75em) rotateX(18deg);
  box-shadow: rgba(22, 31, 39, 0.42) 0px 60px 123px -25px,
    rgba(19, 26, 32, 0.08) 0px 35px 75px -35px;
  border-radius: 10px;
  border: 1px solid;
  border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}

.keyboard_content {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Jungle Adventure", sans-serif;
}

.img_key {
  height: auto;
  width: 56px;
}

.rotate_right {
  transform: rotate(90deg);
}

.rotate_left {
  transform: rotate(270deg);
}

.key_text {
  font-size: 40px;
  background: -webkit-linear-gradient(#b09b23, #663f1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 2px black);
}

.keyboard_layout_mobile {
  display: none;
  width: 720px;
  justify-content: space-between;
  padding-top: 8px;
  padding-left: 32px;
  padding-right: 32px;
}

.mobileButtons_content {
  display: flex;
  gap: 24px;
  filter: invert(86%) sepia(78%) saturate(7447%) hue-rotate(336deg)
    brightness(95%) contrast(85%);
}

.rotate_screen {
  display: none;
}

