:root {
    --primary-color: #3f51b5; /* Azul profundo */
    --secondary-color: #ff9800; /* Laranja vibrante */
    --text-color: #333;
    --background-light: #e8eaf6; /* Azul claro suave */
    --background-dark: #2c387e;
    --button-bg: #4caf50; /* Verde para ação positiva */
    --button-hover: #43a047;
    --danger-color: #ef5350; /* Vermelho para alerta/reiniciar */
    --success-color: #28a745; /* Verde para sucesso */
    --info-color: #17a2b8; /* Azul claro para informação */
    --warning-color: #ffc107; /* Amarelo para aviso */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    padding: 20px;
    box-sizing: border-box;
}

.game-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 800px;
    text-align: center;
    border: 1px solid #ddd;
}

.game-screen {
    animation: fadeIn 1s ease-out; /* Aplica fadeIn às telas que aparecem */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.game-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 5px;
}

.game-header h2 {
    color: var(--secondary-color);
    font-size: 1.4em;
    font-weight: 600;
}

/* Estilos para a tela de abertura */
#opening-screen {
    margin-top: 30px;
}

#opening-screen h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

#opening-screen .narrative-paragraph {
    font-size: 1.1em;
    margin-bottom: 30px;
}

#start-journey-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#start-journey-button:hover {
    background-color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Estilos para a tela de seleção de gênero */
#gender-selection-screen {
    margin-top: 30px;
}

#gender-selection-screen h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

#gender-selection-screen .narrative-paragraph {
    font-size: 1.1em;
    margin-bottom: 25px;
    text-align: justify;
}

.gender-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gender-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gender-button:hover {
    background-color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estilos para a seção principal da história */
.story-section {
    margin-top: 25px;
}

.narrative-paragraph {
    font-size: 1.15em;
    margin-bottom: 35px;
    text-align: justify;
    color: var(--text-color);
}

.choices-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.choice-button {
    background-color: var(--button-bg);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.choice-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.choice-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Feedback messages */
.feedback-info {
    padding: 15px 20px;
    margin-top: 25px;
    border-radius: var(--border-radius);
    text-align: left;
    font-size: 0.95em;
    color: #555;
    animation: slideIn 0.5s ease-out;
}

.feedback-info.feedback-success {
    background-color: #d4edda;
    border-left: 5px solid var(--success-color);
    color: #155724;
}

.feedback-info.feedback-warning {
    background-color: #fff3cd;
    border-left: 5px solid var(--warning-color);
    color: #856404;
}

.feedback-info.feedback-danger {
    background-color: #f8d7da;
    border-left: 5px solid var(--danger-color);
    color: #721c24;
}

.feedback-info.feedback-info { /* Default info style */
    background-color: #d1ecf1;
    border-left: 5px solid var(--info-color);
    color: #0c5460;
}


@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.action-button {
    background-color: var(--danger-color); /* Para o botão Recomeçar */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none;
}

/* Estilos para os indicadores de status */
.status-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-item {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-color);
}

.status-item span {
    font-weight: 700;
    color: var(--primary-color);
}


/* Estilos para a tela de resultados */
.results-screen {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.results-screen h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

#final-score {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

#result-message {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

#lessons-learned {
    list-style: none; /* Remove bullet points padrão */
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
    text-align: left;
}

#lessons-learned li {
    background-color: #e6e9f5;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.95em;
    border-left: 4px solid var(--primary-color);
}


/* Responsividade básica */
@media (max-width: 600px) {
    .game-container {
        padding: 25px;
    }
    .game-header h1 {
        font-size: 2em;
    }
    .game-header h2 {
        font-size: 1.2em;
    }
    .narrative-paragraph {
        font-size: 1em;
    }
    .choice-button, .gender-button, #start-journey-button {
        font-size: 0.95em;
        padding: 12px 20px;
    }
    .gender-options {
        flex-direction: column;
    }
    #final-score {
        font-size: 1.5em;
    }
    .status-indicators {
        flex-direction: column;
        gap: 10px;
    }
}