/* Importa a fonte OpenDyslexic */
@import url('https://fonts.googleapis.com/css2?family=OpenDyslexic&display=swap');


.basenior-trigger-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    background-color: #0056b3;
    color: #000 ;
    border: 2px solid black; /* Alterada a cor da borda para preto */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basenior-trigger-button svg {
    fill: white; 
    transition: fill 0.2s ease;
    width: 48px;    
    height: 48px;
    display: block;
}


.contrast-light .basenior-trigger-button svg {
    fill: black; /* Cor do SVG: preto */
}

.basenior-trigger-button:hover,
.basenior-trigger-button:focus {
    background-color: #004494;
    transform: scale(1.1);
    outline: 2px solid #00aaff; /* Destaque de foco claro */
}

/* --- Barra de Ferramentas de Acessibilidade --- */
.basenior-toolbar {
    --kit-surface: rgba(18, 48, 82, 0.58);
    --kit-surface-strong: rgba(24, 61, 102, 0.68);
    --kit-border: rgba(173, 210, 255, 0.32);
    --kit-shadow: 0 18px 45px rgba(5, 15, 30, 0.35);
    --kit-header-bg: linear-gradient(135deg, rgba(24, 115, 220, 0.9), rgba(70, 160, 255, 0.82));
    --kit-text: #ecf5ff;
    --kit-focus: #0a84ff;
    box-sizing: border-box;
    position: fixed;
    left: 20px;
    bottom: 90px;
    z-index: 99999;
    display: none;
    flex-direction: column;
    gap: 12px;
    width: clamp(300px, 28vw, 390px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 130px);
    padding: 14px;
    color: var(--kit-text);
    border: 1px solid var(--kit-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 2%, rgba(178, 219, 255, 0.22), rgba(178, 219, 255, 0) 34%),
        radial-gradient(circle at 92% 0%, rgba(118, 190, 255, 0.22), rgba(118, 190, 255, 0) 42%),
        var(--kit-surface);
    box-shadow: var(--kit-shadow);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    overflow: hidden;
    contain: layout style paint;
}


.basenior-toolbar.visible {
    display: flex;
}

.basenior-toolbar *,
.basenior-toolbar *::before,
.basenior-toolbar *::after {
    box-sizing: inherit;
}

/* Header do toolbar */
.toolbar-header {
    flex: 0 0 auto;
    background: var(--kit-header-bg);
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(10, 132, 255, 0.26);
}


.basenior-toolbar h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    color: #fff;
    font-weight: 600;
}


.basenior-toolbar-group {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.basenior-toolbar-group::-webkit-scrollbar {
    width: 8px;
}

.basenior-toolbar-group::-webkit-scrollbar-thumb {
    background: rgba(16, 61, 112, 0.32);
    border-radius: 8px;
}

.basenior-toolbar-group .button-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    margin-top: 0.2rem;
}


.basenior-toolbar button {
    width: 100%;
    min-width: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--kit-surface-strong));
    color: #15283f;
    border: 1px solid rgba(255, 255, 255, 0.82);
    padding: 9px 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.28;
    border-radius: 12px;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 10px rgba(16, 58, 97, 0.12);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.basenior-toolbar .button-container button {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98)) !important;
    color: #173354 !important;
    border: 1px solid rgba(205, 224, 245, 0.95) !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
    min-height: 52px;
    padding-top: 14px;
    --kit-accent: #0a84ff;
    --kit-accent-soft: rgba(10, 132, 255, 0.34);
    --kit-accent-glow: rgba(10, 132, 255, 0.52);
    --kit-step-active: rgba(10, 132, 255, 0.98);
    --kit-step-off: rgba(10, 132, 255, 0.5);
    --kit-step-glow: rgba(10, 132, 255, 0.48);
}

.basenior-toolbar .button-container button::before {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: #1f4f85;
    opacity: 0.95;
    mask: var(--kit-icon) center / 22px 22px no-repeat;
    -webkit-mask: var(--kit-icon) center / 22px 22px no-repeat;
}

