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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #FFFFFF;
    font-family: Georgia, serif;
}

/* Abas das categorias */

.menu-abas {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #DDDDDD;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-abas .aba {
    flex: 0 0 auto;
    padding: 16px 14px;
    border: 1px solid #222222;
    border-bottom: none;
    background: #F2F2F2;
    color: #000000;
    font: bold 18px/1.3 Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.menu-abas .aba.ativa {
    background: #D8EDED;
    border-bottom: none;
}

/* Filtro geral de camadas */

.filtro-camada {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px 0;
    font: bold 16px Arial, sans-serif;
}

#filtroCamada {
    width: min(280px, calc(100vw - 32px));
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #888888;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111111;
    font: 17px Arial, sans-serif;
}

/* Notas */

.pagina[hidden] {
    display: none !important;
}

.pagina {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.cabecalho-arraste {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 10px;
}

.cabecalho-arraste button {
    padding: 5px 8px;
    font-size: 16px;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 30px;
}

.titulo {
    display: block;
    width: min(560px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin: 0 auto 60px;
    padding: 5px;
    border: none;
    border-bottom: 1px solid #CCCCCC;
    background: transparent;
    color: #111111;
    font: 26px Georgia, serif;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Seletores de categoria e camada de cada nota */

.rotulo-categoria,
.rotulo-camada {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: -35px auto 24px;
    color: #222222;
    font: bold 16px Arial, sans-serif;
}

.rotulo-camada {
    margin: 0 auto 45px;
}

.categoria-nota,
.camada-nota {
    display: block;
    width: min(280px, calc(100vw - 48px));
    max-width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #888888;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111111;
    font: 17px Arial, sans-serif;
}

/* Círculo */

.circulo {
    position: relative;
    width: 200px;
    height: 200px;
    flex: 0 0 auto;
    margin: 0 auto;
    border: 2px solid #000000;
    border-radius: 50%;
}

.circulo .campo {
    position: absolute;
    display: block;
    width: 70px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #111111;
    font: normal 12px/18px Georgia, serif;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: hidden;
    resize: none;
    box-shadow: none;
    z-index: 2;
    cursor: text;
}

.h1  { top: -25px; left: 130px; }
.h2  { top: 0; right: -35px; }
.h3  { top: 55px; right: -75px; }
.h4  { top: 115px; right: -75px; }
.h5  { top: 180px; right: -35px; }
.h6  { top: 215px; left: 55px; }
.h7  { top: 180px; left: -35px; }
.h8  { top: 115px; left: -60px; }
.h9  { top: 55px; left: -60px; }
.h10 { top: 10px; left: -35px; }
.h11 { top: -25px; left: 0; }
.h12 { top: -35px; left: 65px; }

/* Campo expandido ao tocar */

.circulo .campo:focus,
.circulo .campo.expandido {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 420px;
    height: 45vh;
    min-height: 180px;
    padding: 16px;
    border: 2px solid #087F8C;
    border-radius: 10px;
    background: #FFFFFF;
    color: #111111;
    font: 20px/1.6 Georgia, serif;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}

/* Botões */

#btns,
.btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 90px auto 24px;
    padding: 0 12px;
}

#btns button,
.btns button {
    display: block;
    width: min(345px, calc(100vw - 40px));
    min-height: 58px;
    margin: 0 auto;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #087F8C;
    color: #FFFFFF;
    font: 22px/1.3 Arial, sans-serif;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
}

#btns button:active,
.btns button:active {
    opacity: 0.85;
}

@media (max-width: 480px) {
    .menu-abas .aba {
        flex: 0 0 auto;
        padding: 16px 14px;
        font-size: 18px;
        white-space: nowrap;
    }

    .pagina {
        width: 100%;
        max-width: 100%;
    }

    .container {
        width: 100%;
        margin-top: 30px;
    }

    .titulo {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        font-size: 26px;
        margin-bottom: 60px;
    }

    .circulo {
        width: 200px;
        height: 200px;
    }

    .circulo .campo {
        width: 70px;
        height: 18px;
        min-height: 18px;
        font-size: 12px;
        line-height: 18px;
    }

    .circulo .campo:focus,
    .circulo .campo.expandido {
        width: calc(100vw - 32px);
        max-width: 420px;
        height: 45vh;
        min-height: 180px;
        font-size: 20px;
    }

    #btns,
    .btns {
        width: 100%;
        margin: 100px auto 24px;
        padding: 0 12px;
    }

    #btns button,
    .btns button {
        width: min(345px, calc(100vw - 40px));
        min-height: 58px;
        font-size: 22px;
    }
}

/* Ocultar todas as abas */
.abas button {
    display: none;
}

/* Exibir somente Verbal Memory */
.abas button[data-categoria="Verbal Memory"] {
    display: block;
}
