body{
  font-family: 'Titillium Web', sans-serif;
  background-image: url('../img/fondo1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
}

/* Contenedor dividido en 2 columnas */
.container-split{
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.column-left{
  width: 50%;
  padding: 20px;
  border-right: 2px solid #9CCC0A;
}

.column-right{
  width: 50%;
  padding: 20px;
}

.roulette-wrapper{
  position:relative;
  display:flex;
  justify-content:center;
  width:100%;
  margin:0 auto;
  overflow:hidden;
  padding:20px;
  border:8px solid #1a1a1a;
  border-radius:15px;
  background:linear-gradient(145deg, #2a2a2a, #1a1a1a);
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.8),
    0 0 20px rgba(0,0,0,0.5);
}

/* Marco con luces */
.roulette-wrapper::before{
  content:'';
  position:absolute;
  top:-5px;
  left:-5px;
  right:-5px;
  bottom:-5px;
  border-radius:15px;
  background:
    radial-gradient(circle at 5% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 15% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 25% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 35% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 45% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 55% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 65% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 75% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 85% 5%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 5%, #FFD700 0%, transparent 3%),
    
    radial-gradient(circle at 5% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 15% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 25% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 35% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 45% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 55% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 65% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 75% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 85% 95%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 95%, #FFD700 0%, transparent 3%),
    
    radial-gradient(circle at 5% 15%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 5% 30%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 5% 45%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 5% 60%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 5% 75%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 5% 85%, #FFD700 0%, transparent 3%),
    
    radial-gradient(circle at 95% 15%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 30%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 45%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 60%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 75%, #FFD700 0%, transparent 3%),
    radial-gradient(circle at 95% 85%, #FFD700 0%, transparent 3%);
  z-index:10;
  pointer-events:none;
  animation:bulbBlink 1.5s infinite;
}

@keyframes bulbBlink{
  0%, 100%{
    opacity:1;
    filter:brightness(1.5) drop-shadow(0 0 8px #FFD700);
  }
  25%{
    opacity:0.6;
    filter:brightness(1) drop-shadow(0 0 3px #FFD700);
  }
  50%{
    opacity:1;
    filter:brightness(1.8) drop-shadow(0 0 10px #FFD700);
  }
  75%{
    opacity:0.7;
    filter:brightness(1.2) drop-shadow(0 0 5px #FFD700);
  }
}

.roulette-wrapper .selector{
  left:50%;
  height:100%;
  transform:translate(-50%,0%);
  position:absolute;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
}

.roulette-wrapper .selector::before{
  content:'';
  width:0;
  height:0;
  border-left:25px solid transparent;
  border-right:25px solid transparent;
  border-top:40px solid #666666;
  margin-top:-5px;
}

.roulette-wrapper .selector::after{
  content:'';
  width:0;
  height:0;
  border-left:25px solid transparent;
  border-right:25px solid transparent;
  border-bottom:40px solid #666666;
  margin-bottom:-5px;
}

.roulette-wrapper .wheel{
  display:flex;
}

.roulette-wrapper .wheel .row{
  display:flex;
}

.roulette-wrapper .wheel .row .card{
  height:120px;
  width:180px;
  min-width:180px;
  max-width:180px;
  margin:3px;
  border-radius:8px;
  border:2px solid #000000;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.95em;
  font-weight:600;
  text-align:center;
  padding:10px;
  line-height:1.3;
  box-sizing:border-box;
  flex-shrink:0;
  overflow:hidden;
  word-wrap:break-word;
}

.card.white{
  background:#FFFFFF;
  color:#9CCC0A;
}

.card.green{
  background:rgb(156, 204, 10);
  color:#FFFFFF;
}

*{
  box-sizing:border-box;
}

/* Contenedor del ganador */
.winner-container{
  position:relative;
  margin:40px auto;
  width:80%;
  max-width:600px;
  padding:30px;
  text-align:center;
}

.winner-text{
  font-size:2.5em;
  font-weight:bold;
  padding:30px;
  border-radius:15px;
  animation:blink 1s infinite;
  position:relative;
  z-index:1;
}

@keyframes blink{
  0%, 100%{
    background:#FFFFFF;
    color:#9CCC0A;
    box-shadow:0 0 30px rgba(156, 204, 10, 0.5);
  }
  50%{
    background:rgb(156, 204, 10);
    color:#FFFFFF;
    box-shadow:0 0 30px rgba(255, 255, 255, 0.5);
  }
}

/* Confeti */
.confetti{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.confetti::before,
.confetti::after{
  content:'🎉';
  position:absolute;
  font-size:3em;
  animation:float 3s infinite;
}

.confetti::before{
  left:10%;
  top:20%;
  animation-delay:0s;
}

.confetti::after{
  right:10%;
  top:20%;
  animation-delay:1s;
}

@keyframes float{
  0%, 100%{
    transform:translateY(0) rotate(0deg);
  }
  50%{
    transform:translateY(-20px) rotate(180deg);
  }
}

/* Botones estilo casino */
button{
  position: relative;
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(145deg, #d4af37, #f4d03f);
  border: 3px solid #8b7500;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 
    0 8px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  font-family: 'Titillium Web', sans-serif;
}

button::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s;
}

button:hover::before{
  left: 100%;
}

button:hover{
  transform: translateY(-3px);
  box-shadow: 
    0 12px 25px rgba(0, 0, 0, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.6),
    inset 0 -2px 5px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(244, 208, 63, 0.6);
  background: linear-gradient(145deg, #f4d03f, #d4af37);
}

button:active{
  transform: translateY(1px);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Animación de pulso para los botones */
@keyframes pulse{
  0%, 100%{
    box-shadow: 
      0 8px 15px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(244, 208, 63, 0.7);
  }
  50%{
    box-shadow: 
      0 8px 15px rgba(0, 0, 0, 0.3),
      0 0 0 15px rgba(244, 208, 63, 0);
  }
}

button:not(:disabled){
  animation: pulse 2s infinite;
}
