/* =========================================
   ACESSIBILIDADE
========================================= */

.acessibilidade-wrapper{

    position: fixed;

    top: 50%;

    right: 20px;

    transform: translateY(-50%);

    z-index: 9999;

    display: flex;

    flex-direction: column;

    align-items: flex-end;
}

/* BOTÃO FLUTUANTE */

.btn-acessibilidade{

    width: 60px;

    height: 60px;

    border: none;

    border-radius: 50%;

    background: #0056b3;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);

    transition: 0.3s;
}

.btn-acessibilidade:hover{

    transform: scale(1.08);
}

/* PAINEL */

.painel-acessibilidade{

    margin-top: 12px;

    background: white;

    border-radius: 20px;

    padding: 18px;

    width: 260px;

    display: none;

    flex-direction: column;

    gap: 15px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* LINHAS */

.acess-linha{

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 16px;

    color: #222;
}

/* DIVISÓRIA */

.acess-divisoria{

    margin: 0;

    border: none;

    border-top: 1px solid #ddd;
}

/* BOTÕES FONTE */

.acess-fontes{

    display: flex;

    gap: 10px;

    justify-content: center;
}

.btn-fonte{

    border: none;

    background: #0056b3;

    color: white;

    padding: 10px 14px;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.3s;

    font-size: 18px;
}

.btn-fonte:hover{

    transform: scale(1.05);
}

/* =========================================
   SWITCH
========================================= */

.switch {

    position: relative;

    display: inline-block;

    width: 52px;

    height: 28px;
}

.switch input {

    opacity: 0;

    width: 0;

    height: 0;
}

.slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: #ccc;

    transition: .4s;

    border-radius: 34px;
}

.slider:before {

    position: absolute;

    content: "";

    height: 22px;

    width: 22px;

    left: 3px;

    bottom: 3px;

    background-color: white;

    transition: .4s;

    border-radius: 50%;
}

input:checked + .slider {

    background-color: #2196F3;
}

input:checked + .slider:before {

    transform: translateX(24px);
}

/* =========================================
   MODO ESCURO
========================================= */

.tema-escuro{

    background: #121212 !important;

    color: white !important;
}

.tema-escuro .header{

    background: #1f1f1f !important;
}

.tema-escuro .popup-conteudo{

    background: #1f1f1f !important;

    color: white !important;
}

.tema-escuro .painel-acessibilidade{

    background: #1f1f1f !important;
}

/* TEXTO DO PAINEL NO MODO ESCURO */

.tema-escuro .painel-acessibilidade span{

    color: white !important;
}

/* BOTÕES A+ A- */

.tema-escuro .btn-fonte{

    background: #3a3a3a !important;

    color: white !important;

    border: none !important;
}

.tema-escuro .texto-verde,
.tema-escuro .titulos {
    color: white !important;
}

.tema-escuro .btn-fonte *{

    color: white !important;

    font-weight: bold !important;
}

/* =========================================
   ALTO CONTRASTE SUAVE
========================================= */

.tema-contraste{

    filter: grayscale(70%) contrast(110%) brightness(97%);
}

/* HEADER NORMAL */

.tema-contraste .header{

    filter: none !important;
}

/* MENU HEADER */

.tema-contraste .botao_header,
.tema-contraste .botao_jogar{

    background: transparent !important;

    color: white !important;

    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}

/* REMOVE QUADRADO BRANCO */

.tema-contraste .botao_header:focus,
.tema-contraste .botao_jogar:focus,
.tema-contraste .botao_header:active,
.tema-contraste .botao_jogar:active{

    outline: none !important;

    box-shadow: none !important;
}

/* HOVER */

.tema-contraste .botao_header:hover,
.tema-contraste .botao_jogar:hover{

    background: rgba(255,255,255,0.08) !important;
}

/* PAINEL */

.tema-contraste .painel-acessibilidade{

    background: #1f1f1f !important;
}

/* TEXTOS */

