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

}

body {
    font-family: Arial;

}

.bibliotecaCP {
    width: 100%;      /* Ocupa 100% do espaço disponível */
    max-width: 300px; /* Não ultrapassa 300px de largura */
    height: auto;     /* Mantém a proporção original */
}

.logo {
    color: #ffffff;
    text-decoration: none;
}

.logo h1 {
    display: inline;
    text-decoration: none;

}


/*************************************************************************/

@media (max-width: 800px) {
    .menu-button {
        display: block;
        width: 30px;
        cursor: pointer;

    }

    .navbar nav {
        display: none;
        position: absolute;
        background-color: #ff8c33;
        width: 100%;
        top: 46px;
        left: 0;
    }

    .show-menu nav {
        display: block;
        /* Exibe o menu quando show-menu é adicionado */

    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        text-align: center;
        padding: 0.8rem;
    }

    @media (max-width: 800px) {
        .search-container {
            margin-left: 150px;
            margin-top: 10px;
            width: 100%;
        }

        .search-input {
            width: 60%;
        }

        .search-button {
            margin-left: 10px;
        }
    }
}

/***********************************/

.header-inner-content {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}


/*************************************************************************/


header {
    background-image: radial-gradient(#fff, #c7c7c7);
}

.header-bottom-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.header-bottom-side-left {
    height: 100%;
    flex-basis: 50%;
}

.header-bottom-side-left h2 {
    font-size: 3.2rem;
    margin-top: 1rem;

}

.header-bottom-side-left p {
    line-height: 1.5rem;
    margin: 1.5rem;
}

.header-bottom-side-left button {
    background-color: rgb(255, 106, 0);
    border: none;
    cursor: pointer;
    padding: 0.8rem 3.8rem;
    border-radius: 9999px;
    color: #ffffff;
    font-weight: 5000;
    font-size: 1rem;
    transition: all 0.2s;
}


.header-bottom-side-left button:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(255, 106, 0);


}

.header-bottom-side-right {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bottom-side-right img {
    width: 115%;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .header-bottom-side-left p {
        display: none;
    }



    .header-bottom-side {
        flex-direction: column;
        align-items: center;
    }

    .header-bottom-side-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-bottom-side-right img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .button-scroll {
        display: block;
        text-align: center;
        width: 100%;
    }
    
        .button-scroll button {
            padding: 12px 24px; 
            font-size: 18px; 
            margin-top: 20px; 
        }
    
       
        .button-scroll button:focus {
            outline: none; 

}}

@media (max-width: 453px) {

    .header-bottom-side-left h2 {
        text-align: center;
    }
}



main {
    background-color: white;
}

.orange-background {
    background-color: rgb(255, 106, 0)
}

.page-inner-content {
    max-width: 1280px;
    margin: 0 auto;

}

.destaques {
    color: #fff;
    font-family: Arial;
    font-size: 3rem;
    padding: 50px;
    justify-content: center;
    align-items: center;
    display: flex;


}

.book-destaque {
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.book-name-destaque {
    font-weight: 1000;
    margin-top: 1rem;
    font-size: 20px;
    text-align: center;


}

.star-destaque {
    color: #ffffff;
    font-size: 1.3rem;
    text-align: center;
}

.author-name-destaque {
    font-style: italic;
    text-align: center;
}



.cols {
    display: flex;
    justify-content: space-evenly;
    padding: 1rem;
    flex-wrap: wrap;

}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 50px;

}

.cols img {
    width: 100%;
    height: 500px;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);


}



.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;

    min-width: 200px;

}



.cols>*div {
    cursor: pointer;
    transition: all 0.2s;
}

.cols>*:hover {
    transform: translateY(-5px);
}

.section-title {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.8rem;

}

.subtitle-underline {
    width: 100px;
    height: 5px;
    background-color: rgb(255, 106, 0);
    border-radius: 9999px;
    margin: 8px auto 0 auto;

}

.book {
    color: #2c2c2c;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;

}

.book-name {
    font-weight: 600;
    margin-top: 0.4rem;
}

.star {
    color: #ff8c33;
    font-size: 1.3rem;
}

.author-name {
    font-style: italic;
}


/*****************/
@media (max-width: 1200px) {
    .cols {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }
    
    .cols-3 {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 1rem; /* Reduce gap for stacked layout */
    }
    .cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cols {
        flex-direction: column; 
        align-items: center;
    }

    .destaques {
        font-size: 2.5rem;
        padding: 30px;
        margin: 1rem 0; 
    }

    .book-name-destaque {
        font-size: 18px;
    }

    .book-destaque img {
        height: 300px;
    }

   
    .cols-3 {
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }

    .cols-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .subtitle-underline {
        width: 80px;
    }
}

@media (max-width: 600px) {

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

    .cols-3 {
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    .destaques {
        font-size: 2rem;
        padding: 20px;
    }

    .book-name-destaque {
        font-size: 16px;
    }

    .book-destaque img {
        height: 250px;
    }

    .book-name {
        font-size: 14px;
    }

    .star,
    .star-destaque {
        font-size: 1rem;
    }
}

/**************************/

.user-comments {
    display: flex;
    padding: 4rem 1rem;
    justify-content: space-evenly;

}

.user-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-basis: 30%;
    text-align: center;
    box-shadow: 0 0 15px #afafaf;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.user-comment:hover {
    transform: translateY(-5px);
}

.user-comment p {
    margin: 5px 0;
}

.user-comment p:first-child {
    font-weight: bold;
    font-size: 2rem;
    color: #ff8c33;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 2rem;

}

.user-comment p:last-child {
    font-weight: bold;
}

/***********************/

@media (max-width: 800px) {
    .user-comments {
        flex-direction: column;

    }

    .user-comment {
        margin-bottom: 1.2rem;
    }
}

/**********************/

