@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/*ESTILOS GERAIS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Sans 3", sans-serif;
}

body {
    background-image: url(../assets/fundo/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
}

header {
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
}

section {

    margin-bottom: 20px;
    /* Adiciona 20px de margem inferior a cada seção */
}

/*MENU-LATERAL*/
nav.menu-lateral {
    width: 80px;
    height: 100%;
    background-color: #202020;
    padding: 40px 0 40px 1%;
    box-shadow: 3px 0 0 #236C50;

    position: fixed;
    top: 0;
    bottom: 0;
    overflow: hidden;
    transition: .2s;

    z-index: 2;
}

nav.menu-lateral.expandir {
    width: 200px;
}

.btn-expandir {
    width: 100%;
    padding-left: 10px;
}

.btn-expandir>i {
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

ul {
    height: 100%;
    list-style-type: none;
    margin-top: 80px;
}

ul li.ativo {
    background-color: #236C50;
}

ul li.item-menu {
    transition: .3s;
}

ul li.item-menu:hover {
    background-color: #236C50;
}

ul li.item-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 20px 4%;
    display: flex;
    margin-bottom: 30px;
    line-height: 50px;
}

ul li.item-menu a .txt-link {
    margin-left: 70px;
    transition: .4s;
    opacity: 0;
}

nav.menu-lateral.expandir .txt-link {
    margin-left: 40px;
    opacity: 1;
}

ul li.item-menu a .icon>i {
    font-size: 30px;
    margin-left: 10px;
}

main {
    padding-top: 80px;
    padding-left: 150px;
    padding-right: 90px;
    padding-bottom: 60px;

    background-image: url(../assets/fundo/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    display: flex;
    flex-direction: column;
}

/*topo*/
section.topo {
    width: 100%;
}

.topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.topo .img-topo {
    max-width: 500px;
    height: auto;
}

/*CARROSEL*/
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para os pontos do carrossel */
.swiper-pagination {
    position: absolute;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.swiper-pagination .swiper-pagination-bullet {
    background-color: #236C50;
    opacity: 0.5;
    width: 8px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #236C50;
    opacity: 1;
}

/*PEDIDOS*/


.titulo {
    text-align: left;
    padding-bottom: 25px;
    font-weight: bold;
}

.linha-titulo {
    padding-top: 18px;
    border: none;
    border-bottom: 5px solid #B07930;
    margin: 0 auto 10px;
    width: 100%;
}

/*filtro*/
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.input {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    outline: none;
    padding: 18px 16px;
    background-color: transparent;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.input::placeholder {
    color: transparent;
}

.input:focus::placeholder {
    color: rgb(131, 128, 128);
}

.input:focus,
.input:not(:placeholder-shown) {
    background-color: #fff;
    border: 1px solid #dfa65c;
    width: 290px;
    cursor: none;
    padding: 18px 16px 18px 40px;
}

.input-container .icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 10px;
    z-index: -1;
    fill: #dfa65c;
    border: 1px solid #dfa65c;
}

.input:hover+.icon {
    transform: rotate(360deg);
    transition: .2s ease-in-out;
}

.input:focus+.icon,
.input:not(:placeholder-shown)+.icon {
    z-index: 0;
    background-color: transparent;
    border: none;
}

.invisivel {
    display: none;
}

/*TABELA*/
section.pedidos {
    padding: 25% 0%;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.158);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.tabela th,
.tabela td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.336);
    text-align: left;
    color: #000;

}

.tabela th {
    background-color: #236C50;
    color: #fff;

}

.tabela td:nth-child(3) {
    text-align: center;
}


button {
    width: 15%;
    font-size: 15px;
    background: #B07930;
    color: white;
    fill: rgb(211, 211, 211);
    display: flex;
    align-items: center;

    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-weight: 1000;
}

button span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
}

button svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

button:hover {
    background: #dfa65c;
}

button:hover .svg-wrapper {
    transform: scale(1.25);
    transition: 0.5s linear;
}

button:hover svg {
    transform: translateX(1.2em) scale(1.1);
    fill: #fff;
}

button:hover span {
    opacity: 0;
    transition: 0.5s linear;
}

button:active {
    transform: scale(0.95);
}

/* Estilização do add */
section.add {
    padding: 25% 0%;
}

.add form {
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.384);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.274);
}

.add .estilo_dados {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.insere_dados {
    width: 400px;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.recebe_dados {
    border-radius: 5px;
    border-color: #B07930;
    font-size: 15px;
    width: 100%;
    margin-bottom: 10px;
}

input[type="submit"] {
    border: none;
    outline: none;
    background-color: #B07930;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transform: .3s ease;
    cursor: pointer;
}

.add form .botao {
    display: flex;
    justify-content: center;
}

input[type="submit"]:hover {
    background-color: #dfa65c;
}


#mensagens-erro {
    color: red;
}

.fadeOut {
    opacity: 0;
    transition: 1s;
}



/* LIVROS */

section.livros {
    padding: 25% 0%;
}

.container-livros {
    margin-top: 2%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.384);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.container-livros input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}



#resultados-livros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.livro {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.274);
    padding: 15px;
    text-align: left;
    max-height: 375px;
    overflow: hidden;
    cursor: pointer;
}

