@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Optima&display=swap');

:root {
    --vermelho-claro: #FF0000;
    --vermelho-escuro: #990000;
    --vermelho-suave: #FF6666;
    --alto-contraste-fundo: #000000;
    --alto-contraste-texto: #ffffff;
    --alto-contraste-link: #00ffff;
}

body {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background-color: #111;
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    transition: font-size 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    color: #ffffff;
}

header {
    background-color: #ffffff;
    padding: 1rem 0;
}

section {
    padding-bottom: 5rem;
}

/* ================================
   Navegação
================================ */
.nav-link {
    color: var(--vermelho-suave);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--vermelho-claro);
}

/* ================================
   Seção inicial
================================ */
.inicio-fundo {
    border-radius: 30px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
    position: relative;
}

.img-inicio {
    width: 45rem;
    height: auto;
}

.esquerda-conteudo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.botao-inicio {
    background-color: var(--vermelho-claro);
    border-radius: 30px;
    border: none;
    width: 14em;
    height: 3em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.botao-inicio:hover {
    background-color: var(--vermelho-escuro);
}

.display-4 {
    text-shadow: -5px 5px var(--vermelho-escuro);
    color: blue;
    /* título azul */
    font-family: 'Optima', sans-serif;
}

/* ================================
   Títulos e parágrafos
================================ */
h2 {
    font-family: 'Montserrat', serif;
    font-size: 2.5em;
    font-style: normal;
    color: var(--vermelho-claro);
}

h3 {
    color: rgb(62, 0, 207);
    /* roxo */
}

p {
    font-family: 'Optima', sans-serif;
    color: #FFDDDD;
    background-color: rgba(51, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    line-height: 1.6;
}

/* ================================
   Formulário
================================ */
.formulario {
    background-color: rgba(153, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #ffffff;
}

.formulario button {
    background-color: var(--vermelho-claro);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario button:hover {
    background-color: var(--vermelho-escuro);
}

.form-control {
    background-color: #FFCCCC;
    padding: 0.5rem;
    color: #000000;
}

/* ================================
   Painel de acessibilidade
================================ */
.menu-acessibilidade {
    position: fixed;
    top: 2rem;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.rotacao-botao {
    transform: rotate(-90deg);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.opcoes-acessibilidade {
    margin-top: 10px;
    display: none;
    /* inicialmente escondido */
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.opcoes-acessibilidade button {
    margin-bottom: 5px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--vermelho-claro);
    background-color: #ffbb00;
    color: var(--vermelho-claro);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.opcoes-acessibilidade button:hover {
    background-color: var(--vermelho-claro);
    color: #ffffff;
}

.apresenta-lista {
    display: flex !important;
}

/* ================================
   Alto contraste (acessibilidade)
================================ */
.alto-contraste {
    background-color: var(--alto-contraste-fundo) !important;
    color: var(--alto-contraste-texto) !important;
}

.alto-contraste header,
.alto-contraste footer,
.alto-contraste .formulario {
    background-color: var(--alto-contraste-fundo) !important;
    color: var(--alto-contraste-texto) !important;
}

.alto-contraste h1,
.alto-contraste h2,
.alto-contraste h3,
.alto-contraste h4,
.alto-contraste h5,
.alto-contraste h6,
.alto-contraste p,
.alto-contraste figcaption {
    color: var(--alto-contraste-texto) !important;
}

.alto-contraste a,
.alto-contraste .nav-link {
    color: var(--alto-contraste-link) !important;
}

.alto-contraste button,
.alto-contraste .botao-inicio,
.alto-contraste .formulario button {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}
