/* --- CONFIGURACIÓN BÁSICA --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000; /* Fondo negro profundo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Ocultar el video original de la cámara (usamos el canvas) */
.input_video {
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* El lienzo donde ocurre la magia */
.output_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

/* --- NUEVO: PANTALLA DE INICIO (OVERLAY) --- */
/* Esto cubre toda la pantalla hasta que le dan click */
#overlay-start {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20,20,20,1) 0%, rgba(0,0,0,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Asegura que esté por encima de todo */
    transition: opacity 1s ease-in-out; /* Desvanecimiento suave al salir */
}

#overlay-start .content {
    text-align: center;
    color: white;
    animation: float 3s ease-in-out infinite; /* Pequeña animación de flotación */
}

/* Título de la pregunta inicial */
#overlay-start h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 
                 0 0 20px rgba(0, 191, 255, 0.5); /* Sombra azulada */
}

/* --- BOTÓN "VER SORPRESA" --- */
#start-btn {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: transparent;
    color: #fff;
    /* Borde neón Cyan */
    border: 2px solid #00bfff; 
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    /* Resplandor inicial del botón */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3), inset 0 0 10px rgba(0, 191, 255, 0.1);
    outline: none;
}

/* Efecto al pasar el mouse por encima (Hover) */
#start-btn:hover {
    background: #00bfff;
    color: #000; /* Letras negras para contraste */
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.8), 0 0 60px rgba(0, 191, 255, 0.4);
    transform: scale(1.1); /* Crece un poco */
    border-color: transparent;
}

/* Animación suave para el texto de entrada */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}