.livro img {
    width: 100%;
    height: 240px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.livro .titulo-autor {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.livro img.sem-capa {
    width: 100%;
    height: 240px;
    background-color: #ddd;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*MODAL*/
.janela-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.janela-modal.abrir {
    display: flex;
}

.modal {
    align-items: center;
    width: 70%;
    min-width: 60%;
    min-height: 450px;
    background-color: #ffffff54;
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.janela-modal .fechar {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    background-color: #236C50;
    color: #fff;
    font-size: 20px;
    padding: 10px;
}

@keyframes abrirmodal {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, -5px);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.abrir .modal {
    animation: abrirmodal 0.25s;
}

body.modal-aberto {
    overflow: hidden;
    /* Desabilita a barra de rolagem */
}
.modal-body {
    display: flex;
    gap: 20px;
}

.cover-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.informacoes-livro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.informacoes-livro h3 {
    font-size: 1.5rem;
    margin: 0;
}

.informacoes-livro p {
    margin: 0;
}

.livro-modal {
    display: flex;
    gap: 12px;
    align-items: center;

}

.livro-modal img {
    max-width:300px;
    height: 300px;
    border-radius: 10px;
    align-items: center;
}

.livro-modal .informacoes-livro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.livro-modal .informacoes-livro h3 {
    font-size: 25px;
    margin-bottom: 5px;
}

.livro-modal .informacoes-livro p {
    margin-bottom: 5px;
}

/*ACABA MODAL*/

/*buscar*/
.livro .input-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.livro .input {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    outline: none;
    padding: 18px 16px;
    background-color: transparent;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.livro .input::placeholder {
    color: transparent;
}

.livro .input:focus::placeholder {
    color: rgb(131, 128, 128);
}

.livro .input:focus,
.input:not(:placeholder-shown) {
    background-color: #fff;
    border: 1px solid #dfa65c;
    width: 290px;
    cursor: none;
    padding: 18px 16px 18px 40px;
}

.livro .input-container .icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 10px;
    z-index: -1;
    fill: #dfa65c;
    border: 1px solid #dfa65c;
}

.livro .input:hover+.icon {
    transform: rotate(360deg);
    transition: .2s ease-in-out;
}

.livro .input:focus+.icon,
.input:not(:placeholder-shown)+.icon {
    z-index: 0;
    background-color: transparent;
    border: none;
}

.livro .invisivel {
    display: none;
}


/*fim livros*/

/* Frases */

section.frases {
    padding: 25% 0%;
}

.frases button {
    padding: 9px;
    width: 13%;
    font-size: 15px;
    background: #B07930;
    color: white;
    display: flex;
    align-items: center;

    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-weight: 1000;
}

.frases button:hover {
    background-color: #dfa65c;
}

.frases button span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
}

.frases button img {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.frases button:hover img {
    transform: translateX(1.2em) scale(1.1);
}

#frases-result {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 30px;
}

/*Frases*/

/* Estlizaçao do footer */
footer {
    width: 100%;
    position: absolute;
    background: #181A1C;
    color: #ffffff;
    font-size: 13px;
    line-height: 10px;
    text-align: center;
    padding-left: 5%;
}

.linha {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.img_footer {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.direitos {
    margin-top: 20px;
}

/* Estilo da barra de rolagem */
::-webkit-scrollbar {
    width: 15px;
}

/* Estilo*/
::-webkit-scrollbar-thumb {
    background: linear-gradient(to left, #dfa65c, #B07930, #236C50);
    background-size: 500% 100%;
    border-radius: 50px;
    border: 1px solid;
}

/*seleção de texto*/
::selection {
    background-color: #236C50;
    color: #ffffff;
}

@media screen and (max-width: 1024px) {

    .swiper-slide img {
        width: 100px;
        height: 240px;
    }

    button {
        width: 300%;
        font-size: 90%;
        font-weight: 600;
    }

    .tabela th,
    .tabela td {
        padding: 3px;
    }

    .insere_dados {
        width: 300px;
    }

    #resultados-livros {
        grid-template-columns: repeat(2, 1fr);
    }
    .livro {
        text-align: center; 
    }

    .frases button {
        width: 25%;
    }
}

@media screen and (max-width: 768px) {

    nav.menu-lateral {
        width: 60px;
    }
    
    ul {
        margin-top: 30px;
    }
    
    ul li.item-menu a {
        font-size: 18px;
        padding: 5px 4%;
        margin-bottom: 20px;
    }

    ul li.item-menu a .icon>i {
        font-size: 25px;
    }
    
    main {
        padding-top: 64px;
        padding-left: 120px;
        padding-right: 72px;
        padding-bottom: 48px;
    }

    .swiper-slide img {
        width: 350px;
        height: 300px;
    }

    .topo .img-topo {
        max-width: 250px;
    }

    button {
        width: 80%;
    }

    .tabela {
        font-size: 8px;
    }

    .tabela th,
    .tabela td {
        padding: 3px;
        padding-bottom: 25px;
    }

    .insere_dados {
        width: 160px;
    }

    #resultados-livros {
        grid-template-columns: repeat(2, 1fr);
    }

    .livro {
        padding: 5px;
    }

    .livro {
        text-align: center; 
    }

    .frases button {
        width: 80%;
    }

    footer {
        width: 100%;
        padding-left: 15%;
    }

}

