/* Estilo base del cuerpo */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #333;
    color: white;
}

/* Contenedor del lienzo 3D */
#canvas-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Capa de la interfaz de usuario superpuesta */
#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#ui-overlay h1 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #4a90e2;
}

#ui-overlay p {
    margin: 5px 0;
}

#instructions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Caja de diálogo para resultados */
#dialogue-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
}

#dialogue-box h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

/* Estilo de título para mensajes de error */
#dialogue-box h3.error {
    color: #d9534f; /* Rojo de error */
}

/* Estilo de título para mensajes de éxito */
#dialogue-box h3.success {
    color: #5cb85c; /* Verde de éxito */
}

#dialogue-box p {
    margin: 10px 0 20px 0;
    line-height: 1.6;
    font-size: 16px;
}

#restart-button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

#restart-button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mensaje de interacción en pantalla */
#interaction-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none; /* Para no interferir con el clic del ratón */
}