body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #e0f7fa;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('christmas-background.svg'); /* Fondo navideño */
    background-size: cover; /* Cubre toda la pantalla */
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .container {
    text-align: center;
    display: flex;
    min-height: 350px;
    background-color: rgb(4 16 27 / 95%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}

  
  
  h1 {
    color: #14eadb;
    text-shadow: -2px 4px 0px #061425;
    font-size: 3em;
    margin-bottom: 20px;
}
  
  p {
    color: #e0f7fa;
    font-size: 18px;
}
  
  button {
    background-color: #f43856;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #9d1044;
  }
  
  #game {
    display: none;
  }

  #all-gifts-container {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}
  
  
  .message {
    margin-top: 10px;
    font-size: 1.2em;
  }
  
  #counter {
    font-weight: bold;
    color: #88aa00;
  }
  
  #game h2 {
    color: #1976d2;
  }
  
  #final-message {
    display: none;
  }
  
  .gift {
    width: 65px;
    height: 65px;
    background-size: contain;
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .gift:hover {
    transform: scale(1.2);
  }
  
 /* Estilo de la clase final-message */
.final-message {
  font-size: 2.2em;
  color: #20c8b2;
  text-shadow: 0px 3px 1px #00000021;
  margin-top: 30px;
  /* animation: revert; */
  padding: 10px 0;
}

  
  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
  }
  
  
  #all-gifts-container img {
    margin: 5px;
    width: 50px;
    height: 50px;
  }
  
  #christmas-message {
    display: none;
    font-size: 19px;
    color: #02172a;
    padding: 10px 50px;
}
  
  /* Estilo para el confeti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 20px;
  background-color: #d32f2f; /* Color del confeti */
  opacity: 0;
  animation: fall 2s forwards, fadeOut 1s 1.5s forwards;
}

@keyframes fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}



/* Estilo del tooltip */
#dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Oscurecimiento semitransparente */
  display: none;
  z-index: 900; /* Para estar por debajo del tooltip */
}

.tooltip {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -30%);
  background-color: rgba(19, 198, 189, 0.935); 
  color: #ffffff;
  padding: 15px 30px; 
  border-radius: 5px;
  font-size: 18px;
  max-width: 80vw;
  text-align: center;
  white-space: normal;
  z-index: 1000; /* Para estar por encima de la máscara */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/* Estilo para el contenedor del mensaje final */
#final-message-container {
  background-color: rgb(3 9 22 / 95%);
  width: 70vw;
  margin: 0 auto;
  /* padding: 20px; */
  border-radius: 10px;
  box-shadow: 3px 5px 15px 2px rgb(0 0 0 / 85%);
  color: #ffffff;
  text-align: center;
  display: none;
}
