html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Bangers";
  background-image: url("../img/assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.canvas,
.canvas-fullscreen {
  display: block;
  background-color: black;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.canvas {
  width: 720px;
  height: 480px;
}

.canvas-fullscreen {
  width: 100%;
  height: 100%;
}

.canvas-buttons {
  position: absolute;
  display: flex;
  flex-direction: row;
  top: 8px;
  right: 8px;
  z-index: 20;
}

.canvas-btn {
  width: 40px;
  height: 40px;
  font-size: 16px;
  padding: 0;
  margin: 0 5px;
  color: black;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.canvas-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #f0a22d;
}

h1 {
  font-size: 95px;
  letter-spacing: 1px;
  color: #ffc105;
  -webkit-text-stroke-width: 0.1px;
  -webkit-text-stroke-color: rgb(248, 248, 248);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-block-start: 0;
  margin-block-end: 0;
}

h2 {
  font-size: 36px;
  letter-spacing: 2px;
  color: #f0a22d;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/assets/background.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 9999;
}

.hidden {
  display: none;
}

.overlay-img {
  max-width: 50%;
  max-height: 50%;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 5px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-image 0.3s ease;
}

.overlay-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #f0a22d;
  border-image: linear-gradient();
  border-image-slice: 1;
}

.settings-content {
  max-width: 700px;
  margin: 20px;
  text-align: center;
  font-size: 22px;
  font-family: "Bangers";
  color: #fff;
}

.settings-content li {
  text-align: start;
  letter-spacing: 1px;
  width: 500px;
}

.help-content {
  max-width: 700px;
  margin: 20px;
  text-align: center;
  font-size: 24px;
  color: #fff;
}

.help-content li {
  text-align: start;
}

.help-close-container {
  margin-top: 20px;
}

.impressum-link {
  font-size: 24px;
  color: #fff;

  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.impressum-link:hover {
  transform: scale(1.05);
  color: #ffc105;
}

.impressum-content {
  max-width: 700px;
  margin: 20px;
  text-align: center;
  font-size: 20px;
  color: #fff;
}

.impressum-content a {
  color: white;
}

.impressum-content a:hover {
  color: #f0a22d;
}

.impressum-close-container {
  margin-top: 20px;
}

#overlay-levelcomplete.hidden {
  display: none;
}

#mobile-buttons {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.canvas-container.paused-overlay {
  position: relative;
}

.canvas-container.paused-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
  z-index: 10;
}

.canvas-container.paused-overlay::before {
  content: "PAUSED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffc105;
  font-size: 48px;
  text-align: center;
  z-index: 1000;
}

.mobile-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  cursor: pointer;
  border-radius: 7px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px #f0a22d;
  pointer-events: auto;
}

.mobile-btn img {
  width: 25px;
  height: 25px;
}

#mobile-left,
#mobile-right,
#mobile-jump,
#mobile-throw {
  bottom: -100px;
  opacity: 0;
  transition: all 0.3s ease;
}

.winLose-image {
  width: 500px;
  height: 400px;
}

.menu-WorL img {
  width: 100px;
  height: 100px;
}
