@font-face {
    font-family: 'NeueThingSans';
    src: url('../Elementos_Visuais/NeuethingSans-RegularExpanded.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body {
    background: transparent !important;
    font-family: 'NeueThingSans', 'Inter', sans-serif;
    color: #5a5959;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
   align-items: center;
    
}

#layout-principal {
    display: flex;
    padding-top: 100px;
    flex-direction: row;
    justify-content: 700px 600px 600px; 
    align-items: flex-start; 
    gap: 100px; 
    width: 100%;
    max-width: 1800px; 
    max-height: 1300px;
    margin: 0 auto;
    
    box-sizing: border-box; 
}

.coluna-esquerda {
    flex: 1;
    max-width: 500px;
    align-items: center;
     display: flex; 
        padding-top: 50px; 
    box-sizing: border-box; 
     
}


.coluna-central {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    
}

.coluna-direita {
   flex: 1;
    max-width: 600px;
    width: 300px;
    align-items: center;
     display: flex; 
     padding-top: 50px; 
    box-sizing: border-box; 
    
}

.interacao-container {
    width: 100%;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.05);
    
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}



#canvas {
    width: 550px;
    height: 400px;
    background-image: url('../Elementos_Visuais/Capa_Livro.png') !important;
    background-size: 100% 100%;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#flipbook .page {
    background-image: url('../Elementos_Visuais/Fundo_folha.jpg') !important;
    width: 250px;
    height: 300px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid #ddd;
    z-index: 2;
    min-height: 300px !important;
}


#flipbook img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: center !important;
    z-index: 2;
    overflow: hidden;
}


#flipbook-container {
    position: relative;
    width: auto;
    height: 400px;
    margin: 0 auto;
    padding: auto;
    overflow: hidden;
    max-width: 100%;
    max-height: 400px;

}

#flipbook {
    margin: 0 auto !important;
}

#logo-sobreposto {
    position: absolute;
    top: 100px;
    left: 70px;
    z-index: 0;
    pointer-events: none;
}


#logo-sobreposto img {
    width: 100px;
    height: auto;
}

#logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}


#logo-header img {
    width: 450px;
    height: auto;
    object-fit: contain;
}




.gallery-wrapper {
    width: 300px;
    height: 800px;
    overflow-x: hidden;
    overflow-y: auto;              
    scrollbar-gutter: stable;      
    scroll-behavior: smooth;       

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);   
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;           
    padding: 15px 12px;
    box-sizing: border-box;

    
    box-shadow:
        inset 0 20px 20px -20px rgba(0, 0, 0, 0.4),
        inset 0 -20px 20px -20px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2); 

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    transition: box-shadow 0.3s ease;
}

.gallery-wrapper::-webkit-scrollbar {
    width: 20px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 8px;          
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

.gallery-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
}
@-moz-document url-prefix() {
    .gallery-wrapper {
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
        scrollbar-width: thin;
    }
}
.book-card {
    flex: none;
    width: 100%;

}

.book-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;           
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1),
                box-shadow 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}


.book-card .img-wrapper {
    width: 100%;
    height: 120px;
    
    overflow: hidden;
}


.book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px 4px 0 0;  
    filter: brightness(0.85);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.book-card:hover img {
    filter: brightness(1);
    transform: scale(1.08);     
}


.book-card span {
    display: block;
    font-size: 11px;
    padding: 8px 10px;
    color: #131313;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.background-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-image: url('../Elementos_Visuais/fundo.jpg') !important;
    opacity: 0.2;
    pointer-events: none;


    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}


.scroll-track {
    display: flex;
    width: max-content;
    align-items: center;
    height: 20%;
    animation: scroll linear infinite;
}


.scroll-track img {
    width: 300px;
    height: auto;
    margin: 0 15px;
    filter: grayscale(100%);
    flex-shrink: 0;
}






.track-1 {
    animation-duration: 30s;
}

.track-2 {
    animation-duration: 55s;
    animation-direction: reverse;
}

.track-3 {
    animation-duration: 40s;
}

.track-4 {
    animation-duration: 70s;
    animation-direction: reverse;
}




@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -40px;
    margin-top: 30px;
    width: 100px;
    width: 50%;
    height: 80px;
}




#prev,
#next {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 3;
    outline: none;
    padding: 0;
    width: 60px;
    height: 60px;
}


#prev img,
#next img {
    width: 200%;
    height: 100%;
    display: block;
    opacity: 1;

}




#prev:hover img,
#next:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

#btn-autoplay {

    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease, transform 0.2s ease;
    min-width: 100px;
    outline: none;
}

#btn-autoplay:hover {
    background: rgba(68, 68, 68, 0.8);
    transform: translateY(-2px);
}

#btn-autoplay.active {
    background: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

#btn-autoplay.reset-state {
    background-color: #27ae60;
    border-color: #2ecc71;
    color: #fff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}



.play-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.barra-frase h2,
.barra-frase p,
.lista-respostas h3 {
    text-align: left !important;
    margin-left: 0 !important;
    width: 100%;
}




.formulario-resposta {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    align-self: center;

    
}


#input-resposta {
    width: 100%;
    text-align: center;
    max-width: 400px;
    align-self: center;
    gap: 100px;
}


.formulario-resposta button {
    margin-left: 0 !important;
    margin-top: 10px;
}







.item-resposta {
    text-align: left !important;
    margin-left: 0 !important;
}

.barra-frase h2,
.barra-frase p,
.lista-respostas h3,
#container-mensagens {
    text-align: center !important;
    margin-left: 0 !important;
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

.container-mensagens-scrollbar {
    width: 20px;
}

#input-resposta {
    width: 100%;
    height: 100px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: #2a2a2a;
    color: white;
    font-family: 'NeueThingSans', sans-serif;
    resize: none;
}

.formulario-resposta button {
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    background-color: #e0e0e0;
    color: #121212;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    align-self: center;
}

.formulario-resposta button:hover {
    background-color: #cacaca;
    transform: scale(1.05);
    align-self: center;
}


.lista-respostas {
    margin-top: 40px;
    text-align: left !important ;
}


.gallery-wrapper .book-card {
    margin-bottom: 20px; 
}