body {
  background-color: #f8fff2;
  font-family: sans-serif;
  text-align: center;
}

h1 {
  color: #4caf50;
  font-size: 2.2em;
}

#container {
  margin: 30px auto;
  width: 580px;
  background-color: #e0f7fa;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.window {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.outer-col {
  width: 100px;
  height: 300px;
  background-color: #A3F3EC;
  border: 2px solid #444;
  border-radius: 10px;
  overflow: hidden;
}

.outer-spacer {
  width: 10px;
}

.col {
  height: 300px; /* vagy 310px – ha kell puffer */
  display: flex;
  flex-direction: column;
  justify-content: center; /* <<< fontos: így középre kerül a teljes tartalom */
}

.col-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.5s cubic-bezier(.65, .97, .72, 1);
}
.emoji-big {
  font-size: 2.2rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.menu button:hover .emoji-big {
  animation: emoji-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes emoji-pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.menu button {
  font-size: 1.1rem;
  padding: 15px 20px;
  margin: 10px;
  border-radius: 16px;
  border: none;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10	px;
  font-weight: bold;
}

.menu button:hover {
  background-color: #e0f7fa;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.icon {
  height: 100px; /* 3 db 100px = 300px → pont befér a 310px-es col-ba */
  display: flex;  max-height: 92px;
  object-fit: contain;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.icon img {
  max-height: 74px;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 0;
}
#lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
#line-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.line {
  position: absolute;
  left: 8px; /* belső margó, igazodik az oszlopkerethez */
  width: calc(100% - 16px); /* ne nyúljon túl */
  height: 2px;
  background-color: red;
  opacity: 0.8;
}

.line:first-child {
  top: 33.33%;
}

.line:last-child {
  top: 66.66%;
}
.slot-line {
  position: absolute;
  top: 0; /* majd JS-ből beállítjuk a top értéket */
  left: 50%;
  width: 53%;
  height: 3px;
  background-color: red;
  opacity: 0.6;
  z-index: 5;
  transform: translateX(-50%);
}

.win-notice {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8ffde;
  color: #008800;
  border: 2px solid #aad172;
  padding: 10px 20px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
.footer-info {
  max-width: 900px;
  margin: 6px auto 0 auto;
  padding: 1px 8px;
  font-size: 15px;
  color: #222;
  display: flex;
  justify-content: space-between;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  gap: 10px;
}

#container {
  position: relative;
}

/* Pörgő animáció */
#container.spinning .outer-col:nth-of-type(2) .col {
  animation-delay: 0.1s;
}
#container.spinning .outer-col:nth-of-type(3) .col {
  animation-delay: 0.2s;
}
#container.spinning .col {
  animation-name: scroll;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(.65, .97, .72, 1);
  animation-fill-mode: forwards; /* <<< EZ HIÁNYZOTT! */
}

@keyframes scroll {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.start-button {
  padding: 10px 30px;
  font-size: 1.2em;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

#credit-display {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.2em;
}
.jackpot-effect {
  animation: softGlow 0.6s ease-in-out alternate infinite;
}

@keyframes softGlow {
  from { background-color: #fef9e7; } /* világos arany */
  to { background-color: #fffbe6; }   /* enyhén fényes sárgás-fehér */
}

.icon.jackpot {
  animation: spinGlow 1s infinite;
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); filter: drop-shadow(0 0 5px yellow); }
  100% { transform: rotate(360deg); filter: drop-shadow(0 0 15px red); }
}

#win-notice {
  transition: all 0.5s ease;
  font-size: 1.5em;
  text-align: center;
  color: #fff;
  background: #28a745;
  padding: 10px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #container {
    width: 95%;
    padding: 15px;
  }

  .outer-col {
    width: 80px;
    height: 240px;
  }

  .col {
    height: 240px;
  }

  .icon {
    height: 80px;
  }

  .icon img {
    max-height: 60px;
  }

  .emoji-big {
    font-size: 1.8rem;
  }

  .menu button {
    min-width: unset;
    font-size: 1rem;
    padding: 10px 16px;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    white-space: normal;
    text-align: center;
  }

  .win-notice {
    font-size: 1.2rem;
    padding: 8px 16px;
    top: 100px;
  }

  .start-button {
    font-size: 1em;
    padding: 8px 20px;
  }

  h1 {
    font-size: 1.6em;
  }
}