@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&display=swap');

@font-face {
    font-family: 'fonth2';
    src: url(../fontes/Games.ttf);
}

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

:root {
    --link-color: #00f;
    --h2-color: yellow;
    --h3-color: rgb(0, 255, 0);
    --strong-color: #0ff;
    --lista-livros-color: #ddd;
    --lista-livros-color-hover: #eee;
}

@media screen and (orientation:portrait) {
    ::-webkit-scrollbar {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: lightgray;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 2000px;
}

html, body {
    max-width: 100vw;
    min-height: 100vh;
}

html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    text-align: justify;
    font-family: 'Kalam', cursive;
    background: url("../imagens/livros.jpg") center center no-repeat fixed;
    background-size: cover;
}

#conteudo {
    display: none;
}

#carregando {
    position: absolute;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    min-width: 200px;
    width: 25vw;
    height: 30vh;
    overflow: hidden;
}

#carregar {
    background-color: transparent;
    border-top: 10px solid transparent;
    border-bottom: 10px solid black;
    border-right: 10px solid black;
    border-left: 10px solid black;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: preload .5s linear infinite;
}

#pcarregar {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    background-color: white;
    color: black;
    margin: 0;
}

@keyframes preload {
    to {
        transform: rotate(360deg);
    }
}

#fundo-preto, #fundo-pretot {
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: brightness(.5);
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: none;
}

#fundo-pretot {
    backdrop-filter: none;
    z-index: 40;
}

#btn-sobre {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: .5s;
    z-index: 2;
}

#btn-sobre:hover {
    transform: scale(1.05);
}


#sobre-div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 25px;
    display: none;
    z-index: 200;
    padding: 75px 50px 25px 50px;
}

#btn-sobre-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: .5s;
    float: right;
    z-index: 2;
}

#btn-sobre-close:hover {
    transform: scale(1.05);
}

#link-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#link-chat a {
    display: flex;
    justify-content: center;
    align-items: center;
}

#link-chat:hover a {
    text-decoration: underline;
}

#chat-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition-duration: .5s;
}

#chat-img img {
    width: 150%;
}

#chat-img:hover {
    transform: scale(1.05);
}

header {
    position: sticky;
    top: 0;
    width: 100vw;
    padding: 0 25px;
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transition-duration: .5s;
    box-shadow: none;
}

header ul {
    position: relative;
}

header ul li {
    border-left: 1px solid black;
    position: relative;
    list-style: none;
    float: left;
    margin: 0;
}

header>nav>ul>li>a, header.header-scroll>nav>ul>li>a {
    border-radius: 15px;
}

header ul li a, header ul li a:visited, header ul li a:active {
    color: #000;
    font-size: 1.1em;
    padding: 20px 26px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform .25s, font-size .25s;
    cursor: pointer;
    overflow: hidden;
}

header ul li a:hover {
    transform: scale(1.05);
    backdrop-filter: brightness(.9);
    text-decoration: none;
}

header ul li a:hover span {
    transition-duration: .5s;
    transform: rotate(-180deg);
}

header ul li a:not(:hover) span {
    transition-duration: .5s;
    transform: rotate(0deg);
}

header ul li ul {
    width: 151px;
    position: absolute;
    left: -2px;
    display: none;
}

header ul li ul li:nth-child(1) {
    border-radius: 20px 20px 0px 0px;
}

header.header-scroll ul li ul li:nth-child(1), header.header-scroll ul li ul li a:nth-child(1) {
    border-radius: 0px;
}

header ul li ul li:last-child, header.header-scroll ul li ul:last-child, header.header-scroll ul li ul li:last-child {
    border-radius: 0px 0px 20px 20px;
}

header ul li:hover ul {
    display: block;
}

header ul li ul li {
    background-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(20px);
    position: relative;
    width: 100%;
    overflow: hidden;
}

header ul li ul li a, header ul li ul li a:visited, header ul li ul li a:active {
    padding: 20px 0px;
    display: flex;
    justify-content: center;
    justify-content: center;
}

header ul li:before {
    display: none;
}

header.header-scroll ~ #progresso-circle #btn-menu-header, header.header-scroll ~ #progresso-bar #btn-menu-header {
    background-image: linear-gradient(135deg, var(--cor-header));
    box-shadow: none;
}

#progresso-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    max-width: 100vw;
    background-color: var(--cor-progresso);
    display: none;
}

#progresso-circle {
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 9999;
}

#circular-chart {
    position: absolute;
    display: block;
    max-width: 75px;
    max-height: 75px;
}

