:root {
    --primary-color: #0066a1;
    --secondary-color: #ff6600;
    --accent-color: #00a0e3;
    --text-color: #333;
    --light-color: #f5f5f5;
    --correct-color: #4caf50;
    --wrong-color: #f44336;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.8) 0%, rgba(195, 207, 226, 0.8) 100%), url('assets/images/fundo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 10px;
}

.container {
    width: 95%;
    max-width: 1200px;
    height: auto;
    background: #fbf5e9;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    justify-content: center;
}

/* Página inicial */
.intro-page {
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f5e8cd;
    padding: 20px;
}

.logo-container {
    margin-bottom: 20px;
}

.senac-logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

.intro-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.intro-content h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

#nameForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#userName {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 1rem;
    background: var(--light-color);
    border: 2px solid #ddd;
    border-radius: 50px;
    margin-bottom: 20px;
    transition: var(--transition);
}

#userName:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 161, 0.2);
}

.btn-start {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    width: 100%;
    max-width: 200px;
}

.btn-start:hover {
    background: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* Página do Quiz */
.quiz-container {
    animation: slideUp 0.5s ease-out;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #f5e8cd;
    padding: 20px;
}

.quiz-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.quiz-image-left {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 250px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.quiz-image-lg {
    max-width: 100%;   
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.quiz-content-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 0;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.5s ease;
}

.question-counter {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.question {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 20px;
}

.option {
    padding: 12px;
    background: var(--light-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-color);
}

.option:hover {
    border-color: var(--primary-color);
    background: #e9e9e9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option.correct {
    background-color: var(--correct-color);
    color: white;
    border-color: var(--correct-color);
}

.option.wrong {
    background-color: var(--wrong-color);
    color: white;
    border-color: var(--wrong-color);
}

.hidden {
    display: none;
}

/* Overlays */
.final-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.final-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.final-content {
    background: #fbf4e8;
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.final-overlay.active .final-content {
    transform: scale(1);
}

#finalTitle {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.elemento-destacado {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 10px;
}

.result-image-final {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-next, .btn-restart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
}

.btn-next:hover, .btn-restart:hover {
    background: #005080;
    transform: translateY(-2px);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para o Rodapé */
/* Estilo para o Rodapé */
footer {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: -15px; /* Espaço acima do footer */
    position: relative; /* Mantém o fluxo normal */
    z-index: 1;
}

/* Media Queries para telas maiores */
@media (min-width: 768px) {
    .container {
        width: 85%;
        padding: 30px;
    }

    .senac-logo {
        max-height: 200px;
    }

    .intro-content h1 {
        font-size: 2.5rem;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }

    .quiz-area {
        flex-direction: row;
        gap: 30px;
    }

    .quiz-image-left {
        max-height: 400px;
        flex: 1;
    }

    .quiz-image-lg {
        max-height: 400px;
    }

    .quiz-content-right {
        flex: 1;
        padding: 20px 0;
    }

    .question {
        font-size: 1.3rem;
    }

    .option {
        padding: 15px;
        font-size: 1rem;
    }

    .final-content {
        max-width: 700px;
        padding: 40px;
    }

    #finalTitle {
        font-size: 2rem;
    }
}

/* Melhorias para telas muito pequenas (menos de 400px) */
    .container {
        padding: 15px;
        border-radius: 15px;
    }

    .senac-logo {
        max-height: 120px;
    }

    .intro-content h1 {
        font-size: 1.6rem;
    }

    .intro-content h2 {
        font-size: 1.1rem;
    }

    #userName {
        padding: 10px 15px;
    }

    .btn-start {
        padding: 10px 20px;
    }


    .option {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .final-content {
        padding: 20px 15px;
    }

    #finalTitle {
        font-size: 1.3rem;
    }

    .elemento-destacado {
        font-size: 1.3rem;
    }
    
    .elemento-destacado {
       font-weight: bold;
    color: var(--secondary-color); /* Esta cor se aplica a todo o texto da linha */
    margin-top: 15px;
}

/* Adicione esta nova regra para mudar a cor apenas do texto dentro da tag <strong> */
.elemento-destacado strong {
    color: var(--primary-color); /* Altere esta variável para a cor que você quiser */
}