.tema-contraste .painel-acessibilidade span{

    color: white !important;
}

/* BOTÕES A+ A- */

.tema-contraste .btn-fonte{

    background: #3a3a3a !important;

    border: none !important;
}

/* TEXTO DOS BOTÕES */

.tema-contraste .btn-fonte *{

    color: white !important;

    opacity: 1 !important;

    visibility: visible !important;

    font-weight: bold !important;
}

/* INPUTS */

.tema-contraste input{

    background: #111 !important;

    border: 1px solid #666 !important;

    color: white !important;
}

/* LINKS */

.tema-contraste a{

    color: #e0e0e0 !important;
}

/* =========================================
   ALTO CONTRASTE / ESCALA DE CINZA
========================================= */

.tema-contraste{

    filter: grayscale(75%) contrast(104%);

    background: #000 !important;

    color: #fff !important;
}

.tema-contraste *{

    color: white !important;
}

.tema-contraste input{

    background: #111 !important;

    border: 2px solid #fff !important;

    color: #fff !important;
}

.tema-contraste button{

    border: 2px solid #fff !important;
}

.tema-contraste a{

    color: #ddd !important;
}

/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 768px){

    .acessibilidade-wrapper{

        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .painel-acessibilidade{

        position: absolute;
        right: 0;
        bottom: 70px;

        width: 220px;
        max-width: calc(100vw - 20px);
    }

    .btn-acessibilidade{

        width: 52px;

        height: 52px;
    }
}


/* =========================
   ALTO CONTRASTE
========================= */

.tema-contraste {
    filter: grayscale(70%) contrast(110%) brightness(97%);
}

/* TEXTOS SEMPRE VISÍVEIS */
/* =========================
   ALTO CONTRASTE SUAVE
========================= */

.tema-contraste {
    filter: grayscale(70%) contrast(110%) brightness(97%);
}

/* HEADER MANTÉM VISUAL ORIGINAL */
.tema-contraste .header {
    filter: none !important;
}

/* BOTÕES DO HEADER */
.tema-contraste .botao_header,
.tema-contraste .botao_jogar {
    color: white !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* REMOVE CONTORNO BRANCO */
.tema-contraste .botao_header:focus,
.tema-contraste .botao_jogar:focus,
.tema-contraste .botao_header:active,
.tema-contraste .botao_jogar:active {
    outline: none !important;
    box-shadow: none !important;
}

/* PAINEL ACESSIBILIDADE */
.tema-contraste .painel-acessibilidade {
    background: #2b2b2b !important;
}

/* TEXTO DO PAINEL */
.tema-contraste .painel-acessibilidade span {
    color: white !important;
}

/* BOTÕES A+ A- */
.tema-contraste .btn-fonte {
    background: #444 !important;
    color: white !important;
    filter: none !important;
}

/* GARANTE QUE O TEXTO A+ A- APAREÇA */
.tema-contraste .btn-fonte b {
    color: #000 !important;
    opacity: 1 !important;
}

/* BOTÕES DO MENU SUPERIOR */
.tema-contraste .botao_header,
.tema-contraste .botao_jogar {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* REMOVE QUADRADO BRANCO */
.tema-contraste .botao_header:focus,
.tema-contraste .botao_jogar:focus,
.tema-contraste .botao_header:active,
.tema-contraste .botao_jogar:active {
    outline: none !important;
    box-shadow: none !important;
}

/* HOVER */
.tema-contraste .botao_header:hover,
.tema-contraste .botao_jogar:hover {
    background: #222 !important;
    color: #fff !important;
}

/* PAINEL ACESSIBILIDADE */
.tema-contraste .painel-acessibilidade {
    background: #000 !important;
}

/* TEXTO DO PAINEL */
.tema-contraste .painel-acessibilidade span {
    color: #fff !important;
}

/* BOTÕES A+ A- */
.tema-contraste .btn-fonte {
    background: #fff !important;
    color: #000 !important;
}