/* Variáveis CSS para cores e fontes */
:root {
    --bg-color: #0a0a0a; /* Preto profundo */
    --text-color: #e0e0e0; /* Cinza muito claro */
    --primary-color: #8b4513; /* Marrom sela (Saddle Brown) */
    --secondary-color: #c5a059; /* Dourado envelhecido */
    --accent-color: #ffffff; /* Branco puro para destaque */
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Lato', sans-serif;
}

/* Importar fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Evita rolagem horizontal */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.quiz-container {
    width: 100%;
    max-width: 450px;
    margin: 20px;
    padding: 40px 30px;
    background-color: #121212;
    border: 1px solid rgba(197, 160, 89, 0.2); /* Borda dourada sutil */
    border-radius: 4px; /* Bordas mais retas para elegância */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.quiz-screen.active {
    display: block;
    opacity: 1;
}

h1, h2 {
    font-family: var(--font-family-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

.logo-container {
    margin-bottom: 20px;
}

.quiz-logo {
    max-width: 150px; /* Aumentar um pouco o logo */
    height: auto;
    display: block;
    margin: 0 auto;
}

.cleopatra-image-container {
    margin-bottom: 30px;
}

.cleopatra-image {
    max-width: 100%; /* Garante que a imagem não ultrapasse o container */
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    animation: none;
    border-radius: 4px;
}



/* Ajustes para a tela de transição */
#transition-screen p {
    font-family: var(--font-family-heading);
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 15px 0;
    text-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--secondary-color);
    width: 50px;
    height: 50px;
    margin-top: 40px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn {
    background-color: var(--secondary-color);
    color: #000; /* Texto preto no botão dourado para contraste */
    border: none;
    padding: 18px 35px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px; /* Bordas quase retas */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    max-width: 320px; /* Botões grandes e centralizados */
    margin: 30px auto 0 auto; /* Centraliza o botão */
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}



.answer-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.answer-buttons-container .btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1em;
    padding: 20px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 400;
    margin-top: 0;
}

.answer-buttons-container .btn:hover {
    border-color: var(--secondary-color);
    background-color: rgba(197, 160, 89, 0.05);
    color: var(--secondary-color);
/* Estilos para a tela de transição */
#transition-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

#transition-screen p {
    font-family: var(--font-family-heading);
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 15px 0;
    text-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
    z-index: 10;
}

.circle-animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(197, 160, 89, 0.3);
    animation: circleExpand 3s infinite ease-out;
}

.circle:nth-child(1) { width: 60px; height: 60px; animation-delay: 0s; }
.circle:nth-child(2) { width: 90px; height: 90px; animation-delay: 0.5s; }
.circle:nth-child(3) { width: 120px; height: 120px; animation-delay: 1s; }
.circle:nth-child(4) { width: 150px; height: 150px; animation-delay: 1.5s; }

@keyframes circleExpand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}



/* Estilos para a imagem do resultado */
.result-profile-image {
    max-width: 180px; /* Tamanho um pouco maior para as imagens de resultado */
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centraliza e adiciona margem inferior */
    border-radius: 4px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

.result-text-block {
    margin-top: 20px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.05em;
    white-space: pre-wrap; /* Para respeitar as quebras de linha do JS */
}

.result-text-block p {
    margin-bottom: 1em;
    font-family: var(--font-family-body);
    font-size: 1.1em;
    color: var(--text-color);
    text-shadow: none;
}

.result-text-block p:first-child {
    font-family: var(--font-family-heading);
    font-size: 1.3em;
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

.result-text-block p:last-child {
    margin-bottom: 0;
}

#result-full-text {
    text-align: justify;
    margin-top: 25px;
    font-size: 1em;
    color: #ccc;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 600px) {
    .quiz-container {
        margin: 10px;
        padding: 15px;
    }

    .quiz-logo {
        max-width: 120px; /* Ajuste para mobile */
    }

    .cleopatra-image {
        max-width: 90%; /* Garante que a Cleópatra se ajuste bem em telas pequenas */
    }

    .result-profile-image {
        max-width: 150px; /* Ajuste para mobile */
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .answer-buttons-container .btn {
        padding: 15px 20px;
        font-size: 1em;
    }

    #transition-screen p {
        font-size: 1.1em;
    }
}