#tts-play { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 4 20 12 6 20 6 4'/%3E%3C/svg%3E"); }
#tts-play.is-playing { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
#font-increase { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19l5-14 5 14'/%3E%3Cpath d='M6.2 14h5.6'/%3E%3Cpath d='M17 5v8'/%3E%3Cpath d='M13 9h8'/%3E%3C/svg%3E"); }
#contrast-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3a9 9 0 0 0 0 18z' fill='black'/%3E%3C/svg%3E"); }
#highlight-links-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1 0l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1 0l-2 2A5 5 0 0 0 12 20.1l1.1-1.1'/%3E%3C/svg%3E"); }
#saturation-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s7 7.1 7 12a7 7 0 0 1-14 0c0-4.9 7-12 7-12z'/%3E%3Cpath d='M12 21V3'/%3E%3C/svg%3E"); }
#dyslexia-friendly-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h7a4 4 0 0 1 0 8H5z'/%3E%3Cpath d='M5 13h8a4 4 0 0 1 0 8H5z'/%3E%3Cpath d='M5 5v16'/%3E%3C/svg%3E"); }
#text-spacing-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3Cpath d='M7 4 4 7l3 3'/%3E%3Cpath d='M17 4l3 3-3 3'/%3E%3C/svg%3E"); }
#line-height-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h12'/%3E%3Cpath d='M8 12h12'/%3E%3Cpath d='M8 18h12'/%3E%3Cpath d='M4 5v14'/%3E%3Cpath d='M2 7l2-2 2 2'/%3E%3Cpath d='M2 17l2 2 2-2'/%3E%3C/svg%3E"); }
#cursor-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3l7.5 18 2.3-7.2L21 11.5z'/%3E%3C/svg%3E"); }
#hide-images-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 17l5-5 4 4 3-3 6 6'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
#toggle-animation-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v16'/%3E%3Cpath d='M14 4v16'/%3E%3Cpath d='M4 12a8 8 0 0 1 8-8'/%3E%3Cpath d='M20 12a8 8 0 0 1-8 8'/%3E%3Cpath d='M7 4H4v3'/%3E%3Cpath d='M17 20h3v-3'/%3E%3C/svg%3E"); }
#reset-button { --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v6h6'/%3E%3C/svg%3E"); }
#vlibras-button {
    min-height: 58px;
    align-items: center !important;
    padding: 10px !important;
}

#vlibras-button::before {
    content: none;
    display: none;
    mask: none;
    -webkit-mask: none;
}

#vlibras-button .vlibras-thumbnail {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

#vlibras-button .vlibras-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: #173354;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: anywhere;
}

#eye-head-scroll-button {
    position: relative;
    padding-right: 34px;
    font-weight: 700;
}

#eye-head-scroll-button::before {
    content: "";
    --kit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M18 4l2 2'/%3E%3Cpath d='M6 20l-2-2'/%3E%3C/svg%3E");
}

#eye-head-scroll-button::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(120, 132, 148, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

#eye-head-scroll-button.is-ready {
    border-color: rgba(20, 160, 90, 0.8) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 10px rgba(16, 58, 97, 0.12), 0 0 0 2px rgba(29, 185, 84, 0.18);
}

#eye-head-scroll-button.is-ready::after {
    background: #1db954;
}

#eye-head-scroll-button.is-active {
    border-color: rgba(10, 132, 255, 0.95) !important;
    background: linear-gradient(180deg, rgba(230, 248, 255, 0.98), rgba(214, 240, 255, 0.98)) !important;
}

#eye-head-scroll-button.is-active::after {
    background: #0a84ff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 12px rgba(10, 132, 255, 0.6);
}

.basenior-toolbar .button-container button::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 12px;
    height: 13px;
    /* border-radius: 50%; */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.basenior-toolbar .button-container button[data-step-count="0"]::after {
    display: none;
}

.basenior-toolbar .button-container button[data-step-count="1"]::after {
    width: 13px;
    background: radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat;
    opacity: 0.35;
}

