/*All pages / Index*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #cccccc;
    color: #333;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
}

.search-section {
    margin-left: 20px;
    text-align: center
}

.popular-books {
    margin-left: 20px;
    text-align: center;
}

.hamburger-menu {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Shows hamburger menu on smaller screens */
        color: #fff;
    }

    .nav-links {
        display: none; /* Hide the nav links by default */
        flex-direction: column;
    }

    .nav-links.active {
        display: flex; /* Show navigation links when active */
    }

    .nav-links li {
        margin-bottom: 10px; /* Adds space between items in the vertical menu mode. */
    }

    .book-details {
        flex-direction: column;
        align-items: stretch;
    }

    .book-cover {
        margin-bottom: 20px;
    }

    .book-cover img {
        width: 100%;
        height: auto;
    }

    .book-info {
        margin: 0;
    }

    .book-title {
        font-size: 24px;
    }

    .book-authors {
        font-size: 14px;
    }

    .book-summary {
        font-size: 12px;
    }

    #buy-link, #add-to-reading-list {
        font-size: 14px;
        padding: 8px 16px;
    }

    .book-card {
        flex: 100%;
    }
}

.logo {
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    position: relative;
    background-image: url("images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    background-color: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6b800;
}

/* Book Styling */
.book-card {
    display: column;
    flex-direction: row;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    width: 200px;
}

.featured-books {
    margin: 20px 0;
    text-align: center;
}

.featured-books h2 {
    margin-bottom: 20px;
    text-align: center;
}

.book-details {
    display: block;
    align-items: center;
    margin: 20px;
}

.book-card {
    flex: 1;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.book-cover {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
    align-self: center;
}

.book-info {
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 28px;
    margin: 0;
}

.book-summary {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}

.book-authors {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px 0;
}

#buy-link {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

#add-to-reading-list {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.book-summary {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.buy-link {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    position: relative;
}

.social-links {
    list-style: none;
    display: inline;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    color: #fff;
    text-decoration: none;
}

/*Mood Selector*/

.mood-selector {
    padding: 20px;
    text-align: center;
}

.mood-options {
    margin-top: 20px;
}

.mood-btn {
    background-color: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
    transition: background-color 0.3s;
}

.mood-btn:hover {
    background-color: #e6b800;
}

/*Quiz Section*/

.quiz-section {
    padding: 20px;
}

.question {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-top: 5px;
}

/*Results Section*/

#results {
    padding: 20px;
    text-align: center;
}

.recommended-books {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.recommended-book-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 28%;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recommended-book-cover {
    max-height: 300px;
    width: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: contain;
}

/* widgets */

.widget {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

