body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    min-height: 50px;
}

.navbarstyle {
    background-color: rgb(198, 151, 116);
    /* padding-bottom: 5rem; */
}

.hero-image {
    /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../image/book_club_purpose_1570x.webp");

    padding-top: 10rem;
    padding-bottom: 1rem;
    /* Set a specific height */
    height: 50%;
    width: 100%;
    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
}
h1,
h2 {
    padding: 1rem;
}

.about-paragraphs {
    margin: 2rem 1.5rem;
    padding: 2rem;
    background-color: rgb(198, 151, 116);
    border-radius: 15px;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.center-text {
    text-align: center;
    padding: 0.5rem 0;
}

#footer {
    background-color: rgb(198, 152, 116);
    display: inline-block;
    justify-content: center;
    text-align: center;
    height: 50px;
    width: 100%;
    flex-direction: column;
}

.fa {
    padding: 10px 30px;
    font-size: 30px;
    width: 30px;
    /* text-align: center; */
    text-decoration: none;
    border-radius: 50%;
    color: black;
}

.book-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.book-description h1 {
    margin-bottom: 1rem;
}

.book-description h3 {
    margin-bottom: 2rem;
    color: #666;
}

.book-description p {
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: justify;
}

@media only screen and (max-width: 768px) {
    .navbarstyle {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1030;
        transition: all 0.3s ease-in-out;
    }

    /* Add smooth transition to main content */
    main {
        transition: transform 0.3s ease-in-out;
    }

    /* Ensure the navbar collapse has smooth transitions */
    .navbar-collapse {
        transition: all 0.3s ease-in-out;
    }

    /* When the navbar collapse is shown, it will naturally push content down */
    .navbar-collapse.show {
        background-color: rgb(198, 151, 116);
        padding: 1rem 0;
    }

    /* Remove any fixed positioning issues */
    body {
        padding-top: 0;
    }

    /* Ensure hero image doesn't have conflicting positioning */
    .hero-image {
        margin-top: 0;
        transition: all 0.3s ease-in-out;
    }

    .about-paragraphs {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }
}

@media only screen and (min-width: 769px) {
    .about-paragraphs {
        margin: 2rem auto;
        max-width: 900px;
    }
}

@media only screen and (min-width: 1200px) {
    .about-paragraphs {
        margin: 2.5rem auto;
        max-width: 1000px;
    }
}
