body {
    background-color: #ffffff;
    background-image: url('vintage-wallpaper.png'); /* background image courtesy of Tomislava Babić on Toptal.com */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    padding: 0;
}

.search-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.search-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

#search-input {
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    padding: 10px;
    width: 70%;
}

#search-btn {
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
}

#search-btn:hover {
    background-color: #0056b3;
}

#pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-btn {
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
    width: 40px;
}

.page-btn:hover {
    background-color: grey;
}

.page-btn.active {
    background-color: #28a745;
}

#search-results {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.book-tile {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-tile img {
    border-radius: 4px;
    height: auto;
    max-width: 100%;
}

.book-tile p {
    color: #333;
    font-size: 14px;
    margin-top: 10px;
}

.book-tile:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

#book-details {
    margin-top: 20px;
}

#book-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.book-details-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none; /* don't want any section for book details to appear until a book is actually clicked  */
    margin-top: 40px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

.book-details-container.active {
    display: block;
}

#bookshelf-book-details {
    margin-top: 20px;
}

.bookshelf-container {
    background-color: #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

.bookshelf-container h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

#bookshelf-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#bookshelf-results .book-tile {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

#bookshelf-results .book-tile:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

footer {
    color: #666;
    font-size: 14px;
    margin-top: 40px;
    text-align: center;
}
