/* --- CONFIGURAÇÕES GERAIS --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Fundo degradê */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Sombra mais elegante */
    width: 100%;
    max-width: 550px;
    text-align: center;
}

/* Animação de entrada (Firula!) */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CABEÇALHO DO PERFIL --- */
.perfil-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.foto-container {
    margin-bottom: 15px;
}

.foto-rofernandes {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Deixa a foto redonda */
    object-fit: cover; /* Ajusta a foto sem esticar */
    border: 4px solid #007bff; /* Borda azul da marca */
    padding: 3px; /* Espaço entre a foto e a borda */
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.marca-titulo {
    font-size: 1.8rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px; /* Espaçamento entre letras */
    margin: 5px 0;
    font-weight: 800;
}

.subtitulo {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
}

/* --- ÁREA DO QUIZ --- */
#quiz-box { margin-top: 20px; }

#info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

#materia-tag {
    background-color: #e1ecf4;
    color: #39739d;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

h2 { color: #333; font-size: 1.3rem; line-height: 1.4; }

/* --- BOTÕES DE RESPOSTA --- */
.opcao-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: left;
    color: #444;
}

.opcao-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateX(5px); /* Move levemente para a direita */
}

.correto {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
    font-weight: bold;
}

.errado {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
    opacity: 0.8;
}

/* --- BOTÃO DE PRÓXIMA --- */
#btn-proxima {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
    transition: transform 0.2s;
}

#btn-proxima:hover { transform: scale(1.05); }

/* --- TELA DE RESULTADO --- */
#resultado-box { text-align: center; padding: 20px; }

#pontuacao-final {
    font-size: 5rem;
    font-weight: 800;
    color: #007bff;
    margin: 0;
    text-shadow: 2px 2px 0px #eee;
}

#mensagem-desempenho { font-size: 1.2rem; color: #555; margin-bottom: 20px; }

#btn-reiniciar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(40,167,69,0.3);
}

#btn-reiniciar:hover { background-color: #218838; }