#circle {
    fill: none;
    stroke: var(--cor-progresso);
    stroke-width: 3.8;
    stroke-dasharray: 0, 100;
}

#btn-menu-header {
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: .5s;
    z-index: 2;
    display: none;
}

@media screen and (max-width: 975px) {
    header ul li a:hover span, header ul li a:not(:hover) span, header ul li a:hover {
        transform: none;
    }

    #nav-anos {
        display: none;
    }

    header {
        padding: 0px 20px;
    }

    header nav {
        position: absolute;
        width: 100vw;
        top: 0px;
        left: 0;
        box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, .5);
    }
    
    header.header-scroll nav {
        top: 45px;
    }

    header nav ul li {
        width: 100%;
        background-color: white;
    }

    header ul li ul li:nth-child(1) {
        border-radius: 0px;
    }

    header ul li ul li:last-child, header.header-scroll ul li ul:last-child, header.header-scroll ul li ul li:last-child {
        border-radius: 0px;
    }

    header.header-scroll nav ul li {
        background-image: linear-gradient(135deg, var(--cor-header));
    }

    header nav ul li ul li {
        background-color: #eee;
        backdrop-filter: none;
    }

    header nav ul li ul {
        position: relative;
        width: 100%;
        left: 0;
    }

    header ul li:hover ul {
        display: none;
    }

    header ul li a {
        padding: 10px 26px;
    }

    header ul li a:hover {
        padding: 10px 26px;
        backdrop-filter: brightness(1);
    }

    header.header-scroll #btn-menu-header {
        box-shadow: none !important;
    }

    #btn-menu-header {
        display: flex;
    }
}

#h1-header {
    padding: 0;
    border-radius: none;
    background-color: transparent;
    font-family: 'Cabin Sketch', cursive;
    transition-duration: .5s;
    opacity: 0;
}

#divH1 {
    width: 100vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#h1-anima {
    background-color: white;
    padding: 20px;
    border-radius: 30px;
    font-family: 'Cabin Sketch', cursive;
    color: black;
    transition-duration: .5s;
}

header.header-scroll ul li, header ul li {
    border-left: none;
    backdrop-filter: none;
}

header.header-scroll ul li ul li {
    border: none;
    background-color: transparent;
    overflow: hidden;
}

header.header-scroll {
    background-image: linear-gradient(135deg, var(--cor-header));
    backdrop-filter: blur(10px);
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, .5);
}

header.header-scroll ul li ul {
    background-image: linear-gradient(135deg, var(--cor-header));
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, .5);
}

#h1-anima.h1-scroll {
    opacity: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: capitalize;
}

h2 {
    text-shadow:
        -2px -2px 0px #000,
        -2px 2px 0px #000,
        2px -2px 0px #000,
        2px 2px 0px #000,
        0px 0px 20px #000;
    text-align: center;
    margin: 20px 0px;
    color: var(--h2-color);
    font-size: 1.5em;
    font-family: 'fonth2', cursive;
    font-weight: bolder;
    text-transform: uppercase;
    font-style: italic;

}

h3 {
    display: inline-block;
    background-image: linear-gradient(to right, #f5f5f5, transparent);
    color: var(--h3-color);
    border-left: 2.5px solid var(--h3-color);
    margin: 10px 0px;
    padding: 0 0 0 10px;
}

main {
    width: 95vw;
    background-color: white;
    margin: 20px auto;
    border-radius: 25px;
    padding: 20px 30px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

section {
    margin-bottom: 25px;
}

li {
    margin-bottom: 20px;
    position: relative;
}

li::before {
    content: counter(li) ".";
    counter-increment: li;
    font-size: 25px;
    color: #777777;
    position: absolute;
    left: -25px;
}

.ollivros {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0px;
    counter-reset: li;
}

.lilivros {
    width: 90%;
    background-color: var(--lista-livros-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
    transition-duration: .5s;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.lilivros a {
    color: black !important;
}

.lilivros:hover {
    background-color: var(--lista-livros-color-hover);
}

.lilivros:hover, .lilivros:hover::before {
    transform: scale(1.01);
}

.lilivros:hover a {
    text-decoration: underline;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    text-decoration: underline;
}

a:active {
    color: var(--link-color);
}

a:visited {
    color: var(--link-color);
}

footer {
    padding: 30px 0 100px 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logodiv {
    padding: 20px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5);
    transition-duration: .5s;
    animation: animaLogo 1s linear infinite;
    transform: scale(1);
    cursor: pointer;
}

#logo {
    background-color: transparent;
    max-width: 150px;
    border-radius: 20px;
    transition-duration: .5s;
}

#logodiv:hover {
    transform: scale(1.1);
}