body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    overflow-x: hidden; /* Para evitar scroll horizontal en móviles */
}

.roulette-container {
    position: relative;
    width: 90vw; /* Usar viewport width para responsividad */
    max-width: 500px; /* Máximo tamaño en pantallas grandes */
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    display: block;
    width: 100%; /* Hacer el canvas responsive */
    height: auto; /* Mantener la proporción */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#spinButton {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#spinButton:hover {
    background-color: #45a049;
}

#spinButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#arrow {
    position: absolute;
    top: -10px; /* Ajustar según el tamaño del canvas y la flecha */
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px; /* Tamaño de la flecha */
    color: #333;
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px;
    min-height: 50px; /* Para evitar saltos de layout */
}

/* Media query para ajustes en pantallas más pequeñas */
@media (max-width: 600px) {
    #spinButton {
        font-size: 1em;
        padding: 10px 20px;
    }
    #arrow {
        font-size: 24px;
        top: -5px;
    }
    #result {
        font-size: 1.2em;
    }
}
@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 999;
}
.whatsapp-float:hover {
  background: #20b955;
}
.whatsapp-float img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

#bloqueoMensaje {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 18px;
  z-index: 9999;
  display: none;
}