/* Importação e Reset */
@import url('./reset.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    transition: 0.4s;
}

/* Variáveis Globais */
:root {
    --cor_primaria: #1E3A5F;
    --cor_secundaria: #80CBC4;
    --cor_terciaria: #FBF8EF;
    --cor_destaque: #FFB433;
    --cor_fundo: #fff;
    --cor_fundo_secundario: #1a1a1a;
    --cor_texto: #000;
    --cor_texto_secundario: #fff;
    --branco: #fff;
    --cinza-claro: #cec8c8;
    --cinza-medio: #444;
    --cinza-escuro: #1a1a1a;
    --cinza-bg: #f5f5f5;
    --cinza-borda: #ccc;
    --cinza-shadow: rgba(0, 0, 0, 0.5);
    --cinza-shadow-light: rgba(0, 0, 0, 0.08);
    --cinza-shadow-medium: rgba(0, 0, 0, 0.241);
    --cinza-shadow-escuro: rgba(0, 0, 0, 0.85);
    --azul-circulo: rgb(0, 117, 176);
    --vermelho-circulo: rgb(201, 7, 7);
    --verde-circulo: #1ea40c;
    --verde: green;
    --vermelho: #FA4032;
}

/* Temas */
:root,
body:not(.Tema-Vermelho):not(.Tema-Amarelo) {
    --cor_primaria: #1E3A5F;
    --cor_secundaria: #B4EBE6;
    --cor_terciaria: #FBF8EF;
    --cor_destaque: #FFB433;
}
body.Tema-Vermelho {
    --cor_primaria: #7a1e18;
    --cor_secundaria: #f51212;
    --cor_terciaria: #FEF3E2;
    --cor_destaque: #FAB12F;
}
body.Tema-Amarelo {
    --cor_primaria: #085326;
    --cor_secundaria: #9fedcf;
    --cor_terciaria: #FFFBE6;
    --cor_destaque: #FF9100;
}

/* Estrutura Principal */
body {
    background-color: var(--branco);
    color: var(--preto);
}

/* Header e Navegação */
header {
    background-image: linear-gradient(to right, var(--cor_primaria), var(--cor_secundaria));
    width: 100%;
    min-width: 0;
    min-height: 80px;
    height: 105px;
    box-shadow: 0 2px 8px var(--cinza-shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
    object-fit: contain;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    height: 100%;
    margin: 0 auto;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.logo {
    display: flex;
    gap: 50px;
    align-items: center;
    height: 100%;
    min-width: 0;
    flex-shrink: 1;
}

.cabecalho_logo {
    width: auto;
    height: 100%;
    flex-shrink: 1;
}

.cabecalho__titulo {
    font-size: 2.5rem;
    color: var(--cor_destaque);
    text-shadow: 0 0 2px var(--cinza-shadow);
    font-weight: bolder;
    margin: 0;
    max-width: 100%;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;      
    overflow-wrap: normal;
    transition: font-size 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--cor_texto_secundario);
    text-shadow: 0 0 2px var(--cinza-shadow-light);
    font-size: 1rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--cor_destaque);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor_destaque);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Botões de Tema */
.circulos {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.circulo,
.circulo2,
.circulo3,
.circulo4 {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0px 0px 4px var(--preto);
}

.circulo {
    background: var(--azul-circulo);
}
.circulo2 {
    background: var(--vermelho-circulo);
}
.circulo3 {
    background: var(--verde-circulo);
}
.circulo4 {
    background: var(--cinza-escuro);
}

.circulo:active,
.circulo2:active,
.circulo3:active,
.circulo4:active {
    box-shadow: 0px 2px 0px var(--preto);
}

/* Botões de Cadastro/Login */
.cabecalho__cadastro {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 24px;
}

.btn-cabecalho {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background: var(--cor_destaque);
    color: var(--cor_primaria);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #FFB43333;
}

.btn-cabecalho:hover,
.btn-cabecalho:focus {
    background: var(--cor_primaria);
    color: var(--cor_destaque);
    outline: none;
}

/* Slideshow */
.slideshow {
    height: 500px;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: var(--cinza-shadow-escuro);
    color: var(--cor_texto_secundario);
    font-size: 1.1rem;
}

.slide-caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--cor_texto_secundario);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--cinza-shadow);
    color: var(--cor_texto_secundario);
    font-size: 2rem;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slide-btn:hover {
    background-color: var(--cinza-shadow-escuro);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--cinza-medio);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--branco);
}

