/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: cursive;
}
body {
    font-family: cursive;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4f4;
}

/* Header */
header {
    background-color: white;
    color: rgb(10, 10, 10);
    text-align: center;
}

/* Menu Bar */
.menu-bar {
    display: flex;
    justify-content: space-between; /* space out links and search bar */
    align-items: center;
    background-color: gray;
    padding: 10px 20px;
    width: 100%;
}

/* Wrap the menu links */
.menu-items {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Menu Links */
.menu-item {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 30px;
    transition: background 0.3s;
}

.menu-item:hover {
    background-color: #666;
    border-radius: 5px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar button {
    padding: 8px 12px;
    margin-left: 8px;
    font-size: 16px;
    background-color: white;
    color: gray;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #ddd;
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: url('images/header.png') no-repeat center center/cover;
    color: rgb(7, 0, 5);
}

.hero h2 {
    font-size: 32px;
}

/* Featured Books Section */
.featured {
    text-align: center;
    padding: 30px;
    width: 100%;
}

.book-list {
    display: flex;
    justify-content: center;
    gap: 20px;
   
}

/* Book Card Styles */
.book-item {
    background: white;
    padding: 10px;
    width: 200px; /* Card width */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.book-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.book-item p {
    margin-top: 10px;
}
.book-card .card {
  width: 100%;
  height: 300%;
}



/* Reviews Section */
.reviews {
    padding: 30px;
    text-align: center;
}



.review-card {
    background: white;
    width: 100%;  /* Adjust width of each card */
    height: 100%;  /* Adjust height of each card */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.review-card:hover {
    transform: scale(1.05);  /* Hover effect */
}

.review-card img {
    width: 100%;
    height: 250px;  /* Set height for book cover image */
    object-fit: cover;  /* Ensures the image fills the space without distortion */
}

.review-card-content {
    padding: 15px;
}

.review-card-content h3 {
    margin: 0;
    font-size: 18px;
}

.review-card-content p {
    font-size: 14px;
    color: #555;
}

.review-card-content span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}


/* Review Block Container - Full-width layout */
.review-block-container {
    display: block;
    padding: 0 20px;
}

/* Single Review - Custom Class for this layout */
.custom-review {
    background: white;
    width: 100%;
    margin: 20px auto;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;  /* Space out title/author and intro */
    align-items: flex-start;
}

/* Title and Author on the Left */
.custom-review-content-left {
    flex: 1;
}

/* Intro and Read More on the Right */
.custom-review-content-right {
    flex: 2;
    text-align: right;
}




/* Footer Section */
footer {
    text-align: center;
    padding: 15px;
    background-color: grey;
    color: white;
    margin-top: 20px;
}

/* About and Contact Sections */
.about-section, .contact-section {
    padding: 40px;
    text-align: center;
    background-color: #fff;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
    display: inline-block;
    text-align: left;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: gray;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #666;
}

/* Featured Section Cards (Same as Book Cards) */
.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 250px;  /* Adjust the width of each card */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);  /* Card hover effect */
}

.card img {
    width: 100%;
    height: 400px;  /* Set the height of the image */
    object-fit: cover;  /* Ensures the image covers the area without distorting */
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0;
    font-size: 20px;
}

.card-content p {
    font-size: 14px;
    color: #555;
}

/* Genre Buttons */
.genre-buttons {
    text-align: center;
    margin: 20px 0;
}

.genre-buttons button {
    margin: 5px;
    padding: 10px 20px;
    background-color: gray;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.genre-buttons button:hover {
    background-color: #555;
}


  


/* Responsive Styles */
@media (max-width: 920px) {
    .menu-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: block;
        margin-bottom: 10px;
        cursor: pointer;
        background-color: #444;
        color: white;
        padding: 10px;
        text-align: center;
    }
    
    .menu-items {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    .search-bar {
        width: 100%;
        margin-top: 10px;
    }
}



