@font-face {
    font-family: "Roboto";
    src: url(./fonts/Roboto-VariableFont_wdth\,wght.ttf) format('truetype');
}

@font-face {
    font-family: "Alliance";
    src: url(./fonts/AlliancePersonalUse-6z0o.ttf) format('truetype');
}


body {
    margin: 0;
    font-family: "Roboto";
}

header {
    background-color: #1f2937;
}

body, p {
    font-family: "Roboto", sans-serif, "Alliance";
}

/*Navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    /* logo left, menu right */
    align-items: center;
    padding: 15px 40px;

}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: 60px;
    border-radius: 5px;
}

.logo span {
    font-size: 24px;
    color: #f9faf8;
    font-family: 'Alliance', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-right: 5em;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.nav-links a:hover {
    color: rgb(127, 172, 255);
}

/*Hero*/
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    gap: 40px;
    background-color: #1f2937;
    flex-wrap: wrap;
}

.hero-container>div {
    flex: 2;
    max-width: 500px;
    text-align: left;
    flex-basis: auto;
    min-width: 280px;
}

/* Heading */
.hero {
    font-size: 48px;
    font-weight: 800;
    color: #f9faf8;
    margin-bottom: 10px;
}

/* Paragraph */
.hero-p {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 30px;
}

/* Button */
.hero-button {
    padding: 10px 20px;
    background-color: #3882f6;
    color: #e5e7eb;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.hero-button:hover {
    background-color: darkblue;
}

/* Image */
.hero-image {
    flex: 1 1 350px;
    /* Default flex-basis for larger screens */
    max-width: 500px;
    /* MOST IMPORTANT: Ensures the image never overflows its allocated space */
    height: auto;
    /* Crucial: Maintains aspect ratio */
    object-fit: cover;
    border-radius: 5px;
    /* object-position: center;  You can try 'top', 'bottom', 'left', 'right' if central cropping is bad */
    padding-right: 30px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        /* Stacks items vertically on mobile */
        text-align: center;
        /* Centers text content */
        padding: 40px 20px;
        /* Adjust padding for smaller screens */
        gap: 20px;
        /* Adjust gap for smaller screens */
    }

    /* Adjustments for the text content block on small screens */
    .hero-container>div {
        flex: 1 1 auto;
        /* Allow text block to take full width of container */
        max-width: 100%;
        /* Ensure it doesn't try to be too wide */
        min-width: unset;
        /* Remove min-width to allow more flexibility if needed */
        text-align: center;
    }

    /* Adjustments for the image on small screens */
    .hero-image {
        flex: 1 1 auto;
        /* Allow image to take full width available for a single item */
        max-width: 100%;
        /* Already set above, but good to reinforce */
        max-height: 300px;
        width: 100%;
        /* Ensure it takes full available width when stacked */
    }
}

/*Books Section*/
h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.book-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem;
}

.book-card {
    flex: 1 1 150px;
    /* Grow/shrink as needed */
    max-width: 200px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.book-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem;
}

.book-card p {
    font-size: 0.85rem;
    color: #666;
}

.book-card:hover {
    transform: translateY(-4px);
}

/*Blockquote section*/
.blockquote {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e5e7eb;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.quote-text {
    font-size: 36px;
    font-style: italic;
    font-weight: 300;
    color: #1f2937;
    line-height: 1.625;
}

.quote-author {
    font-size: 1.26rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.3rem;

}

/*Join Now Section*/
.join-section {
    /* Basic container styling */
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Layout properties for mobile (default) */
    display: flex;
    flex-direction: column;
    /* Stack items vertically on mobile */
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    /* Add padding for mobile screens */
    gap: 1.5rem;
    margin: 4rem auto 4rem;
    max-width: 48rem;
}

/* On screens wider than 768px (tablets and desktops), switch to a horizontal layout */
@media (min-width: 768px) {
    .join-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 2.5rem 3rem;
        gap: 2rem;

    }

    .join-text {
        text-align: left;

    }
}

.join-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.join-subtitle {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-top: 0;
}

.join-button {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    margin-right: 4rem;
}

.join-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: #ffffff;
}

/*Books Page*/
.hero-books {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-bottom: #080808 2px solid;
}

.hero-books::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    justify-content: center;
}

/*books-section*/
.cards {
    padding-top: 4rem;
    /* py-16 */
    padding-bottom: 4rem;
    /* py-16 */
    background-color: #f1f0f7;
}

.title-section {
    font-family: 'Alliance', serif;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 36px;

}

