/* css/style.css */

/* Resetear el navegador y forzar pantalla completa */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

/* Interfaz narrativa estilo Monkey Island */
#ui-dialogue-box {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid #4a90e2;
    border-left: 5px solid #4a90e2;
    border-radius: 4px;
    padding: 15px 25px;
    color: #e0e0e0;
    font-size: 1.2rem;
    text-align: center;
    pointer-events: none; /* Deja que el mouse interactúe con el 3D que está detrás */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

#dialogue-text {
    margin: 0;
    letter-spacing: 0.5px;
}

/* Panel del Candado Estructural */
#padlock-interface {
    position: absolute;
    top: 40px; /* Fijado a 40px del borde superior para que NUNCA se corte */
    left: 50%;
    transform: translateX(-50%); /* Centrado horizontal estricto sin alterar la vertical */
    
    /* --- Dimensiones Ampliadas --- */
    width: 450px; /* Ampliado un poco más para dar holgura al texto */
    max-width: 90vw; /* Adaptable si la pantalla es más pequeña */
    padding: 25px; 
    
    /* Transparencia */
    background: rgba(15, 15, 22, 0.65); 
    
    /* Fuente */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    
    border: 2px solid #ffaa00;
    border-radius: 8px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.15);
    z-index: 100; /* Asegura que se renderice por encima de cualquier otra capa */
}

/* Ajuste de inputs y subtítulos para mantener monospace */
#padlock-interface input, 
#padlock-interface h3, 
#padlock-interface p,
#algebraic-feedback {
    font-family: 'Courier New', Courier, monospace;
}
#padlock-interface h3 { color: #ffaa00; margin: 0; }
#padlock-interface input { font-size: 1.2rem; }
#algebraic-feedback { font-size: 1.4rem; }

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 1.1rem;
}

.form-group input {
    width: 70px;
    padding: 12px;
    font-size: 1.2rem;
    background: #1a1a24;
    border: 1px solid #555;
    color: #00ffcc;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus {
    border-color: #00ffcc;
}

#btn-submit-code {
    padding: 15px;
    background: #ffaa00;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

#btn-submit-code:hover {
    background: #e69900;
}

#feedback-message {
    margin: 0;
    font-weight: bold;
    min-height: 20px;
}