/* =========================================================
   CONFIGURAÇÕES GERAIS
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f2f2f2;
    color: #222;
}


/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.pagina {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.cabecalho {
    position: relative;

    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 60px;

    background: #3A86FF;
    color: white;

    flex-shrink: 0;
}

.titulo {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   BOTÃO DO MENU
   ========================================================= */

.botao-menu {
    position: absolute;

    right: 12px;
    top: 50%;

    width: 40px;
    height: 40px;

    transform: translateY(-50%);

    border: none;
    border-radius: 6px;

    background: transparent;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 5px;

    cursor: pointer;
}

.botao-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.botao-menu:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.botao-menu span {
    display: block;

    width: 22px;
    height: 2px;

    background: white;

    border-radius: 2px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   MENU RETRÁTIL
   ========================================================= */

.menu {
    position: absolute;

    top: 60px;
    right: 10px;

    width: 200px;

    padding: 8px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;

    visibility: hidden;
    opacity: 0;

    transform: translateY(-10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 100;
}

.menu a {
    padding: 12px 14px;

    color: #222;

    text-decoration: none;

    border-radius: 5px;
}

.menu a:hover,
.menu a:focus-visible {
    background: #eeeeee;
}

.menu.aberto {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   ANIMAÇÃO DO BOTÃO
   ========================================================= */

.botao-menu.aberto span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.botao-menu.aberto span:nth-child(2) {
    opacity: 0;
}

.botao-menu.aberto span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.conteudo {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    padding: 12px;

    flex: 1;
}


/* =========================================================
   LINHAS
   ========================================================= */

.linha {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 10px;
}


/* =========================================================
   COLUNAS
   ========================================================= */

.coluna {
    min-width: 0;

    padding: 15px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.12);
}

.coluna h2 {
    margin-bottom: 8px;

    font-size: 1rem;
}

.coluna p {
    font-size: 0.9rem;

    line-height: 1.5;
}

.capa{
    max-width: 100%;
    height: auto;
}


/* =========================================================
   SEÇÕES EXTRAS
   ========================================================= */

.espaco {
    margin-top: 20px;
    padding: 20px;

    background: white;

    border-radius: 8px;
}

.espaco h2 {
    margin-bottom: 8px;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.rodape {
    min-height: 50px;

    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1f2937;
    color: white;

    font-size: 0.85rem;

    flex-shrink: 0;
}


/* =========================================================
   TELAS MUITO PEQUENAS
   ========================================================= */

@media (max-width: 400px) {

    .cabecalho {
        padding-left: 45px;
        padding-right: 45px;
    }

    .titulo {
        font-size: 1rem;
    }

    .conteudo {
        padding: 8px;
    }

    .linha {
        gap: 6px;
    }

    .coluna {
        padding: 10px;
    }

    .coluna h2 {
        font-size: 0.9rem;
    }

    .coluna p {
        font-size: 0.8rem;
    }
}

#brincadeira{
    color: crimson;
    font-size: 80px;
    align-items: center;
    vertical-align: bottom;
    height: 500px;
    text-align: center;
}