#slotMachine {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slotMachine-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  width: 90%;
  max-width: 1200px;
  padding: 5vh 2vw;
}

/* TEXT & BTN */
.slot-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 300px;
  width: 320px;
  text-align: center;
}

#slotMessage {
  font-size: 2rem;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
  min-height: 120px;
  opacity: 1;
  transition: opacity 1s ease;
  font-family: "Germania", serif;
}

#nextButtonWrapper {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s ease 1.8s, transform 1.2s ease 1.8s;
}

#nextButtonWrapper.show {
  opacity: 1;
  transform: scale(1);
}

#nextButton {
  font-family: "Rye", serif;
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
  background-color: #d72638;
  border: none;
  color: white;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#nextButton:hover {
  background-color: #f04e58;
}

/* Slot Machine */
.slot-machine {
  background: #222222;
  border-radius: 2rem;
  padding: 2rem;
  width: 340px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.machine-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.bulb {
  width: 15px;
  aspect-ratio: 1/1;
  background-color: #ffcc00;
  border-radius: 50%;
  margin: 0 0.5rem;
}

@keyframes bulbRealisticBlink {
  0%,
  88%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #ffcc00, 0 0 12px #ffcc00;
  }
  90% {
    opacity: 0.5;
    box-shadow: 0 0 2px #ffcc00;
  }
}
.machine-header .bulb:nth-child(1) {
  animation: bulbRealisticBlink 1.2s infinite ease-in-out;
}
.machine-header .bulb:nth-child(3) {
  animation: bulbRealisticBlink 1.2s infinite ease-in-out;
  animation-delay: 0.6s;
}

@keyframes flickerEntrance {
  0%,
  100% {
    text-shadow: 0 0 8px #ffcc00, 0 0 16px #ffcc00;
  }
  20% {
    text-shadow: 0 0 1px #ffcc00;
  }
  40% {
    text-shadow: 0 0 10px #ffcc00;
  }
  60% {
    text-shadow: 0 0 0px #ffcc00;
  }
  80% {
    text-shadow: 0 0 12px #ffcc00;
  }
}
.machine-title {
  font-family: "Rye", serif;
  font-size: 2rem;
  color: #ffcc00;
  animation: flickerEntrance 1.8s 1 ease-in-out forwards;
}

.machine-reel {
  display: flex;
  gap: 1rem;
  background: #555555;
  padding: 1rem;
  border: 4px solid #ffcc00;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
}

.reel {
  width: 60px;
  height: 80px;
  background: linear-gradient(to bottom, #ffffff, #cccccc);
  border: 3px solid #ffcc00;
  border-radius: 0.75rem;
  font-size: 2rem;
  font-family: "Rye", serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-bottom {
  margin-top: 1rem;
}

#spinButton {
  background: #ffcc00;
  border: none;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  font-family: "Rye", serif;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px #999999;
  color: #333333;
  transition: all 0.3s ease;
}

#spinButton:active {
  transform: translateY(4px);
  box-shadow: 0 2px #666666;
}

/* MOBILE */
@media (max-width: 768px) {
  .slotMachine-wrapper {
    flex-direction: column;
    gap: 3vh;
    padding: 2vh 2vw 10vh 2vw;
  }

  .slot-text-area {
    order: 1;
  }

  #nextButtonWrapper {
    order: 2;
  }

  .slot-machine {
    order: 3;
  }

  #slotMessage {
    font-size: 1.6rem;
    margin-bottom: 0rem;
  }
  #nextButton {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
