/*Google fonts import*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --text-color: #000000b2;
    --body: #E6E6FA;
    --hover: #e8919d;
    --inicio-fim: #ffcccc;
    --color-00: #ff859f;
    --color-01: #ffff;
    --color-02: #e8919d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

html {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    scroll-behavior: smooth; /*chat*/
}

body {
    background-color: var(--body);
    color: var(--text-color);
    margin: 0; /* Remove margem padrão do body */
    padding-top: 4rem; /* Compensa a altura do header fixo */
}

header {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem;
    background-color: var(--inicio-fim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease; 
    border: solid 1px var(--inicio-fim);
}

.logo {
    font-size: 1.7rem;
    color: var(--color-01);
    font-weight: 600;
    cursor: default;
}

.nav-responsive {
    display: flex;
    position: flex;
    background-color: var(--inicio-fim);
    top: 78px;
    left: -100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100px;
}

.nav a, .nav-responsive a {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0;
    padding: 1.3rem 1rem;
    transition: 0.4s;
    border: solid 0px var(--color-01); 
}

.nav a:hover, .nav-responsive a:hover {
    color: var(--hover);
}


.header-hidden {
    transform: translateY(-100%); /* Move o cabeçalho para fora da tela */
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
  
}

.logo-img img {
    height: 100%;
    width:100%;
    transition: 0.5s;
}

section {
    min-height: 50vw;
    padding: 3rem 3rem 1rem;
    border: solid 0px var(--color-01);
}

span {
    color: var(--hover);
}
 /*HOME*/
.home {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

.home-container h1 {
    font-weight: 700;
    line-height: 1.3;
}

.home-container h3 {
    font-weight: 700;
    margin-top: 2rem;
}

.home-container p {
    margin-top: 1.2rem;
    

}

.home-container {
    margin-top: 1.2rem;
    text-align: left;
}

 /*BOOKS, CONTACT*/
.books h2, .contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.books-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;/*flex-wrap: wrap;*/ /* Adiciona flex-wrap para melhor responsividade */
    gap: 1rem;
    flex-wrap: wrap; /**/
}

.books-box {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
    min-height: 25rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--color-00); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.books-container .books-box {
    padding: 2rem 1rem 2.5rem;
    border-radius: 1.2rem;
    text-align:left;
    border: solid 0.15rem var(--inicio-fim);
    background-color: var(--color-00);
    transition: 0.5s ease;
}

.book-content {
    display: flex;
    align-items: flex-start; /* Alinha a imagem e o texto no topo */
    gap: 1.5rem; /* Espaço entre a imagem e o texto */
}

.books-box img {
    width: 150px;
    height: auto;
    height: 200px;
}

.books-box h3 {
    margin-top: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.books-box p {
    color: var(--text-color);
    font-size: 14px;
}

.books-box .preco {
    font-size: 20px;
    color: var(--text-color);
    margin: 10px 0;
}

.comprar-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comprar-btn:hover {
    background-color: var(--inicio-fim);
}

form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

form .input-box input, form textarea {
    width: 100%;
    padding: 1rem;
    color: var(--text-color);
    background-color: var(--color-00);
    border-radius: 0.5rem;
    margin: 0.4rem 0;
}

form textarea {
    resize: none;
}

/*button*/
.contact#btn {
    background-color: var(--color-00);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;     /* Centraliza verticalmente */
            /* Ocupa toda a altura da tela */
               /* Ocupa toda a largura da tela */
 
}

#btn:hover {
    box-shadow: 0 0 0.3rem var(--hover);
    background-color: inherit;
    color: var(--hover);
    cursor: pointer;
}
/*/button*/

footer {
    background-color: var(--inicio-fim);
    padding: 2rem 0;
}

.container {
    display: flex;
    justify-content:center; 
    gap: 2rem; 
    max-width: 1200px; 
    margin: auto ; 
    padding: 0 2rem;
    align-items: center;
   
}

.container ul {
    list-style: none; 
    padding: 0;
    margin: 0;
    width: 30%; 
    align-items: center;
   
}

.container h3 {
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.social-media a i {
    align-items:center;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items:center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: solid 0.15rem var(--hover);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--hover);
    margin: 1.8rem 0.5rem;
    transition: 0.5s ease;
}

.social-media a:hover {
    background-color: var(--hover);
    color: var(--body);
    box-shadow: 0 0 0.3rem var(--hover);
}

.container p {
    margin-bottom: 1px;
    margin-top: 1.2rem;
    text-align:center;
    line-height: 1.5;
}

.container a {
    margin-bottom: 10px;
    text-decoration: none; 
    color: var(--text-color); 
    transition: color 0.3s ease;
}



/*menu*/
.menu-hamburguer {
    display: none;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--color-01);
    margin: 0.4rem 0;
    transition: 0.3s ease;
}

.change .bar1 {
    transform: translate(-0rem, 0.48rem) rotate(-45deg);
}

.change .bar2 {
    transform: translate(-0, 0) rotate(45deg);
}

.change .bar3 {
    opacity: 0;
}
/*/menu*/

/*extra small*/
@media (max-width: 600px) {
    .menu-hamburguer {
        display:block;
    }

    .nav {
        display: none;
    }

    .nav-responsive {
        display: block;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .home {
        flex-direction:column;
        gap: 2.2rem;
    }

    /* Ajusta a exibição das caixas de livros (books) */
    .books-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 100%;
    }

    /* Ajusta o formulário */
    form .input-box {
        flex-direction: column;
    }

    form .input-box input, form textarea {
        width: 100%;
    }

    /* Ajusta o footer */
    footer {
        padding: 1rem 0;
    }

    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .social-media a {
        margin: 1rem 0.5rem;
    }
}


/* Small: Smartphone */
@media (min-width: 576px) {
    .books-container {
        flex-direction: row;
        gap: 1.2rem;
    }

    .home-container, .about-container {
        width: 60%;
    }

    body {
        font-size: 115%;
    }
}

/* Medium: Tablet */
@media (min-width: 600px) {
    .menu-hamburguer {
        display: none;
    }

    .nav {
        display: block;
    }

    .nav-responsive, .nav-responsive a {
        display: none;
    }

    .home, .about {
        flex-direction: column;
        gap: 0.6rem;
    }

    .books-container {
        flex-direction: column;
        align-items: center;
    }

    .books-box {
        width: 70%; 
        margin-bottom: 2rem;
    }

    form .input-box {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    form .input-box input {
        flex: 1 1 48%;
    }

    .about-container {
        flex-direction: row;
        gap: 1.2rem;
    }

    body {
        font-size: 110%; 
    }
}

/* Large: Notebook */
@media (min-width: 992px) {
    .books-container {
        flex-direction: row;
        gap: 1.2rem;
    }

    .home-container, .about-container {
        width: 60%;
    }

    body {
        font-size: 115%;
    }
}

/* Extra Large: Desktop */
@media (min-width: 1200px) {
    .home-container h1 {
        font-size: 2.7rem;
    }

    .home-container h3 {
        font-size: 2rem;
    }

    body {
        font-size: 120%;
    }
}