.basenior-toolbar .button-container button[data-step-count="1"][data-step="1"]::after {
    background: radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

.basenior-toolbar .button-container button[data-step-count="2"]::after {
    width: 31px;
    background:
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat;
    opacity: 0.35;
}

.basenior-toolbar .button-container button[data-step-count="2"][data-step="1"]::after {
    background:
        radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

.basenior-toolbar .button-container button[data-step-count="2"][data-step="2"]::after {
    background:
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

.basenior-toolbar .button-container button[data-step-count="3"]::after {
    width: 49px;
    background:
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 36px 0 / 13px 13px no-repeat;
    opacity: 0.35;
}

.basenior-toolbar .button-container button[data-step-count="3"][data-step="1"]::after {
    background:
        radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 36px 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

.basenior-toolbar .button-container button[data-step-count="3"][data-step="2"]::after {
    background:
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 36px 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

.basenior-toolbar .button-container button[data-step-count="3"][data-step="3"]::after {
    background:
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 0 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-off) 0 65%, transparent 70%) 18px 0 / 13px 13px no-repeat,
        radial-gradient(circle, var(--kit-step-active) 0 65%, transparent 70%) 36px 0 / 13px 13px no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--kit-step-glow));
    box-shadow: 0 0 12px var(--kit-step-glow);
}

#toolbar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(10, 132, 255, 0.36);
    border-radius: 999px;
    color: #0a5eb8;
    width: 32px;
    height: 32px;
    font-size: 0;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(8, 44, 88, 0.18);
    z-index: 2;
}

#toolbar-close i {
    font-style: normal;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}

#toolbar-close:focus {
    outline: 2px solid var(--kit-focus);
    outline-offset: 1px;
}


body.basenior-keyboard-nav a:focus,
body.basenior-keyboard-nav button:focus,
body.basenior-keyboard-nav input:focus,
body.basenior-keyboard-nav select:focus,
body.basenior-keyboard-nav textarea:focus {
    outline: 3px solid #00aaff !important;
    outline-offset: 2px;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.7);
}


.contrast-button {
    position: static; 
    background-color: #e7e7e7;
    color: #000;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    flex-grow: 1;
    transition: background-color 0.2s ease;
}

.contrast-button:hover,
.contrast-button:focus {
    background-color: #dcdcdc;
    outline: 2px solid #0056b3; /* Destaque de foco */
}

/* Cores invertidas */
.contrast-inverted {
    filter: invert(1);
    background-color: #000; /* Garante que o fundo seja consistente */
}

/* Contraste escuro */
.contrast-dark {
    background-color: #000;
    color: #fff;
}

.contrast-dark * {
    background-color: #000 !important;
    color: #fff !important;
}

/* Contraste claro */
.contrast-light {
    background-color: #fff;
    color: #000;
}

.contrast-light * {
    background-color: #fff !important;
    color: #000 !important;
}

/* Estilo para links destacados */
.highlighted-link {
    outline: 3px solid #ffcc00; /* Destaque amarelo ao redor do link */    
    text-decoration: underline;
    font-weight: bold;
}


.saturation-normal {
    filter: saturate(1);
}


.saturation-high {
    filter: saturate(2); 
}


.saturation-low {
    filter: saturate(0.5); 
}


.saturation-none {
    filter: grayscale(1); /* Remove todas as cores (tons de cinza) */
}


.dyslexia-friendly {
    font-family: 'OpenDyslexic', Arial, sans-serif; 
    line-height: 1.6; 
    letter-spacing: 0.05em; 
    background-color: #f5f5f5; /* Fundo claro e suave */
    color: #333; /* Texto em cor escura */
}


.dyslexia-friendly a {
    text-decoration: underline;
    color: #0056b3; /* Azul escuro para links */
}


.readable-font {
    font-family: 'Verdana', Arial, sans-serif; 
    font-size: 18px; /* Aumenta o tamanho da fonte */
    line-height: 1.8; 
    color: #000; /* Texto preto */
    background-color: #fff; /* Fundo branco */
}


