.books-main-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

#books-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

#books-search {
    display: flex;
    gap: 1rem;
    margin: 2rem 4rem;
}

#books-search-input {
    width: 75vw;
}

#books-search-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.filters-show-buttons{
    background-color: #333;
    text-align: center;
    width: 90%;
    color: #F5F5DC;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    display: inline-block;
    font-size: 16px;
    text-decoration: none;
}

.filters-show-buttons::before {
    content: "+";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.filters-show-buttons.active::before {
    content: "-";
}

.filter {
    background-color: #636359;
    text-align: center;
    width: 90%;
    color: #F5F5DC;
    padding: 5px;
    border-radius: 5px;
 }

.filter-lista-container {
    text-align: start;
    color: #000000;
    background-color: #F5F5DC;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    padding-left: 3px;
    max-height: 18dvh;
    overflow-y: auto;
}

/**/
.books-main-result {
    display: flex;
    flex-direction: column;
}

.books-main-result-title {
    text-align: center;
}

.books-result-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: left;
    margin-bottom: 12px;
}

.books-result-item {
    display: flex;
    flex: 1 1 250px;
    max-width: 300px; /* Limite opcional */
    min-width: 250px; /* Garante o "mínimo" tipo grid */
    box-sizing: border-box;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;

    margin: 1em;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    background-color: white;
    transition: transform 0.2s ease;
}

.books-result-item:hover {
    transform: scale(1.02);
}

.book-cover {
    max-height: 150px;
    margin: 1em;
}

.book-info {
    color:#666666;
    text-align: left;
    list-style: none;
}

.book-info h3{
    margin-bottom: 0.5ch;
}

.book-info ul{
    list-style: none;
}
.book-info p{
    font-size: 1.5ch;
    color:#66666a;
}

.book-info a{
    font-size: 1rem;
    margin-top: 2ch;
}

 @media (max-width: 768px) {
     .books-result-container {
        justify-content: center;
    }

}
