/* your styles go here */
#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2000; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    }
  
  #overlay_text{
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    }  
  
    .luces-navidad {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  z-index: 1;
  margin: -15px 0 0 0;
  padding: 0;
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.luces-navidad li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  width: 12px;
  height: 28px;
  border-radius: 50%;
  margin: 20px;
  background: #fff;
  /* Cable de la luz */
  border-top: 3px solid #222;
}

/* Colores y Animaciones */
.luces-navidad li:nth-child(odd) {
  background: #ff0000; /* Rojo */
  box-shadow: 0px 2px 20px 4px rgba(255, 0, 0, 0.5);
  animation: parpadeo 2s infinite;
}

.luces-navidad li:nth-child(even) {
  background: #00fbff; /* Cian */
  box-shadow: 0px 2px 20px 4px rgba(0, 251, 255, 0.5);
  animation: parpadeo 4s infinite reverse;
}

.luces-navidad li:nth-child(3n) {
  background: #f7ff00; /* Amarillo */
  box-shadow: 0px 2px 20px 4px rgba(247, 255, 0, 0.5);
  animation: parpadeo 3s infinite;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.estrella-navidena {
  position: absolute;
  background: gold;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none; /* No interfiere con clics */
  animation: desvanecer 1s forwards;
  z-index: 9999;
}

@keyframes desvanecer {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.2) translateY(20px); opacity: 0; }
}