/* Seções Gerais */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--cinza-borda);
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

.linha {
    height: 70px;
    width: 50%;
    border: solid var(--cor_secundaria);
    border-width: 7px 3px;
    border-radius: 10px 40px;
    box-shadow: 4px 6px 6px var(--preto);
}

.sobre {
    text-align: center;
    font-size: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

/* Containers e Layouts */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--cinza-shadow);
}

.image img {
    max-width: 100%;
    max-height: 40vh;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Textos e Parágrafos */
.text {
    color: var(--preto);
    border-radius: 10px;
    width: 50%;
    padding: 15px;
    text-shadow: 0px 0px 1px var(--preto);
    animation: MoveToRightfadeIn 1s ease-out;
    font-size: 1.2rem;
    font-weight: 400;
}

.text p {
    margin-bottom: 1em;
}

/* Quiz */
.quiz-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.quiz-container img {
    width: 30%;
    height: 30%;
    object-fit: contain;
}

.quiz {
    max-width: none;
}

.quiz-box {
    background-color: var(--cor_fundo);
    min-height: 400px;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    margin-top: 50px;
    border: 5px solid var(--cor_primaria);
    text-align: center;
    padding: 10px 20px;
    box-shadow: 6px 6px 29px var(--preto);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz-heading {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--cor_texto);
}

#pergunta {
    padding-top: 20px;
    color: var(--cor_texto);
}

#opcoes-botao {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#opcoes-botao .btn {
    width: 300px;
    height: auto;
    cursor: pointer;
    border: 2px solid var(--cor_secundaria);
    transition: 0.2s;
    border-radius: 6px;
    font-weight: normal;
}

#opcoes-botao .btn:hover {
    background-color: var(--cor_terciaria);
    font-weight: bold;
}

.correto {
    background-color: var(--verde);
}
.incorreto {
    background-color: var(--vermelho);
}

.botoes-container {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.botao,
.botao2 {
    background-color: var(--cor_destaque);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 15px;
    box-shadow: 6px 6px 29px var(--preto);
    cursor: pointer;
    border: none;
    color: var(--preto);
    font-size: 18px;
}

.botao:active,
.botao2:active {
    box-shadow: 0px 2px 0px var(--preto);
    position: relative;
}

/* Formulario de Cadastro */
.form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    gap: 20px;
    background-color: var(--cor_fundo);
    color: var(--cor_texto);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid var(--cinza-borda);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--cor_primaria);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    grid-column: span 2;
}

.error-message {
    color: var(--vermelho);
    font-size: 0.85rem;
    margin-top: 5px;
    height: 20px;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--cor_primaria);
    color: white;
}

.btn-primary:hover {
    background-color: var(--cor_destaque);
}

.btn-secondary {
    background-color: var(--cinza-medio);
    color: var(--cor_texto_secundario);
    border: 1px solid var(--cinza-borda);
}


#cadastro-success {
    background-color: var(--verde-circulo);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Temas Especiais */
body.Tema-Vermelho header,
body.Tema-Amarelo header {
    background-image: linear-gradient(to right, var(--cor_primaria), var(--cor_secundaria));
}
body.Tema-Vermelho .botao,
body.Tema-Vermelho .botao2 {
    background-color: var(--cinza-medio);
    color: var(--cor_destaque);
}
body.Tema-Amarelo .botao,
body.Tema-Amarelo .botao2 {
    background-color: var(--cinza-claro);
    color: var(--cor_destaque);
}
body.Tema-Vermelho .linha,
body.Tema-Amarelo .linha {
    border: solid var(--cor_secundaria);
}

body.tema-escuro {
    background-color: var(--cor_fundo_secundario);
    color: var(--cor_texto_secundario);
}


/* Footer */
footer {
    background: var(--cor_primaria);
    color: var(--cor_terciaria);
    padding: 40px 0 20px 0;
    font-size: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}
