#titulo-fundo-texto{
    background: linear-gradient(170deg, rgba(28, 0, 212, 0.514), rgba(174, 38, 106, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}



#titulo-texto{
    color: var(--neutral-100);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
    padding: 30px 20px;
    text-align: center;
    text-shadow: 0 2px 2px rgba(0,0,0,0.3);
    /* letter-spacing: -0.5px; */
}



#intro{

    width: 600px;

    background: var(--neutral-300);

    font-size: 21px;

    margin: -50px auto;

    box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;

}



.textoIntro{

    font-size: inherit;

    line-height: 25px;

    padding: 15px;

    text-align: justify

}



.etiqueta{

    font-size: 14px;

    position: absolute;

    left: 50%;

    transform: translate(-50%, -50%);

    background: var(--neutral-500);

    color: white;

    padding: 0px 10px;

}



.autores{

    width: 600px;

    text-align: right;

    margin: 0px auto;

    font-size: 14px;

}





#conteudo{
    /* max-width: 700px; */
    font-size: 18px;
    line-height: 1.7;
    margin: 50px auto;
    padding: 0 20px;
    color: var(--neutral-800);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--neutral-100);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}







#conteudo p{
    margin: 0 0 24px 0;
    text-align: justify;
    line-height: 1.7;
    color: var(--neutral-800);
    font-size: 18px;
    hyphens: auto;
    word-spacing: 0.1em;
}



#conteudo img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    display: block;
}





#conteudo h1{
    color: var(--neutral-800);
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

#conteudo h2{
    color: var(--neutral-700);
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

#conteudo h3{
    color: var(--neutral-700);
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    line-height: 1.3;
}

#conteudo strong, #conteudo b{
    font-weight: 600;
    color: var(--neutral-800);
}

#conteudo em, #conteudo i{
    font-style: italic;
    color: var(--neutral-700);
}

#conteudo blockquote{
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--neutral-600);
    background: var(--neutral-200);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}





/* #logo{

    float: left;

    padding: 20px;

} */







#zoomImg{

    color: white;

    background: rgba(0, 0, 0, 0.8);

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 1000;

    font-size: 16px;

    overflow: auto;

}

#zoomImg img{

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    max-height: 90%;

    width: auto;

}



/* Melhorias gerais para experiência de leitura */
.texto-container {
    /* background: #f8f9fa; */
    min-height: 100vh;
    padding: 0;
}

/* Estilo para o vídeo do YouTube */
.yt {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

.yt iframe {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.yt iframe:hover {
    transform: scale(1.02);
}

/* Melhorias no cabeçalho */
#fundoHeader {
    position: relative;
    overflow: hidden;
}

#fundoHeader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 199, 208, 0.1), rgba(234, 61, 144, 0.1));
    z-index: 1;
}

#titulo-fundo-texto {
    position: relative;
    z-index: 2;
}

/* Melhorias na área de autores */
.autores {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: right;
    font-size: 14px;
    color: var(--neutral-600);
    font-style: italic;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Melhorias de acessibilidade */
#conteudo:focus {
    outline: 2px solid #3498db;
    outline-offset: 4px;
}

/* Estilo para links dentro do conteúdo */
#conteudo a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#conteudo a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Melhorias para listas */
#conteudo ul, #conteudo ol {
    margin: 20px 0;
    padding-left: 30px;
}

#conteudo li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Estilo para código */
#conteudo code {
    background: var(--neutral-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-3);
}

#conteudo pre {
    background: var(--neutral-800);
    color: var(--neutral-100);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Animações suaves para melhor experiência */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#conteudo {
    animation: fadeInUp 0.6s ease-out;
}

/* Melhorias para impressão */
@media print {
    .texto-container {
        background: white !important;
    }
    
    #conteudo {
        box-shadow: none !important;
        border: 1px solid var(--neutral-400);
    }
    
    .yt, #controles-leitura {
        display: none !important;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .texto-container {
        background: var(--neutral-900);
    }
    
    #conteudo {
        background: var(--neutral-800);
        color: var(--neutral-200);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    #conteudo h1, #conteudo h2, #conteudo h3 {
        color: var(--neutral-100);
    }
    
    #conteudo p {
        color: var(--neutral-200);
    }
    
    #conteudo strong, #conteudo b {
        color: var(--neutral-100);
    }
    
    #conteudo blockquote {
        background: var(--neutral-700);
        color: var(--neutral-300);
    }
}

