
body {
    font-family: 'Georgia', serif;
    background-color: #fff5e9;
    color: #333;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 800px;
    margin: auto;
    background-color: #fdfaf6;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
h1, h2 {
    text-align: center;
    margin-top: 0;
}
p {
    line-height: 1.6;
    margin-bottom: 1.2em;
    text-align: justify;
}

.print-button {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.print-button button:first-child {
    background-color: #2c3e50;
    color: #fff;
    min-width: 100px; /* Maior que 150px do padrão */
}

.print-button button:last-child {
    background-color: #8a1c1c;
    color: #fff;
    max-width: 250px;
}


.print-button button {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 150px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.print-button button:first-child {
    background-color: #2c3e50;
    color: #fff;
}

.print-button button:first-child:hover {
    background-color: #1a252f;
}

.print-button button:last-child {
    background-color: #8a1c1c;
    color: #fff;
}

.print-button button:last-child:hover {
    background-color: #6e1414;
}

.alto-contraste {
    background-color: #000 !important;
    color: #FFD700 !important;
}

.alto-contraste a {
    color: #00FFFF !important;
}

@media (max-width: 600px) {
    .print-button {
        flex-direction: column;
        align-items: stretch;
    }

    .print-button button:last-child {
        margin: 0 auto;
        width: 100%
    }
}



#painel-acessibilidade button {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#painel-acessibilidade button:hover {
    background-color: #1a252f;
    transform: scale(1.05);
}

#painel-acessibilidade label {
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
    color: #333;
}

#painel-acessibilidade input[type=range] {
    width: 100%;
    margin-top: 4px;
}


#acessibilidade-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#acessibilidade-popup #abrir-popup {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#painel-acessibilidade {
    display: none;
    flex-direction: column;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    gap: 6px;
}

#acessibilidade-popup:hover #painel-acessibilidade {
    display: flex;
}

/* Contraste */
.alto-contraste {
    background-color: #000 !important;
    color: #FFD700 !important;
}

.alto-contraste a {
    color: #00FFFF !important;
}











/* Estilo para seções principais */
#p-secao {
    font-size: 1.2em;

    color: #5a2d0c;
    background-color: #f3e8d9;
    padding: 10px 15px;
    margin-top: 2rem;
    border-left: 5px solid #8a1c1c;
    border-radius: 4px;
}

/* Estilo para subtítulos */
#p-subtitulo {
    font-size: 1.1em;
    font-style: italic;
    color: #7a4c21;
    margin: 1.5rem 0 0.5rem 0;
    padding-left: 10px;
    border-left: 3px solid #c38b6e;
}

/* Estilo para conteúdo principal */
.p-conteudo {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
    color: #2e2e2e;
    margin-bottom: 1.2rem;
}

/* Estilo para notas de rodapé ou observações */
#p-notas {
    font-size: 0.9em;
    color: #555;

    margin: 1.2rem 0;
    font-style: italic;
}



/* Estilo de leitura para dispositivos móveis */
@media (max-width: 600px) {
    #p-secao {
        font-size: 1.1em;
    }

    #p-subtitulo {
        font-size: 1em;
    }

    .p-conteudo {
        font-size: 0.95em;
    }
}



#navegacao-dropdown {
    margin: 2rem auto;
    max-width: 320px;
    text-align: center;
}

#navegacao-dropdown label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5a2d0c;
}

#navegacao-dropdown select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff8f2;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



#voltar-topo {
    position: fixed;
    bottom: 100px; /* acima do painel de acessibilidade */
    right: 20px;
    z-index: 10000;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    padding: 10px 13px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

#voltar-topo:hover {
    background-color: #e0e0e0;
}

#voltar-topo i {
    color: #333;
}







#p-secao-capitulo {
    font-size: 1.4em;
    font-weight: bold;
    background-color: #fdfdfd;
    color: #3a1c00;
    padding: 14px 18px;
    margin: 2.5rem 0 1.5rem 0;
    border-left: none;
    border-bottom: 4px solid #a0522d;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center; 
}