/* Estilo para el cuerpo */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  /* Video de fondo */
  #videoBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }
  
  /* Títulos */
  h1 {
    font-size: 70px;
    text-align: center;
    margin: 10px;
  }
  
  h2 {
    font-size: 44px;
    text-align: center;
    margin: 5px;
    color: #f7c948;
  }
  
  /* Párrafos */
  p {
    font-size: 20px;
    text-align: center;
    margin: 10px;
    max-width: 900px;
    line-height: 1.5;
  }
  
  /* Botón */
  button {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #c71c30;
  }

/* Contenedor de nombres */
.container-nombres {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
  margin-top: 50px;
  justify-content: center;
}

/* Media query para pantallas pequeñas */
@media (max-width: 480px) {
  .container-nombres {
    grid-template-columns: repeat(1, 1fr); /* 1 columna */
  }
}

/* Rectángulos de nombres */
.nombre-rectangulo {
  position: relative;
  background-color: #e63946;
  color: #fff;
  font-size: 16px;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nombre-rectangulo:hover {
  transform: scale(1.05);
}

/* Ventana modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.nombre-modal {
  text-align: center;
  size: 18px;
  color:#000
}


/* Botón para cerrar el modal */
.cerrar-boton {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e63946;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

.close-button:hover {
  background-color: #c71c30;
}
