/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Evitar scrollbars durante la animación */
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0; /* Fondo neutro detrás */
}

/* Capa de inicio (Overlay) */
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Por encima de todo */
    transition: opacity 0.5s ease;
}

#start-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#start-btn:hover {
    transform: scale(1.05);
}

/* Contenedor de las cortinas */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Debajo del overlay, encima del contenido */
    pointer-events: none; /* Permitir clic a través cuando se abran (aunque las moveremos) */
}

/* Estilos comunes para las cortinas */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #a91b0d; /* Color rojo teatro por defecto */
    /* Gradiente para dar efecto de pliegues/profundidad */
    background: linear-gradient(90deg, 
        #800e05 0%, 
        #a91b0d 20%, 
        #800e05 40%, 
        #a91b0d 60%, 
        #800e05 80%, 
        #a91b0d 100%
    );
    transition: transform 2.5s ease-in-out; /* Animación suave de 2.5s */
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Sombra para profundidad */
}

.curtain.left {
    left: 0;
    transform-origin: left center;
}

.curtain.right {
    right: 0;
    transform-origin: right center;
}

/* Clases para activar la animación */
.curtain-open .curtain.left {
    transform: translateX(-100%);
}

.curtain-open .curtain.right {
    transform: translateX(100%);
}

/* Contenido detrás */
.content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
