html,
body {
  margin: 0;
  padding: 0;
  max-height: 100vh;
  overflow: hidden;
}

body {
  background: linear-gradient(to right, #360d67, #ef78a8);
  overflow-x: hidden;
}

h1 {
  margin-left: 2%;
  font-family: "Kablammo", system-ui;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "MORF" 0;
  color: palegreen;
}

#pilz {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

img {
  height: 100%;
}

#hut-img {
  height: 50%;
  width: auto;
  position: relative;
  z-index: 0;
}

#lamelle-img {
  height: 50%;
  width: auto;
  position: relative;
  z-index: -1;
  top: -220px;
}

#stiel-img {
  height: 60%;
  width: auto;
  position: relative;
  z-index: -2;
  top: -300px;
}

#randomize-button {
  position: relative;
  margin-left: 2%;
  background-color: #e7ef07; /* Hintergrundfarbe */
  color: rgb(92, 14, 59); /* Textfarbe */
  padding: 10px 20px; /* Innenabstand */
  border: none; /* Rahmen entfernen */
  border-radius: 6px; /* Abgerundete Ecken */
  font-size: 20px; /* Textgröße */
  cursor: pointer; /* Hand-Cursor */
  font-family: "Kablammo", system-ui;
}

#randomize-button:hover {
  background-color: #d0e587; /* Dunklere Hintergrundfarbe beim Hover */
}

#download-btn {
  position: sticky;
  background-color: #133e41; /* Hintergrundfarbe */
  color: rgb(153, 232, 191); /* Textfarbe */
  padding: 10px 20px; /* Innenabstand */
  border: none; /* Rahmen entfernen */
  border-radius: 6px; /* Abgerundete Ecken */
  font-size: 20px; /* Textgröße */
  cursor: pointer; /* Hand-Cursor */
  font-family: "Kablammo", system-ui;
  margin-left: 10px;
}

#download-btn:hover {
  background-color: #3a6b6e; /* Dunklere Hintergrundfarbe beim Hover */
}

.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.spore {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spore-float 400ms ease-out forwards;
}

@keyframes spore-float {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-40px) scale(0.2);
    opacity: 0;
  }
}
/* ---------- Fog ---------- */
.fogwrapper {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  -webkit-filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
  filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
}
#foglayer_01,
#foglayer_02,
#foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
}
#foglayer_01 .image01,
#foglayer_01 .image02,
#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  float: left;
  height: 100%;
  width: 50%;
}
#foglayer_01 {
  -webkit-animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
  -moz-animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
  animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
}
#foglayer_02,
#foglayer_03 {
  -webkit-animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
  -moz-animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
  animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
}

/* ---------- Moving Fog ---------- */
/*
  'size: cover' || 'size: 100%'; results remain the same
  'attachment: scroll' can be added or removed; results remain the same
  'attachment: fixed' causing unexpected results in Chrome
  'repeat-x' || 'no-repeat'; results remain the same
*/
#foglayer_01 .image01,
#foglayer_01 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png")
    center center/cover no-repeat transparent;
}
#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png")
    center center/cover no-repeat transparent;
}
/* ---------- Keyframe Layer 1 ---------- */
@-webkit-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.28;
  }
  58% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.1;
  }
}
@-moz-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.28;
  }
  58% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.1;
  }
}
@-o-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.28;
  }
  58% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.1;
  }
}
@keyframes foglayer_01_opacity {
  0% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.28;
  }
  58% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.1;
  }
}
/* ---------- Keyframe Layer 2 ---------- */
@-webkit-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.5;
  }
}
@-moz-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.5;
  }
}
@-o-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.5;
  }
}
@keyframes foglayer_02_opacity {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.5;
  }
}
/* ---------- Keyframe Layer 3 ---------- */
@-webkit-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }
  27% {
    opacity: 0.2;
  }
  52% {
    opacity: 0.6;
  }
  68% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}
@-moz-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }
  27% {
    opacity: 0.2;
  }
  52% {
    opacity: 0.6;
  }
  68% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}
@-o-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }
  27% {
    opacity: 0.2;
  }
  52% {
    opacity: 0.6;
  }
  68% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}
@keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }
  27% {
    opacity: 0.2;
  }
  52% {
    opacity: 0.6;
  }
  68% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}
/* ---------- Keyframe moveMe ---------- */
@-webkit-keyframes foglayer_moveme {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}
@-moz-keyframes foglayer_moveme {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}
@-o-keyframes foglayer_moveme {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}
@keyframes foglayer_moveme {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  #foglayer_01 .image01,
  #foglayer_01 .image02,
  #foglayer_02 .image01,
  #foglayer_02 .image02,
  #foglayer_03 .image01,
  #foglayer_03 .image02 {
    width: 100%;
  }

  .name-slot-machine {
    display: flex;

    align-items: center;
    font-family: "Kablammo", system-ui;
    z-index: 9999;
  }
}

.slot {
  position: absolute;
  margin-bottom: 5px;
  right: auto;
  left: 80vw;
  top: auto;
  bottom: 55vh;
  width: 160px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(30, 40, 30, 0.9),
    rgba(10, 15, 10, 0.9)
  );
  box-shadow: inset 0 0 12px rgba(0, 255, 200, 0.15),
    0 0 10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.slot span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: #c8ffe8;
  font-family: "Kablammo", system-ui;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transform: translateY(0);
  transition: transform 120ms ease-out;
}

/* ✨ Glühender Akzent */
.slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(100, 255, 200, 0.12);
  pointer-events: none;
}