.footer-logo p {
    font-weight: bold;
    color: var(--cor_destaque);
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.footer-links a {
    color: var(--cor_terciaria);
    text-decoration: none;
    transition: 0.2s;
    font-size: 1rem;
    position: relative;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--cor_destaque);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor_destaque);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-social p {
    margin-bottom: 4px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.footer-social img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    transition: filter 0.2s;
}
.footer-social a:hover img {
    filter: brightness(1.2) drop-shadow(0 0 4px var(--cor_destaque));
}

.footer-text {
    text-align: center;
    color: var(--cor_terciaria);
    font-size: 0.95rem;
    margin-top: 32px;
    opacity: 0.8;
}

/* Menu Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 200;
    margin-left: 16px;
}
.hamburger span {
    height: 4px;
    width: 100%;
    background: var(--cor_destaque);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.4s;
    display: block;
}

/* Adicione ao seu style.css */
.cadastro-success {
    display: none;
    background: var(--cor_terciaria, #fff);
    border-radius: 8px;
    padding: 24px 16px;
    margin-top: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    color: var(--cor_primaria, #1E3A5F);
    font-size: 1.1rem;
}
.cadastro-success h3 {
    margin-bottom: 8px;
    color: var(--verde, green);
}

/* Responsividade */

@media (max-width: 1200px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        gap: 0;
        flex-wrap: wrap;
    }
    .logo {
        gap: 8px;
    }
    .cabecalho_logo {
        height: 40px;
    }
    .cabecalho__titulo {
        font-size: 1.3rem;
    }
    .cabecalho__cadastro {
        gap: 6px;
    }
    .circulos {
        gap: 8px;
    }
    .quiz-box {
        max-width: 98vw;
        padding: 8px 2vw;
        min-width: 0;
    }
    .quiz-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .quiz-container img {
        width: 80px;
        height: auto;
        margin: 0 auto 12px auto;
        display: block;
    }
    .section {
        padding: 32px 0;
    }
    .container {
        padding: 0 4vw;
    }
    .content {
        flex-direction: column;
        gap: 16px;
    }
    .image img {
        max-height: 180px;
    }
    .text {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 0 8px;
    }
    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }
    .footer-logo img {
        width: 36px;
        height: 36px;
    }
    .footer-logo p {
        font-size: 1rem;
    }
    .footer-social img {
        width: 22px;
        height: 22px;
    }
    .slide-caption {
        font-size: 0.95rem;
        padding: 10px;
    }
    .slide-caption h2 {
        font-size: 1.1rem;
    }
    .slide-btn {
        font-size: 1.3rem;
        padding: 6px 10px;
    }
    .slide-indicators {
        gap: 4px;
    }
    /* Menu Hamburguer responsivo */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        height: 100vh;
        background: var(--cor_primaria);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        padding: 80px 24px 24px 24px;
        transition: right 0.3s;
        box-shadow: -2px 0 16px var(--cinza-shadow-medium);
        z-index: 150;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
        color: var(--cor_terciaria);
        width: 100%;
        padding: 8px 0;
    }
    .hamburger {
        display: flex;
    }
    .section h2,
    .cabecalho__titulo,
    .sobre {
        font-size: 1.2rem;
        max-width: 90vw;
        text-align: center;
    }
    .cabecalho__cadastro {
        display: none;
    }
    .cabecalho__cadastro.mobile-cadastro {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 24px 0 0 0;
        width: 100%;
    }
    .cabecalho__cadastro.mobile-cadastro .btn-cabecalho {
        width: 100%;
        text-align: left;
        padding-left: 12px;
    }

}


/* Quebra de Texto para Títulos */
.section h2,
.cabecalho__titulo,
.sobre {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

.cabecalho__cadastro.mobile-cadastro {
    display: none;
}


/* Animações */
@keyframes MoveToRightfadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20%);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}
@keyframes MoveToLeftfadeIn {
    0% {
        opacity: 0;
        transform: translateX(20%);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Torna o formulário mais largo no modal de cadastro */


/* Para o formulário em grid (dois em dois) ocupar melhor o espaço */


