body {
    font-family: 'Georgia', sans-serif;
    line-height: 1.4;
    background-color: white;
    margin: 0;
    padding: 0;
    color: #333;
}

.header-section {
    background-color: #166d98;
    color: white;
    padding: 1rem;
    text-align: center;
}

#navbar {
    margin-top: 10px;
    background-color: #996e0f;
    padding: 10px;
    text-align: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: #f5c6a5;
    transition: background-color 0.3s;
}

h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#book-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

#search-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 60%;
    max-width: 400px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #007bff;
}

#book-search-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#book-search-form button:hover {
    background-color: #0056b3;
}

#search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

#search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.book-card {
    border: 1px solid #ddd;
    padding: 15px;
    width: 200px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.book-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.book-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.book-card p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

#loader {
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .book-card {
        width: 100%;
        max-width: 300px;
    }
}