/* Estilo general */
body {
    margin: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Evitar scroll */
}

/* Botón de inicio */
.button-container {
    text-align: center;
    z-index: 10;
}

.play-btn {
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

/* Contenedor del video */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    z-index: 1;
    opacity: 1;
    transition: opacity 2s ease-in-out, z-index 2s ease-in-out;
}

/* Video en bucle detrás de todo y ocupando todo el espacio */
.loop-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: -10; /* Posición detrás de todos los elementos */
}

.loop-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajustar para que siempre cubra toda la pantalla */
}

.video-container.hidden {
    opacity: 0; /* Ocultar gradualmente */
    z-index: -1; /* Enviar al fondo */
}

.video-container video {
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste para que ocupe toda la pantalla */
}

/* Ventana modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #555;
}

/* Mostrar modal */
.modal.show {
    visibility: visible;
    opacity: 1;
}

/* Contenedor y casillas */
.container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.box {
    animation: fadeIn 0.5s ease-in-out;
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.box:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#button {
    position: absolute;
    padding: 12px 24px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#button:hover {
    background-color: #e63946;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#button {
    position: absolute;
    padding: 12px 24px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  #button:hover {
    background-color: #e63946;
  }