.readable-font a {
    text-decoration: underline;
    color: #0000ee; 
}





.text-spacing-clear {
    line-height: 1.5; 
    letter-spacing: 0.05em; 
    word-spacing: 0.1em; 
}


.text-spacing-moderate {
    line-height: 1.8; 
    letter-spacing: 0.1em; 
    word-spacing: 0.2em; 
}


.text-spacing-heavy {
    line-height: 2; 
    letter-spacing: 0.15em; 
    word-spacing: 0.3em; 
}


.text-spacing-button {
    background-color: #007bff;    
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.text-spacing-button:hover {
    background-color: #0056b3;
}


body.line-height-default {
    line-height: normal; 
}

/* Altura da linha 1.5x */
body.line-height-1-5 {
    line-height: 1.5; 
}

/* Altura da linha 1.75x */
body.line-height-1-75 {
    line-height: 1.75; 
}

/* Altura da linha 2x */
body.line-height-2 {
    line-height: 2; 
}


.line-height-button {
    background-color: #007bff;    
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.line-height-button:hover {
    background-color: #0056b3;
}


body {
    cursor: auto; 
}

/* Cursor Grande */
body.cursor-large {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M18 14.88 8.16 3.15c-.26-.31-.76-.12-.76.28v15.31c0 .36.42.56.7.33l3.1-2.6 1.55 4.25c.08.22.33.34.55.26l1.61-.59a.43.43 0 0 0 .26-.55l-1.55-4.25h4.05c.36 0 .56-.42.33-.7Z"/></svg>'), auto; /* Novo SVG para o cursor grande */
}


.reading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro */
    pointer-events: none;
    z-index: 99999;
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%, 0% 40%, 100% 40%, 100% 60%, 0% 60%, 0% 0%);
    box-shadow: 0 0 0 2px #007bff; /* Adiciona uma borda azul ao polygon */
}

/* Guia de Leitura */
.reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ffcc00; 
    pointer-events: none;
    z-index: 99999;
    display: none;
    font-weight: bold;
}


.toggle-animation-button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-animation-button:hover {
    background-color: #0056b3;
}


.reset-button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.reset-button:hover {
    background-color: #c82333; /* Tom mais escuro ao passar o mouse */
}



/* --- Responsividade para telas menores --- */
@media (max-width: 1024px) {
    .basenior-toolbar {
        width: min(350px, calc(100vw - 20px));
        left: 10px;
        bottom: 82px;
        padding: 12px;
        max-height: calc(100vh - 108px);
    }

    .basenior-toolbar h3 {
        font-size: 0.95rem;
    }

    .basenior-toolbar button {
        font-size: 13px;
        padding: 8px 9px;
    }

    #toolbar-close {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .basenior-toolbar {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        bottom: 78px;
        border-radius: 14px;
        padding: 10px;
        max-height: calc(100vh - 96px);
    }

    .basenior-toolbar h3 {
        font-size: 0.9rem;
    }

    .basenior-toolbar-group .button-container {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .basenior-toolbar button {
        font-size: 12px;
        padding: 8px;
    }

    #toolbar-close {
        width: 31px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .basenior-toolbar {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        left: 6px;
        right: 6px;
        bottom: 74px;
        padding: 9px;
        max-height: calc(100vh - 90px);
    }

    .basenior-toolbar h3 {
        font-size: 0.84rem;
    }

    .basenior-toolbar button {
        font-size: 11px;
        padding: 7px 8px;
    }

    #toolbar-close {
        width: 26px;
        height: 26px;
    }
}

/* reduzir automaticamente em telas pequenas */
@media (max-width: 480px) {
    .basenior-trigger-button svg {
        width: 36px;
        height: 36px;
    }
}

/* aumentar para telas maiores se desejar */
@media (min-width: 1200px) {
    .basenior-trigger-button svg {
        width: 56px;
        height: 56px;
    }
}