@media (min-width: 768px) {
    .cards {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: black;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 3rem;
    }
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.card {
    background-color: #f0f0f3;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 50%;
    max-width: 50%;
    border: 1px solid #030303;

}

@media (min-width: 640px) {

    .card {
        flex-basis: calc(30% - 1rem);
        max-width: calc(30% - 1rem);
    }
}

@media (min-width: 1024px) {

    .card {
        flex-basis: calc(33.333% - 1.333rem);
        max-width: calc(33.333% - 1.333rem);
    }
}

@media (min-width: 1280px) {

    .card {
        flex-basis: calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    display: block;
    border-bottom: #030303 1px solid;
}

.card-title,
.card-author,
.card-description {
    padding-left: 1.7rem;
    padding-right: 1.5rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;

}

.card-author {
    font-size: 0.885rem;
    margin-bottom: 1rem;
    color: rgb(112, 75, 5);
    font-weight: 500;
}

.card-description {
    color: #131414;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-button {
    background-color: #09193d;
    /* bg-blue-600 */
    color: #ffffff;
    /* text-white */
    font-weight: 600;
    /* font-semibold */
    padding: 0.5rem 1rem;
    /* py-2 px-4 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 0.875rem;
    /* text-sm */
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    /* Constrains the width of the button to its content */
    margin: 0 auto 1.5rem;
    /* Centers the button and adds bottom margin */
    margin-left: 3rem;
    margin-right: 3rem;
}

.card-button:hover {
    background-color: #1d4ed8;
}

/*About page*/
/* Container for the scrolling images */
.scroll.imgbx {
    overflow: hidden; /* Hide overflowing content */
    white-space: nowrap; /* Prevent line breaks */
    position: relative;
    width: 100%; /* Full width of the container */
    height: 200px; /* Adjust height as needed */
}

/* Inner container for the images */
.scroll.imgbx div {
    display: flex; /* Arrange images in a row */
    animation: scroll 25s linear infinite; /* Infinite scrolling animation */
}

/* Images inside the scroll */
.scroll.imgbx img {
    width: auto; /* Maintain aspect ratio */
    height: 100%; /* Adjust height as needed */
    margin-right: 10px; /* Add spacing between images */
}

/* Keyframes for the scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start position */
    }
    100% {
        transform: translateX(-100%); /* Move left by 100% of the container */
    }
}
.bookclub-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.info-block {
    flex: 1;
    min-width: 280px;
    background-color: #7471d3;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}

.info-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #151616;
    font-family: 'Alliance', serif;
}

.info-block p {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1f1d1d;
}

.info-block img {
    width: 300px;
    height: auto;
    margin-top: 20px;
}

.about img.qr {
    width: 200px;
}

.read-more {
    display: inline-block;
    margin-bottom: 1rem;
    margin-left: 2rem;
    padding: 8px 16px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.club h2 {
    font-size: 32px;
}

.club .quote {
    margin-top: 20px;
    font-weight: bold;
    color: #201f1f;
}

/* === Responsive for small screens === */
@media screen and (max-width: 768px) {
    .bookclub-info {
        flex-direction: column;
        align-items: center;
    }

    .info-block {
        width: 100%;
        max-width: 500px;
    }
}

/*Join Page*/
.join-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color:#090b22 ;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}
.hero-join {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    flex-wrap: wrap;
    background-image: url("https://aconitecafe.com/wp-content/uploads/2019/10/join-our-book-club-665x399.jpg");
    background-position: center;
    background-size: cover;
    height: 300px;

}
.join-info {
    margin-bottom: 30px;
}

.join-info h2 {
    font-family: 'Playfair Display', serif;
    color:#a48ded;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.join-info p {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

/* Form Styles */
.join-form {
    display: flex;
    flex-direction: column;
}

.join-form label {
    margin-top: 15px;
    font-weight: 600;
    color:#fcfcfc;
    margin-bottom: 5px;
}

.join-form input,
.join-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}

.join-form input:focus,
.join-form textarea:focus {
    border-color: #4b3f72;
    outline: none;
}

/* Submit Button */
.join-form button {
    margin-top: 25px;
    padding: 12px 20px;
    background-color: #391aaf;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.join-form button:hover {
    background-color:#362c5c;
}
/*Scroll Up Button*/
.scroll-to-top-button {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    background-color: #03023f;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 9999px;
    /* Makes it a perfect circle */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;

}

.scroll-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top-button:hover {
    background-color: #1e40af;
    /* Darken on hover */
}

footer {
    background-color: #1f2937;
    color: #9ca3af;
    text-align: center;
    height: 4em;
}

p.footer-text {
    padding-top: 24px;
}







