/* style.css */
:root {
    --gradiente: linear-gradient(135deg, #134E5E, #71B280);
    --cor-primaria: #27ae60;
    --cor-primaria-hover: #219150;
    --cor-secundaria: #134E5E;
    --cor-secundaria-hover: #0f3c48;
    --cor-perigo: #e74c3c;
    --cor-perigo-hover: #c0392b;
    --cor-fundo-card: #ffffff;
    --borda-raio: 15px;
    --sombra: 0 12px 35px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradiente);
    background-attachment: fixed;
    margin: 0;
    padding: 40px 20px; /* Garante espaço no topo e embaixo */
    min-height: 100vh;
    color: #333;
}

.container {
    background: var(--cor-fundo-card);
    width: 100%;
    max-width: 750px;
    margin: 0 auto; /* Substitui o align-items que cortava a tela */
    padding: 40px;
    border-radius: var(--borda-raio);
    box-shadow: var(--sombra);
    text-align: center;
}

/* --- BOTÕES PREMIUM --- */
.btn, button, .action-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.btn-bloco { display: block; width: 100%; margin-top: 10px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Cores dos Botões */
.btn-primario, .action-btn { background-color: var(--cor-primaria); }
.btn-secundario { background-color: var(--cor-secundaria); }
.btn-perigo { background-color: var(--cor-perigo); }

/* Hover Effects */
button:hover, .btn:hover, .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-primario:hover { background-color: var(--cor-primaria-hover); }
.btn-secundario:hover { background-color: var(--cor-secundaria-hover); }
.btn-perigo:hover { background-color: var(--cor-perigo-hover); }

/* --- CARDS DE QUIZ --- */
.quiz-list { margin-top: 20px; text-align: left; }
.quiz-card {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.quiz-card:hover {
    border-color: var(--cor-primaria);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #f8fbfa;
}

.quiz-info h3 { margin: 0 0 5px 0; color: var(--cor-secundaria); font-size: 18px; }
.quiz-info p { margin: 0; color: #777; font-size: 14px; line-height: 1.4; }

.quiz-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- INPUTS --- */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    max-width: 400px;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: var(--cor-primaria);
    background: #fdfdfd;
}
.form-group { text-align: left; max-width: 400px; margin: 0 auto; }
.form-group label { display: block; margin-bottom: 6px; font-weight: bold; color: #555; }

/* --- JOGO --- */
.progress-bar { height: 12px; background: #eee; border-radius: 10px; margin: 25px 0; overflow: hidden; }
.progress { height: 100%; width: 0%; background: var(--cor-primaria); transition: 0.4s ease-out; }
.answers button { display: block; width: 100%; margin: 12px 0; padding: 16px; background: #f5f5f5; color: #333; text-align: left; border-left: 4px solid transparent; }
.answers button:hover { background: #e8e8e8; border-left-color: #ccc; }
.correct { background: var(--cor-primaria) !important; color: white !important; border-left-color: #1d8246 !important; }
.wrong { background: var(--cor-perigo) !important; color: white !important; border-left-color: #a82315 !important; }

/* --- RANKING --- */
.ranking-box {
    background: #f7f9fb;
    border-radius: 12px;
    padding: 20px;
    margin: 25px auto 10px;
    max-width: 450px;
    border: 1px solid #e1e8ed;
}
.ranking-list { list-style: none; padding: 0; margin: 0; }
.ranking-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #444;
}
.ranking-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ranking-list li span { color: var(--cor-primaria); }

/* Ocultar elementos padrão do jogo */
#quiz-screen, #result-screen, #nextBtn, .ranking-inicio-box { display: none; }