body {
  background-color: #111;
  font-family: 'Courier New', monospace;
  color: #eee;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1 {
  color: #ff0;
  text-shadow: 0 0 10px #f90;
  margin: 20px 0;
}

.slot-machine {
  border: 4px solid #333;
  border-radius: 20px;
  background: linear-gradient(#222, #000);
  width: 90%;
  max-width: 600px;
  margin: auto;
  padding: 20px;
  box-shadow: 0 0 30px #0ff;
}

.display p {
  margin: 5px;
  font-size: 1.2em;
  color: #0f0;
}

.row-selector {
  margin: 15px 0;
  color: #ccc;
}

.reels {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.reel {
  height: 44vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Bonus: Blinkende Umrandung */
.symbol.bonus-active {
  animation: bonus-blink 0.6s infinite alternate;
}

/* Bonus: Spezielle Darstellung für 👑 Symbol */
.symbol.bonus-symbol {
  background: repeating-linear-gradient(
    45deg,
    #555,
    #555 5px,
    #777 5px,
    #777 10px
  );
  border: 2px solid yellow;
}

/* Animation für Bonus-Umrandung */
@keyframes blink-border {
  from {
    box-shadow: 0 0 5px yellow;
  }
  to {
    box-shadow: 0 0 20px yellow;
  }
}

/* Allgemeines Blinken (optional) */
.symbol.blink {
  animation: blink 0.5s infinite alternate;
}

@keyframes blink {
  from {
    opacity: 1;
    box-shadow: 0 0 10px #0ff;
  }
  to {
    opacity: 0.4;
    box-shadow: 0 0 20px #ff0;
  }
}

.controls button {
  background-color: #222;
  border: 2px solid #0f0;
  color: #0f0;
  padding: 10px 20px;
  font-size: 1em;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  text-shadow: 0 0 5px #0f0;
}

.controls button:hover {
  background-color: #0f0;
  color: #000;
  text-shadow: none;
}

/* Game Over Overlay oben im Screen */
#game-over {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #f00;
  font-size: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  border: 3px solid #f00;
  border-radius: 15px;
  z-index: 1000;
  box-shadow: 0 0 20px #f00;
}

/* Neustart-Button */
#game-over button {
  margin-top: 15px;
  background-color: #900;
  color: white;
  border: 2px solid #f00;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  text-shadow: 0 0 5px #fff;
  border-radius: 8px;
}

.win-message {
  font-size: 5.1em;
  color: #ff0;
  text-shadow: 0 0 10px #ff0;
  margin-bottom: 10px;
}

.blinking {
  animation: blink-border 0.6s infinite alternate;
}


.reels-with-selectors {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
}

.reel-selector {
  text-align: center;
}

.reel-selector label {
  display: inline-block;
  margin: 0;
  font-weight: bold;
  border: 2px solid #444;
  border-radius: 8px;
  background-color: #333;
  padding: 4px 10px;
  cursor: pointer;
}

.reel-selector input[type="radio"] {
  display: none;
}

.reel-selector span {
  padding: 5px 10px;
  display: inline-block;
}

.reel-selector input[type="radio"][value="0"]:checked + span {
  background-color: yellow;
  color: black;
}

.reel-selector input[type="radio"][value="1"]:checked + span {
  background-color: red;
  color: white;
}

.reel-selector input[type="radio"][value="2"]:checked + span {
  background-color: limegreen;
  color: black;
}

/* Farbliche Rahmen zur Markierung der Gewinnzeile */
.symbol.highlight-top {
  border: 2px solid yellow;
  animation: blink-top 1s steps(1) 3;
  box-shadow: 0 0 10px yellow;
}
.symbol.highlight-middle {
  border: 2px solid red;
  animation: blink-middle 1s steps(1) 3;
  box-shadow: 0 0 10px red;
}
.symbol.highlight-bottom {
  border: 2px solid limegreen;
  animation: blink-bottom 1s steps(1) 3;
  box-shadow: 0 0 10px limegreen;
}

@keyframes blink-top {
  0%, 100% { box-shadow: 0 0 10px yellow; }
  50% { box-shadow: 0 0 20px yellow; }
}
  50% { box-shadow: 0 0 20px white; }
}
  50% { box-shadow: 0 0 20px yellow; }
}
@keyframes blink-middle {
  0%, 100% { box-shadow: 0 0 10px red; }
  50% { box-shadow: 0 0 20px red; }
}
@keyframes blink-bottom {
  0%, 100% { box-shadow: 0 0 10px limegreen; }
  50% { box-shadow: 0 0 20px limegreen; }
}


body.bonus-active .symbol.highlight-top {
  border: 2px solid white !important;
  box-shadow: 0 0 10px white !important;
  animation: blink-top-white 1s steps(1) 3 !important;
}

@keyframes blink-top-white {
  0%, 100% { box-shadow: 0 0 10px white; }
  50% { box-shadow: 0 0 20px white; }
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: black;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


@media (min-width: 768px) {
}

@keyframes blink-bottom {
  0%, 100% { box-shadow: 0 0 10px limegreen; }
  50% { box-shadow: 0 0 20px limegreen; }
}

.reel {
  height: 44vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.reel {
  height: 44vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #222;
  border: 2px solid #555;
  border-radius: 8px;
  margin: 0 1.5vw;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.reel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  margin-top: 2vh;
}

.row-top {
  background-color: rgba(255, 255, 0, 0.4);
  border: 4px solid yellow;
  box-shadow: 0 0 10px 2px yellow;
}
.row-middle {
  background-color: rgba(255, 0, 0, 0.3);
  border: 4px solid red;
  box-shadow: 0 0 10px 2px red;
}
.row-bottom {
  background-color: rgba(0, 255, 0, 0.3);
  border: 4px solid limegreen;
  box-shadow: 0 0 10px 2px limegreen;
}


.symbol {
  font-size: 9.5vw;
  height: 14.5vw;
  width: 14.5vw;
  margin: 0.2vw;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-color: #111;
  border-radius: 8px;
}

.row-top {
  background-color: rgba(255, 255, 0, 0.35);
  border: 4px solid yellow;
  box-shadow: 0 0 8px 2px yellow;
}
.row-middle {
  background-color: rgba(255, 0, 0, 0.35);
  border: 4px solid red;
  box-shadow: 0 0 8px 2px red;
}
.row-bottom {
  background-color: rgba(0, 255, 0, 0.35);
  border: 4px solid limegreen;
  box-shadow: 0 0 8px 2px limegreen;
}

.row-top {
  border: 4px solid yellow;
  background-color: rgba(255, 255, 0, 0.15);
  box-shadow: 0 0 6px 2px yellow;
}

.row-middle {
  border: 4px solid red;
  background-color: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 6px 2px red;
}

.row-bottom {
  border: 4px solid limegreen;
  background-color: rgba(0, 255, 0, 0.15);
  box-shadow: 0 0 6px 2px limegreen;
}


@keyframes bonus-blink {
  from {
    border: 4px solid black;
    background-color: white;
  }
  to {
    border: 4px solid white;
    background-color: black;
  }
}



.highlight-top {
  outline: 3px solid yellow;
}

.highlight-middle {
  outline: 3px solid red;
}

.highlight-bottom {
  outline: 3px solid green;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.blinking {
  animation: blink 1s infinite;
}