/* --- GERAL & FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto+Mono:wght@700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e; /* Fundo azul escuro/roxo */
    color: #e0e0e0;
    text-align: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: #e94560; /* Cor de destaque vibrante (rosa/vermelho) */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #c0c0c0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
}

/* --- BOTÕES --- */
button {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    padding: 15px;
    background: linear-gradient(45deg, #e94560, #ff6347); /* Gradiente chamativo */
    border: none;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

button:hover {
    transform: translateY(-3px); /* Efeito de levantar ao passar o mouse */
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
    filter: brightness(1.1);
}

/* --- CÓDIGO & PROGRESSO --- */
.codigo {
    font-family: 'Roboto Mono', monospace; /* Fonte de código */
    font-size: 2rem;
    letter-spacing: 4px;
    margin: 25px auto;
    padding: 15px 20px;
    background-color: #0f1c30;
    border: 2px dashed #e94560;
    color: #50c878; /* Verde esmeralda para o código final */
    border-radius: 8px;
    text-shadow: 0 0 8px rgba(80, 200, 120, 0.7);
    max-width: fit-content;
}

.progresso {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #a0a0a0;
    background: #16213e;
    border: 1px solid #0f3460;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 20px auto;
    width: fit-content;
}


/* --- ELEMENTOS ESPECÍFICOS --- */
img {
    max-width: 100%;
    width: 200px; /* Manter largura máxima para uniformidade */
    height: auto; /* Permitir que a altura se ajuste para não cortar */
    object-fit: contain; /* Ajusta a imagem dentro da área sem cortar */
    border-radius: 10px;
    margin: 20px auto; /* Centraliza a imagem */
    border: 3px solid #0f3460;
    display: block; /* Garante que 'margin: auto' funcione */
}

.erro {
    color: #ff4444;
    font-weight: 700;
    background-color: rgba(255, 68, 68, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 5px solid #ff4444;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.adsense-top, .adsense-bottom {
    margin: 25px auto;
    background: #16213e;
    min-height: 90px;
    width: 100%;
    border-radius: 8px;
    color: #555;
    border: 1px solid #0f3460;
}

/* --- ESTILO DA PÁGINA DE RESUMO --- */
.lista-perguntas {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 10px 30px;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
}

.lista-perguntas h2 {
    color: #e94560;
    border-bottom: 2px solid #0f3460;
    padding-bottom: 10px;
    margin-top: 10px;
}

.lista-perguntas ol {
    padding-left: 20px;
}

.lista-perguntas li {
    margin-bottom: 15px;
    color: #c0c0c0;
    line-height: 1.5;
}
/* --- ESTILOS DO CRONÔMETRO --- */

/* Sobreposição para os 5s iniciais */
#timer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.95); /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Garante que fique por cima de tudo */
}

#initial-countdown {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e94560;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.7);
}

/* Container do cronômetro de 10s */
#countdown-container {
    font-size: 1.2rem;
    color: #c0c0c0;
    background-color: #16213e;
    border: 1px solid #0f3460;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 auto 20px auto;
    width: fit-content;
    transition: all 0.3s ease;
}

#countdown-timer {
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

/* --- ESTILO DO CRONÔMETRO DE RESPOSTA --- */
#countdown-container {
    position: fixed; /* Fixo na tela */
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.2rem;
    color: #c0c0c0;
    background-color: #16213e;
    border-top: 2px solid #0f3460; /* Borda superior */
    padding: 10px 0; /* Espaçamento interno */
    z-index: 999; /* Garante que fique acima do conteúdo, mas abaixo do overlay inicial */
    text-align: center;
    transition: all 0.3s ease;
}
/* --- ESTILO PARA BOTÕES DESATIVADOS --- */
button:disabled,
button:disabled:hover {
    background: #444; /* Fundo cinza escuro */
    color: #888;
    cursor: not-allowed; /* Cursor de "não permitido" */
    transform: none; /* Remove efeito de levantar */
    box-shadow: none; /* Remove sombra */
    filter: none;
}