


/* The book carousel section */
.book-carousel {
    margin: 50px 0;
    padding: 20px;
    text-align: center;
}

.book-carousel h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

/* Flex container to hold the books horizontally */
.carousel {
    display: flex; /* Align books horizontally */
    /*justify-content: center;*/
    justify-content: flex-start; /* instead of center */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; /* space for scrollbar on mobile */
}

/* Styling for each book */
.book {
    flex: 0 0 auto; /* Prevent shrinking */
    width: 250px;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
}

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

/* Vercel-proof background images using classes */
.book-12Week { background-image: url('/assets/images/12Week.jpg'); }
.book-RichDad { background-image: url('/assets/images/RichDad.jpg'); }
.book-Monk { background-image: url('/assets/images/Monk.jpg'); }
.book-EasyWay { background-image: url('/assets/images/EasyWay.jpg'); }
.book-NoExcuses { background-image: url('/assets/images/NoExcuses.jpg'); }
.book-WIn { background-image: url('/assets/images/WIn.jpg'); }
.book-Atomic { background-image: url('/assets/images/Atomic.jpg'); }

/* ========================= */
/* RESPONSIVE MEDIA QUERIES  */
/* ========================= */

/* Laptop screens */
@media (max-width: 1024px) {
    .book {
        width: 180px;
        height: 260px;
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    .book {
        width: 150px;
        height: 220px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .book {
        width: 120px;
        height: 180px;
    }

    .book-carousel h2 {
        font-size: 1.5rem;
    }
}
body {
    overflow-x: hidden; /* Prevents left/right breaking */
}