/* Melhorias de performance */
#conteudo img {
    will-change: transform;
}

/* Estilo para tabelas */
#conteudo table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--neutral-900);
    font-size: inherit;
}

#conteudo th, #conteudo td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-400);
    color: var(--neutral-900);
    font-size: inherit;
}

#conteudo th {
    background: var(--neutral-200);
    font-weight: 600;
    color: var(--neutral-800);
    font-size: inherit;
}

#conteudo tr:hover {
    background: var(--neutral-200);
}

/* Sistema de Zoom Aprimorado */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoom-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    button {
        box-shadow: none;
        padding: 0;
    }
}

.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--neutral-900);
    border-bottom: 1px solid var(--neutral-800);
}

.zoom-btn {
    background: var(--neutral-800);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--neutral-500);
    transform: scale(1.05);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.zoom-close {
    background: var(--accent-3);
    margin-right: 10px;
}

.zoom-close:hover {
    background: var(--accent-3-dark);
}

.zoom-level {
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.zoom-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    background: var(--neutral-900);
    border-bottom: 1px solid var(--neutral-600);
}

.nav-btn {
    background: var(--neutral-800);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: var(--neutral-500);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-counter {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.zoom-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

.zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease-out;
    user-select: none;
}

.zoom-image:active {
    cursor: grabbing;
}

.zoom-instructions {
    padding: 10px 20px;
    background: var(--neutral-700);
    text-align: center;
}

.zoom-instructions p {
    color: var(--neutral-500);
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

/* Prevenir scroll quando zoom está ativo */
body.zoom-active {
    overflow: hidden;
}

/* Melhorias para imagens no conteúdo */
#conteudo img {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

#conteudo img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Responsividade para o zoom */
@media (max-width: 768px) {
    .zoom-container {
        width: 95%;
        height: 95%;
        border-radius: 8px;
    }
    
    .zoom-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .zoom-navigation {
        padding: 8px 15px;
        gap: 15px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .zoom-instructions {
        padding: 8px 15px;
    }
    
    .zoom-instructions p {
        font-size: 11px;
    }
}





@media only screen and (max-width: 768px) {

    /* For mobile phones: */

    #conteudo{
        max-width: 100%;
        padding: 20px 15px;
        font-size: 16px;
        line-height: 1.6;
        margin: 20px auto;
        border-radius: 8px;
    }

    #conteudo p{
        font-size: 16px;
        line-height: 1.6;
        margin: 0 0 20px 0;
    }

    

    #conteudo b, #conteudo strong{

        font-size: 1em;

    }





    

    #intro{

        width: 100%;

        margin: 0 auto;

    }

       

      

    #titulo{

        font-size: 32px;

        width: 100%;

        line-height: 34px;

        padding: 20px 0 30px 0;

        text-align: center;

        clear: both;

    }



    #fundoHeader{

        min-height: 40px;

    }

      



    #logo{

        padding: 5px;

    }

    #logo img{

        width: 90px;

    }





    .autores{

        width: 100%;

        text-align: right;

        margin: 10px auto;

        font-size: 14px;

    }



    .yt iframe{
        width: 100%;
        height: 200px;
        border-radius: 8px;
        margin: 20px 0;
    }

    
    #miolo {
        height: initial !important;
    }
      

  }

/* Novos estilos para o botão de leitura concluída */
#controles-leitura {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--neutral-300);
}

#btn-leitura-concluida {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight-button {
    animation: highlightPulse 1.5s infinite !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 0 var(--primary-dark), 0 0 20px rgba(43, 217, 226, 0.5) !important;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1.05);
        box-shadow: 0 8px 0 var(--primary-dark), 0 0 15px rgba(43, 217, 226, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 10px 0 var(--primary-dark), 0 0 25px rgba(43, 217, 226, 0.7);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 8px 0 var(--primary-dark), 0 0 15px rgba(43, 217, 226, 0.5);
    }
}

/* Estilos de feedback e animação de moeda */
.feedback-positivo {
    background: linear-gradient(145deg, var(--feedback-positivo-dark) 0%, var(--feedback-positivo) 100%);
    color: white;
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 0 var(--feedback-positivo-dark);
    margin: 20px 0;
}

.feedback-positivo .icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feedback-positivo .msg {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    #controles-leitura {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .feedback-positivo {
        padding: 20px 15px;
    }
    
    .feedback-positivo .msg {
        font-size: 18px;
    }
}