 /* Estilos generales */
 * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'stolz-font';
  src: url('../fonts/stolz-font.otf') format('truetype');
}

html{
  background-color: #fed306;
  padding: 10px;
}
body {
  font-family: 'stolz-font', sans-serif;
  background-image: url('../img/background_border_black.png');
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 265px;
}
/* Canvas de confetis */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 2000;
}
/* Contenedor del canvas y fondo de la ruleta */
#canvasContainer {
  background-image: url('../img/base_ruleta.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 500px; /* Aumentado */
  height: 530px; /* Aumentado */
  background-size: 100%;
  position: relative;
  margin: 0 auto;
}
/* Ruleta */
#canvas {
  z-index: 1;
}

  #prizePointer {
    position: absolute;
  left: 198px;
  top: 8px;
  width: 108px;
  }
#icono_logo {
  background-image: url('../img/logo.png');
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  left: 200px;
  top: 212px;
  z-index: 999;
  width: 101px;
}
/* Grid de premios */
.prizes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px;
}
.prize-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  width: 150px;
  text-align: center;
  position: relative;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  cursor: pointer;
}
/* Estilo para premio deshabilitado */
.prize-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.prize-item img {
  max-width: 97px !important;
  margin-bottom: 10px;
}
.prize-item:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* Clase para resaltar la tarjeta activa */
.prize-item.active {
  border: 2.2px solid #15ff00;
  box-shadow: 0 0 10px #15ff00;
  background-color: #fed306;
  color: #FFF !important;
}
.prize-name {
   font-size: 18px;
  font-weight: bold;
  color: #333;
}
.prize-quantity {
  color: #acacac;
  font-size: 14px;
  margin-top: 5px;
}
.checkmark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: opacity 0.3s;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: auto;
  align-items: center;
  justify-content: center;
}
.modal-content {
    background-image: url(../img/fondo_modal.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.5s;
    height: 100%;
    max-width: 1080px;
    max-height: 1920px;
    display: flex
;
    flex-direction: column;
    justify-content: space-around;
}
@keyframes modalFadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-title { font-size: 24px; margin-bottom: 10px; }
.modal-message { font-size: 62px; margin-bottom: 15px; }
.modal-prize {
      font-size: 45px;
    font-weight: bold;
    margin-bottom: 15px;
    background-color: #FFF;
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 610px;
    /* text-align: center; */
    margin: 0 auto;
}
.modal-close {
  padding: 18px 31px;
  border: none;
  background-color: #000;
  color: #fff;
  max-width: 360px;
  font-size: 21px;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  margin: 0 auto;
  font-weight: bold;
}
.modal-close:hover { background-color: #2e2e2e; transform: scale(1.05); }
/* Bot贸n para girar la ruleta */
.content_botton {
  display: flex;
  justify-content: center;
  margin: 20px;
}
button {
  background-color: #000;
  color: #FFF;
  font-size: 47px;
  padding: 15px 82px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'stolz-font', sans-serif;
}
/* Estilo para el bot贸n deshabilitado */
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:hover { background-color: #2e2e2e; transform: scale(1.05); }
button:active { transform: scale(0.98); }
.content_image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}
.content_image img { max-width: 177px !important; margin-bottom: 15px; }
.title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  margin-top: 50px;
}
.title img {
  width: 100%;
  margin-bottom: 15px;
  margin-top: 50px;
}
.subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}
.subtitle img {
  width: 70%;
  margin-bottom: 15px;
}
.modal-title img {
  width: 70%;
  margin-bottom: 15px;
  margin-top: 20px;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.spinner {
border: 8px solid transparent!important;
  width: 64px;
  height: 64px;
  position: relative;
  animation: spin 1.5s linear infinite;
}

.spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid #FFCC00;
  border-top: 8px solid #000;
  border-left: 8px solid #000;
  border-radius: 50%;
}

.spinner::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px solid #000;
  border-radius: 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}