@import url("https://use.typekit.net/dcb6nkk.css");
/*
Customize the look of the site in this file...
This stylesheet is loaded after reset.css and core.css
*/

:root {
    --main-hex: #A5B7E5;
    --main-hex-a: #012181B3;
    /* Alpha codes here: https://codepen.io/chriscoyier/pen/XjbzrW */

    --accent-hex: #00B2CA;

    --panel-hex: #E3E3E3;
    --border-hex: #000000;

    --success-hex: #48D61A;
    --error-hex: #EB0C1A;

    --border-radius-input: 3px;
    --border-radius-panel: 3px;

    --transition-time: .1s;

    /* ------------------------------- Our Styles ------------------------------- */

    --green: #BADD7F;
    --dark-green: #5D713C;
    --blue: #A5B7E5;
    --dark-blue: #65769F;
    --navy-blue: #313A4E;
    --brown: #402F1D;
    --off-white: #F6F6EA;
    --black: #000000;
    --white: #FFFFFF;

    --font-header: 'p22-mackinac-pro', serif;
    --font-body: 'neue-haas-grotesk-display', sans-serif;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: neue-haas-grotesk-display, sans-serif;
    background-color: var(--off-white);
}

main {
    margin-top: 0px;
}

main#home {
    display: flex;
    justify-content: center;
}

main#home .page_pane {
    flex: 1;
    max-width: 100%;
}

main#home aside {
    display: none;
}

h1,
h2,
h3 {
    padding-bottom: 0px;
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

.header {
    position: relative;
    background-color: var(--off-white);
    border-bottom: 2px solid var(--navy-blue);
    z-index: 10;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 2rem;
    width: 100%;
    max-width: 70vw;
    margin: 0 auto;
}

.logo img {
    height: 3rem;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--dark-blue);
}

.nav-links i {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--navy-blue);
    transition: color 0.3s;
}

.nav-links a:hover i {
    color: var(--dark-blue);
}

/* ------------------------------- SEARCH BAR ------------------------------- */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--off-white);
    border-bottom: 2px solid var(--black);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 5;
}

.search-bar.active {
    max-height: 100px;
}

.search-bar input::placeholder {
    text-align: center;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: none;
    border-top: 2px solid var(--navy-blue);
    background-color: var(--white);
    color: var(--navy-blue);
    outline: none;
    text-align: center;
}

.follow_button {
    background-color: var(--blue);
    border: 0px;
    color: var(--navy-blue);
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    padding-left: 50px;
    font-size: 1rem;
    background-size: contain;
    background-position: 5px center;
    background-repeat: no-repeat;
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;

}

.follow_button:hover {
    background-color: var(--dark-blue);
    color: white;
}


.post_content a {
    color: black;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*                                  CLUB CONTAINER                            */
/* -------------------------------------------------------------------------- */
.club-container {
    width: 100%;
    height: 34rem;
    background: var(--off-white);
    border: 4px solid var(--green);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.club-header {
    width: 100%;
    height: 5rem;
    background-color: var(--green);
    border-radius: 30px 30px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;

    h3 {
        font-size: 2rem;
        font-weight: 800;
        font-family: var(--font-header);
        color: #3C4A25;
        padding-left: 1.5rem;
    }
}

/* https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp */
.book-club-card-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex: 1;
}

/* Horizontal scrollbar styling https://chatgpt.com/share/69135ddf-160c-8006-9004-2490d041c865 */
.book-club-card-container::-webkit-scrollbar {
    height: 10px;
}

.book-club-card-container::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 10px;
    margin: 0 3rem;
}

.book-club-card-container::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 10px;
}

.book-club-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    padding-right: 3rem;
    font-family: var(--font-header);

    .club-image {
        position: relative;
        background: transparent;
        width: 270px;
        height: 272px;
    }

    .club-image .background-img {
        border-radius: 20px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .book-img {
        transform: translate(-5rem, 9rem);
        position: absolute;
        width: 112px;
        height: 169px;
        object-fit: cover;
        border-radius: 8px;
    }
}

.book-club-card.clickable-club {
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-club-card.clickable-club:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
}

.book-club-card.selected {
    background-color: rgba(139, 195, 74, 0.15);
    border-left: 4px solid var(--green);
}

.p-container {
    display: inline-flex;
    justify-content: space-between;
    gap: 6rem;
    font-family: var(--font-body);
    font-size: 0.825rem;
    font-style: normal;
    font-weight: 450;
    margin-top: 0.25rem;
    color: black;
}

.club-info h4 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 450;
    margin-top: 2rem;
    color: black;
}

.join-club-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--green);
    color: var(--black);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.join-club-btn:hover {
    background: var(--dark-green);
    color: white;
}

.join-club-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.join-club-btn.joined {
    background-color: var(--brown);
}

.leave-club-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #d9534f;
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.leave-club-btn:hover {
    background-color: #c9302c;
    color: white;
}


.leave-club-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/*                                 FIND A CLUB                                */
/* -------------------------------------------------------------------------- */
#find-club {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    h1,
    h2,
    h3 {
        padding-bottom: 0;
    }

    h1 {
        font-size: 2.5rem;
        padding-left: 15vw;
    }
}

.header-wrapper {
    width: 100vw;
}

#find-club .clubs {
    width: 70%;
}

#find-club .header-bar {
    background-color: var(--brown);
    color: white;
    margin-bottom: 5rem;
    font-family: var(--font-header);
    padding: 2rem;
    height: 75px;
    display: flex;
    align-items: center;
    /* center vertically */
    /* height: 100%;    */
}

#find-club .club-container {
    margin-bottom: 4rem;
    /* margin-left: 15rem; */
}

/* -------------------------------------------------------------------------- */
/*                     container for posts + library card                     */
/* -------------------------------------------------------------------------- */
.card-container {
    width: 700px;
    max-width: 100%;
    /* responsive fallback */
    background-color: var(--off-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin: 2rem auto;
    /* top-bottom spacing + auto left/right to center */
    font-family: var(--font-body);
}



/* -------------------------------------------------------------------------- */
/*                                Library card                                */
/* -------------------------------------------------------------------------- */
.library-card-container {
    /* height: fit-content; */
    background: var(--off-white);
    border: 4px solid var(--brown);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.library-card-header {
    width: 100%;
    height: 7rem;
    background-color: var(--brown);
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    h3 {
        font-size: 2rem;
        font-weight: 800;
        font-family: var(--font-header);
        color: var(--off-white);
        padding-bottom: 0.5rem;
    }

    h4 {
        color: var(--Off-White, #F6F6EA);
        margin: 0 auto;
        font-family: var(--font-header);
        font-size: 20px;
        font-weight: 200;
    }
}

.library-card-content {
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--brown);
    font-family: var(--font-header);

    .user-value {
        border-top: 4px solid var(--brown);
    }
}

.user-info {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 4px solid var(--brown);

    div {
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
        border-right: 4px solid var(--brown);
    }

    div:nth-child(2),
    div:nth-child(4) {
        border-right: none;
        text-align: center;
    }

    .name,
    .date {
        font-weight: bold;
    }
}

.rating-section {
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--brown);
    gap: 1rem;

    .heading {
        width: 11rem;
        padding: 0.75rem 1rem;
        font-weight: bold;
        font-size: 1.25rem;
        border-right: 4px solid var(--brown);
    }

    input[type="radio" i] {
        appearance: none;
        -webkit-appearance: none;
        position: absolute;
        background-color: var(--off-white);
        padding-right: 2rem;
    }

    label {
        width: 1.5rem;
        height: 1.5rem;
        border: 2px solid var(--blue);
        border-radius: 50%;
        background-color: transparent;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
    }

    input[type="radio"]:checked+label {
        background-color: var(--blue);
    }

}


.signature-section {
    display: grid;
    grid-template-columns: 11rem auto;

    .signature {
        padding: 0.75rem 1rem;
        font-weight: bold;
        font-size: 1.25rem;
        border-right: 4px solid var(--brown);
    }

    .signature-text {
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
    }
}




/* -------------------------------------------------------------------------- */
/*                                POST CREATOR                                */
/* -------------------------------------------------------------------------- */
#post_creator {
    background-color: var(--off-white);
    border: 2px solid var(--navy-blue);
    border-radius: 1rem;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

}

#post_blackout {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(49, 58, 78, 0.8);
    color: var(--off-white);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
}

.post_composer .row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.post_composer .row label {
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-family: neue-haas-grotesk-display, sans-serif;
}

.post_composer .row input[type="text"],
.post_composer .row textarea,
.post_composer .row select,
.post_composer .row input[type="file"] {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--black);
    border-radius: 0.5rem;
    background-color: var(--white);
    color: var(--navy-blue);
    font-family: neue-haas-grotesk-display, sans-serif;
}

.post_composer .row textarea {
    resize: vertical;
    min-height: 100px;
}

.post_composer .row select {
    cursor: pointer;
}

.post_composer .row.right {
    display: flex;
    justify-content: flex-end;
}

.post_composer .row.right input.post {
    font-family: p22-mackinac-pro, serif;

    background-color: var(--dark-blue);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post_composer .row.right input.post:hover {
    background-color: var(--dark-green);
    color: var(--off-white);

}

.post_composer .row input[type="file"] {
    cursor: pointer;
}



/* -------------------------------------------------------------------------- */
/*                                 POST BLOCK                                 */
/* -------------------------------------------------------------------------- */
.post_block {
    background-color: var(--off-white);
    border: 0.25rem solid var(--navy-blue);
    border-radius: 1rem;
    margin: 2rem auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    width: 700px;
    max-width: 100%;
}

.post_header_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--brown);
    border-radius: 0.5rem 0.5rem 0 0;
}


.user_info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user_name {
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-header);
    text-decoration: none;
}

.post_date {
    font-size: 0.85rem;
    color: var(--off-white);
}


/* Book Content */
.book_content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem
}

.book_cover {
    width: 50px;
    height: auto;
    border-radius: 0.25rem;
    object-fit: cover;
}

.book_text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.post_title {
    font-family: var(--font-header);
    color: var(--black);
    margin: 0;
}

.post_description {
    color: var(--navy-blue);
    margin: 0;
}


/* Stats Row */
.stats_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.progress_stats {
    font-family: var(--font-body);
    color: var(--navy-blue);
    font-weight: 600;
}

.post_actions {
    display: flex;
    gap: 0.5rem;
}

.post_actions button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    background-color: var(--off-white);
    color: var(--dark-green);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.post_actions button i {
    font-size: 1.2rem;
}

.post_actions button:hover {
    background-color: var(--off-white);
    color: var(--blue);
}


.comment_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;

    padding: 0.5rem 1.5rem;
    border-top: 0.125rem solid var(--brown);
}

.comment_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment_user {
    font-weight: 600;
    font-family: var(--font-header);
    color: var(--navy-blue);
}

.comment_content {
    font-family: var(--font-body);
    color: var(--black);
    margin: 0;
}

.comment_date {
    font-size: 0.75rem;
    color: var(--black);
    white-space: nowrap;
}


.add_comment {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 0.125rem solid var(--brown);
}

.add_comment form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.comment_input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    color: var(--navy-blue);
    outline: none;
}

.comment_input:focus {
    box-shadow: 0 0 0 2px var(--blue);
}


.comment_post_button {
    padding: 0.5rem 1rem;
    background: var(--blue);
    color: var(--navy-blue);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
}

.comment_post_button:hover {
    background: var(--dark-blue);
    color: white;
}

/* -------------------------------------------------------------------------- */
/*                                 REVIEW FORM                                */
/* -------------------------------------------------------------------------- */
#review_creator {
    background-color: var(--off-white);
    border: 2px solid var(--navy-blue);
    border-radius: 1rem;
    padding: 1.5rem;
    font-family: var(--font-body);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

#review_blackout {
    display: none;
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review_composer .row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review_composer label {
    font-weight: 600;
    color: var(--navy-blue);
}

.review_composer input[type="text"],
.review_composer select,
.review_composer textarea {
    padding: 0.5rem;
    border: 1px solid var(--black);
    border-radius: 0.5rem;
    background-color: var(--white)
}

.checkbox_group {
    display: flex;
    gap: 1rem;
}

.row.right {
    display: flex;
    justify-content: flex-end;
}

.submit_button {
    background-color: var(--green);
    color: var(--navy-blue);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.submit_button:hover {
    background-color: var(--dark-green);
    color: var(--off-white);
}


/* -------------------------------------------------------------------------- */
/*                                     404                                    */
/* -------------------------------------------------------------------------- */
#error_404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    font-family: var(--font-header);
    background-color: var(--off-white);
    text-align: center;
    /* color: var(--navy-blue); */
}

.page_pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* padding: 2rem; */
    width: 100%;
}

#error_404 h1 {
    font-size: 6rem;
    font-family: var(--font-header);
    margin: 0;
}

#error_404 h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

#error_404 p {
    font-size: 1.2rem;
    margin: 0.5rem 0 1.5rem 0;
}

.torn-book {
    width: 200px;
    max-width: 60%;
    margin-bottom: 1.5rem;
}

.home-btn {
    background-color: var(--dark-green);
    color: var(--off-white);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--dark-green);
    transition: all 0.2s ease;
}

.home-btn:hover {
    background-color: transparent;
    color: var(--dark-green);
}

/* -------------------------------------------------------------------------- */
/*                        Fill out a library card FORM                        */
/* -------------------------------------------------------------------------- */
.library-form-container {
    background-color: var(--brown);
    border-radius: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    font-family: var(--font-body);
    position: relative;
}

.library-form-container h1 {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--off-white);
    color: var(--black);
    padding: 2rem;
    border-radius: 1rem;
}

.review-form label,
.progresslabel {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.review-form input[type="text"],
.review-form input[type="number"],
.review-form input[type="file"],
.review-form select,
.review-form textarea {
    padding: 0.5rem;
    border: 1px solid var(--blue);
    border-radius: 0.5rem;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.review-form button {
    width: fit-content;
    padding: 0.5rem 1rem;
    background: var(--blue);
    color: var(--navy-blue);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
    align-self: center;
}

.review-form button:hover {
    background: var(--dark-blue);
    color: white;
}


.review-form .chapter-progress {
    display: grid;
    grid-template-columns: 1fr 0.25fr 1fr;
    align-items: end;

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

    input[type="text"] {
        width: 100%;
    }

    label {
        font-size: 1rem;
        font-weight: 400;
    }
}

.create-new-book {
    font-weight: 700;
    color: #5ca102;
    cursor: pointer;
    border-top: 1px solid #333;
}

.create-new-book:hover {
    background: #333;
}

.search_results_ul {
    pointer-events: auto;
}


.rating {
    display: flex;
    gap: 0.5rem;
    justify-content: space-around;
    flex-direction: row-reverse;
    position: relative;
}

.rating input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    background-color: var(--off-white);
}

.rating label {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* fill in all circles prior to the one that is checked https://chatgpt.com/share/6915f222-94d8-8006-b99c-e71275aa8e3f */
.rating input:checked+label {
    background-color: var(--blue);
}

/* fill all before it (left side visually) */
.rating input:checked~label {
    background-color: var(--blue);
}

/* -------------------------------------------------------------------------- */
/*                                  club form                                 */
/* -------------------------------------------------------------------------- */

#create_club {
    background-color: var(--green);
    color: var(--black);
}

/* -------------------------------------------------------------------------- */
/*                              Edit Profile Form                             */
/* -------------------------------------------------------------------------- */
.edit-profile-form-container {
    background-color: var(--off-white);
    max-width: 600px;
    height: fit-content;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    color: black;
    font-family: var(--font-body);
    /* display: flex;
    align-items: center;
    flex-direction: column; */
    display: flex;
    justify-content: center;

    h1 {
        font-size: 1.5rem;
        font-weight: medium;
        font-family: var(--font-header);
        text-align: center;
    }
}

.edit-profile-header {
    display: flex;
    align-items: center;
    flex-direction: column;

    h1 {
        margin-bottom: 1rem;
    }
}

.post_block img.avatar {
    width: 75px;
    height: 75px;
    margin-right: 10px;
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--off-white);
    color: black;
    padding: 2rem;

    button {
        width: 8rem;
        height: 2.5rem;
        background-color: var(--dark-blue);
        color: white;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        outline: none;
        border: none;
        margin: 0 auto;
    }

    button.cancel {
        background-color: var(--brown);
    }

    label {
        font-size: 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    textarea {
        width: 472px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid var(--blue);
        background: white;
    }

    input::placeholder {
        padding-left: 0.5rem;
    }

    .profile-pic-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        label[for="profile-pic"] {
            margin-bottom: 1rem;
            font-weight: bold;
            text-decoration: underline;
        }
    }
}

/* --------------------------------- sidebar -------------------------------- */
/* SIDEBAR BASE */
.sidebar {
    height: 100%;
    width: 0;
    /* closed by default */
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--off-white);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Close button */
.sidebar .closebtn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    text-decoration: none;
    color: var(--brown);
    cursor: pointer;
}

/* Button to open */
.open-edit-btn {
    padding: 8px 16px;
    background: white;
    color: black;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}


/* ----------------------------- discussion room ---------------------------- */
.discussion-card {
    width: 800px;
    padding-right: 3rem;
    padding-left: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 2rem auto;
    background-color: var(--brown);
    border: 2px solid var(--navy-blue);
    border-radius: 1rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: var(--font-body);
}

.discussion-card .card-header {
    background-color: var(--brown);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    border-radius: 1rem 1rem 0 0;
}

.discussion-card .card-header h2 {
    margin: 0;
    font-family: var(--font-header);
    font-size: 2rem;
}

.discussion-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.5rem;

    p {
        font-size: 1.25rem;
        color: var(--white);
        font-family: var(--font-header);
        text-align: center;
    }
}

.discussion-content a {
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--navy-blue);
    background-color: var(--off-white);
    color: var(--navy-blue);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.5rem;
}

.chapter-button {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: transparent;
    color: var(--brown);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.5rem;
    font-family: var(--font-header);
}


.chapter-button:hover {
    background-color: transparent;
    /* color: var(--off-white); */

}

.discussion-content a:hover {
    background-color: var(--green);
    color: var(--dark-green);
}

.no-comments {
    font-family: var(--font-header);
    font-size: 1.5rem;
    text-align: center;
    margin: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--off-white);
    color: var(--black);
    padding: 3rem 2rem;
    border-top: 2px solid var(--black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.footer-section.logo img {
    height: 50px;
}

.footer-section h3 {
    font-family: p22-mackinac-pro, serif;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.footer-section p,
.footer-section a {
    font-family: neue-haas-grotesk-display, sans-serif;
    font-size: 0.95rem;
    color: var(--black);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--dark-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons i {
    font-size: 1.5rem;
    color: var(--dark-blue);
    transition: color 0.3s;
}

.social-icons a:hover i {
    color: var(--green);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--brown);
}

/* -------------------------------------------------------------------------- */
/*                                LANDING PAGE                                */
/* -------------------------------------------------------------------------- */
main#landing-page {
    width: 100%;
    margin: 0;
    margin-top: 0;
    display: block;
    flex-direction: unset;
    flex-wrap: unset;
}

.hero {
    height: 90vh;
    background-color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12rem;
    padding: 0 4rem;

    h1 {
        padding-bottom: 3rem;
        font-size: 7rem;
        color: white;
        font-family: "ohno-blazeface", sans-serif;
        font-weight: 100;
        font-style: italic;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        margin-bottom: 0.25rem;
    }

    h3 {
        color: var(--Light-Blue, #A5B7E5);
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        font-family: var(--font-header);
        font-size: 2rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    button {
        border-radius: 10px;
        background: var(--blue);
        color: var(--navy-blue);
        width: 10rem;
        height: 4rem;
        font-family: var(--font-header);
        font-size: 1.75rem;
        font-style: normal;
        font-weight: 700;
        border: none;
    }

    button:hover {
        background: var(--dark-blue);
        color: white;
    }

}

.hero-text {
    display: flex;
    flex-direction: column;
}

.sign-up-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker {
    position: absolute;
    top: -65px;
    right: 100px;
    z-index: 999999;
}

.sticker img {
    width: 12rem;
    height: auto;
}

/* -------------------------------------------------------------------------- */
/*                                JOIN THE CLUB                               */
/* -------------------------------------------------------------------------- */
.join-the-club {
    background-color: var(--green);
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.join-the-club-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-the-club-text {
    width: 30%;
    margin-left: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h2 {
        font-family: var(--font-header);
        font-size: 60px;
        font-style: normal;
        font-weight: 800;
        line-height: normal;
        color: var(--dark-green);
        margin-bottom: 2.5rem;
    }

    p {
        color: var(--Black, #000);
        font-family: var(--font-body);
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 137.942%;
        margin-bottom: 1.5rem;
    }

    button {
        border-radius: 10px;
        background: var(--blue);
        color: var(--navy-blue);
        width: 10rem;
        height: 4rem;
        font-family: var(--font-header);
        font-size: 1.75rem;
        font-style: normal;
        font-weight: 700;
        border: none;
    }
    button:hover {
        background: var(--dark-blue);
        color: white;
    }
}

/* -------------------------------------------------------------------------- */
/*                     LANDING PAGE CLUB CONTAINER                            */
/* -------------------------------------------------------------------------- */
.landing-club-container {
    width: 75rem;
    height: 33rem;
    background: var(--brown);
    border-radius: 40px;
    position: relative;
    margin-left: 7rem;
}

.landing-club-header {
    h3 {
        font-size: 2rem;
        font-weight: 800;
        font-family: var(--font-header);
        color: white;
        padding-left: 1.5rem;
        padding-bottom: 1rem;
    }
}

.popular-clubs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80vh;
    background-color: var(--brown);
    position: relative;
}

.book-club-card {
    .club-image {
        position: relative;
    }
}

#landing-page .p-container {
    display: inline-flex;
    justify-content: space-between;
    gap: 6rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-style: normal;
    font-weight: 450;
    margin-top: 3px;
    color: white;
}

#landing-page .club-info h4 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 450;
    margin-top: 2rem;
    color: white;
}

.landing-book-club-card-container {
    display: flex;
    flex-direction: row;
    transform: scale(1.1);
    transform-origin: top left;
    width: fit-content;
    overflow: hidden;
}

/* https://chatgpt.com/share/691c882b-2e24-8006-8391-2411a647ceec */
.checkered-pattern {
    width: 100%;
    height: 40px;

    background-image:
        /* Row 1 */
        linear-gradient(90deg,
            var(--green) 0 40px,
            var(--dark-green) 40px 80px),
        /* Row 2 */
        linear-gradient(90deg,
            var(--dark-green) 0 40px,
            var(--green) 40px 80px);

    background-size: 80px 80px;
    /* 2 columns × 2 rows */
    background-position: 0 0, 0 40px;
    /* shift row 2 down by its height */
    background-repeat: repeat;
}

.checkered-pattern-bottom {
    width: 100%;
    height: 40px;
    /* two rows of 40px */

    background-image:
        /* Row 1 */
        linear-gradient(90deg,
            var(--green) 0 40px,
            var(--dark-green) 40px 80px),
        /* Row 2 */
        linear-gradient(90deg,
            var(--dark-green) 0 40px,
            var(--green) 40px 80px);

    background-size: 80px 80px;
    background-position-x: -40px;
    background-repeat: repeat;
}

/* -------------------------------------------------------------------------- */
/*                         Landing Page Library card                          */
/* -------------------------------------------------------------------------- */

.landing-page-library-card {
    background-image: url(../img/paper-bg.png);
    height: 80vh;
}

.landing-page-library-card {
    display: flex;
    align-items: center;
    justify-content: center;

    .landing-page-library-card-container {
        background: var(--off-white);
        border: 4px solid var(--brown);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        width: 40%;
        height: fit-content;
    }
}

.landing-page-library-card-content {
    p {
        margin: 2rem;
        margin-top: 3rem;
        font-size: 1.5rem;
        text-align: center;
        line-height: 30px;
    }

    button {
        border-radius: 10px;
        background: var(--blue);
        width: 8rem;
        height: 3rem;
        font-family: var(--font-header);
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 700;
        color: var(--navy-blue);
        background-color: var(--blue);
        border: none;
        margin: 0 auto;
        margin-bottom: 2rem;
        margin-top: 0.5rem;
    }
    button:hover {
        background: var(--dark-blue);
        color: white;
    }

    
}

.library-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* -------------------------------------------------------------------------- */
/*                             Track your progress                            */
/* -------------------------------------------------------------------------- */
.track-your-progress {
    background-color: var(--blue);
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sticker-2 {
    position: absolute;
    top: -65px;
    left: 60px;
    z-index: 999999;
}

.sticker-2 img {
    width: 12rem;
    height: auto;
}

.track-progress-sign-up {
    border-radius: 10px;
    background-color: var(--green);
    width: 10rem;
    height: 4rem;
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 700;
    color: var(--dark-green);
    margin-top: 2rem;
    border: none;
}

/* button:hover {
    background: var(--dark-green);
    color: white;
} */

/* .follow-button:hover{
    background-color: var(--dark-blue)!important;
} */


.track-progress-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5rem;

    img {
        max-width: 70%;
    }
}

.track-progress-text {
    width: 30%;
    margin-left: 9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h2 {
        font-family: var(--font-header);
        font-size: 60px;
        font-style: normal;
        font-weight: 800;
        line-height: normal;
        color: var(--navy-blue);
        margin-bottom: 2.5rem;
    }

    p {
        color: var(--Black, #000);
        font-family: var(--font-body);
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 137.942%;
        margin-bottom: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                   LOG IN                                   */
/* -------------------------------------------------------------------------- */
#login_form {
    position: absolute;
    top: 52px;
    width: 70%;
    max-width: 600px;
    background-color: white;
    border: 4px solid var(--blue);
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, 0.15));
}

#register_form {
    position: absolute;
    margin-top: 3rem;
    width: 70%;
    max-width: 600px;
    background-color: white;
    border: 4px solid var(--blue);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, 0.15));
}

#login_form h2,
#register_form h2 {
    text-align: center;
    font-family: var(--font-header);
    font-size: 40px;
    font-weight: 400;
    padding-top: 0.5rem;
    padding-bottom: 1.6rem;
}


#login_form label,
#form label,
#register_form label {
    color: var(--black);
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 450;
}

#login_form a {
    color: var(--black);
    font-size: 1rem;
    font-weight: normal;
    text-decoration: none;
}

#login_form input:not([type='checkbox']),
#login_form input:not([type='radio']),
#form input:not([type='checkbox']),
#form input:not([type='radio']),
#register_form input:not([type='checkbox']),
#register_form input:not([type='radio']),
#form select,
#form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

#index {
    display: flex;
    height: 90vh;
    width: 100%;
    padding: 0;
    overflow: hidden;
}


#index .page_pane {
    flex: 1;
    background-color: var(--brown);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.log-in-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--brown);
    color: white;

    p {
        font-family: "P22 Mackinac Pro";
        font-size: 2rem;
        line-height: 137%;
        margin-left: 5rem;
    }
}

#index aside {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

#index header {
    display: none;
}

#login_form button,
#login_form .link_as_button,
#register_form button,
#register_form .link_as_button {
    display: block;
    /* margin: 0 auto 1rem; */
    width: 100%;
}

.envelope {
    position: relative;
    width: 570px;
    height: 670px;
    display: flex;
    justify-content: center;
}


.envelope-img img {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: -320px;
    left: 0;
    z-index: 0;
}

.envelope-buttons {
    position: absolute;
    bottom: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.envelope-buttons button,
.envelope-buttons .link_as_button {
    width: 334px;
    height: 48px;
    border-radius: 6px;
    background-color: var(--blue);
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.envelope-buttons button:hover,
.envelope-buttons .link_as_button:hover {
    background: var(--dark-blue);
    color: white;
}

#login_form .link_as_button,
#register_form .link_as_button {
    height: 48px;
    border-radius: 6px;
    background-color: var(--blue);
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

#login_form .link_as_button:hover,
#register_form .link_as_button:hover {
    background: var(--dark-blue);
    color: white;
}


.form-row {
    width: 112%;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 0.5rem;
}

.register-page .envelope {
    width: 570px !important;
    min-width: 570px !important;
}


aside .message {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding-top: 5rem;
}


.logout_message,
.login_error {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: medium;
}

/* -------------------------------------------------------------------------- */
/*                               FORGOT PASSWORD                              */
/* -------------------------------------------------------------------------- */
main#password .wide_butt,
main#password form input.wide_butt {
    width: 334px;
    height: 48px;
    border-radius: 6px;
    background-color: var(--blue);
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

main#password .wide_butt {
    padding: 0.5rem;
}

main#password {
    margin: 3rem;

    p {
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
        color: black;
        font-family: "ohno-blazeface", sans-serif;
        font-weight: 100;
        font-style: italic;
    }
}

/*                                   PROFILE                                  */
/* -------------------------------------------------------------------------- */
/* ------------------ Layout Wrapper ------------------ */
.profile-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* ------------------ Banner ------------------ */
.profile-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;

}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Subtle black overlay */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 10px;

}

main#profile .cover_photo {
    max-height: 310px;
    background-color: var(--brown);
}

/* Name */
.profile-name {
    margin: 0;
    font-size: 1.8rem;
}

/* Button */
.profile-edit-btn {
    padding: 8px 16px;
    background: white;
    color: black;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 8rem;
    font-family: var(--font-header);
}

.button-row button {
    padding: 0.75rem 1.25rem;
    background: var(--blue);
    color: var(--navy-blue);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.button-row button:hover {
    background: var(--dark-blue);
    color: white;
}



.home-button-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--brown);
    width: 100%;
    padding: 1rem;
}

.followers {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.followers .top {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: var(--header);
}

.followers .count {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.post_block img.avatar {
    width: 75px;
    height: 75px;
    margin-right: 10px;
}

.followers-container {
    display: flex; /* Use flexbox to align items in a row */
    align-items: center; /* Vertically align the items */
    gap: 0.5rem; /* Add spacing between the <h3> and the .followers section */
}

/* ------------------ Profile Picture ------------------ */
/* .profile-picture-wrapper { */
/* ------------------ Profile Picture ------------------ */
.profile-picture-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    margin-bottom: 1rem;
}

.profile-picture {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    z-index: 1;
}

/* ------------------ Bio ------------------ */
.profile-bio {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* ------------------ Stats Row ------------------ */
.profile-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 12px;
    margin: auto;
    max-width: 500px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/*                                 toggle tabs                                */
/* -------------------------------------------------------------------------- */
.tab {
    display: flex;
    justify-content: center;
    gap: 8rem;
    background-color: var(--brown);
    padding: 1rem;
    border: none;
}

/* Tab buttons */
.tab button {
    background-color: transparent;
    color: var(--off-white);
    border: none;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

/* Hover state */
.tab button:hover {
    color: var(--off-white);
    background-color: var(--dark-green);
}

/* Active tab */
.tab button.active {
    background-color: var(--green);
    color: var(--brown);
}

/* Content container */
.tabcontent {
    display: none;
    padding: 1.5rem;
    background: var(--off-white);
}

/* -------------------------------------------------------------------------- */
/*                                 empty feed                                 */
/* -------------------------------------------------------------------------- */
.empty-feed {
    font-family: var(--font-header);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    font-size: 2rem;
    color: var(--text);

    p {
        line-height: 125%;
    }
}

/* -------------------------------------------------------------------------- */
/*                         Autocomplete form dropdown                         */
/* -------------------------------------------------------------------------- */

.autocomplete {
    position: absolute;
    background: #222;
    /* border: 1px solid #444; */
    border-radius: 6px;
    margin-top: 4px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 20;
    color: white;
}

.autocomplete .option {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
}

.autocomplete .option:hover {
    background: #333;
}

.autocomplete .no-results {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #aaa;
}

.autocomplete .no-results:hover {
    background: #333;
    color: #fff;
}


/* -------------------------------------------------------------------------- */
/*                           Modal for make new book                          */
/* -------------------------------------------------------------------------- */

/* Modal layout stays the same */
.modal {
    position: fixed;
    inset: 0;
    background: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.modal.hidden {
    display: none;
}

/* Main modal box */
.modal_content {
    background: var(--off-white);
    color: var(--navy-blue);
    padding: 2rem;
    border-radius: 1rem;
    width: 450px;
    max-width: 95%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: neue-haas-grotesk-display, sans-serif;
}

/* Title styling to match post composer */
.modal_content h2 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: var(--navy-blue);
}

/* Form layout */
#new_book_form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Labels */
#new_book_form label {
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 1.25rem;
}

/* Inputs, text + file */
#new_book_form input[type="text"],
#new_book_form input[type="file"],
#new_book_form select {
    padding: 0.5rem;
    border: 1px solid var(--blue);
    border-radius: 0.5rem;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

#new_book_form input[type="file"],
#new_book_form select {
    cursor: pointer;
}

#new_book_modal {
    z-index: 9999 !important;
    background-color: var(--dark-green);
}

#review-form {
    z-index: 500;
}

#progress-modal {
    z-index: 600;
}


/* Buttons row */
.new-book-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Buttons styling (matches post composer) */
.modal-buttons button {
    font-family: p22-mackinac-pro, serif;
    width: 12rem;
    height: 2.75rem;
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    outline: none;
    align-self: center;
}

/* Primary button (Create Book) */
.new-book-buttons button[type="submit"] {
    background-color: var(--dark-blue);
    color: var(--white);
}

.modal-buttons button[type="submit"]:hover {
    background-color: var(--blue);
    color: var(--off-white);
}

/* Secondary button (Cancel) */
.modal-buttons button[type="button"] {
    background-color: var(--dark-blue);
    color: var(--white);
}

.modal-buttons button[type="button"]:hover {
    background-color: var(--blue);
    color: white;
}

.header_search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    width: 100%;
    position: relative;
}

.header_search #book_name_review,
.header_search #book_name_progress {
    width: 100%;
}

.header_search_wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
}

.header_search input[type="search"],
.overlay-content .header_search input[type="search"] {
    padding: 0.5rem;
    border: 1px solid var(--blue);
    border-radius: 0.5rem;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.overlay-content .header_search input[type="search"] {
    background-color: #373737;
    border: 1px solid #5ca102;
    color: #5ca102;
}

.header_search input[type="submit"] {
    background-color: #FFFFFF;
    background-image: url("../img/search-icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 0px;
    text-indent: -5000px;
}

.header_search #the_search_results,
.header_search #the_search_results_flyout {
    position: absolute;
    z-index: 5;
    top: 30px;

    padding: 0.5rem;
    border: 1px solid var(--blue);
    border-radius: 0.5rem;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;

    /* height: calc(100vh - 180px);
    max-height:600px;  */
    max-height: clamp(fit-content, calc(100vh - 180px), 600px);
}

.header_search ul,
.header_search #the_search_results,
.header_search #the_search_results_flyout {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--blue);
    border-radius: 0.5rem;
    z-index: 50;
}

.review-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                               Your-clubs page                              */
/* -------------------------------------------------------------------------- */

main#your-clubs {
    width: 70%;
    margin: 0 auto;
    margin-top: 0px;
    display: block;


    #yours .clubs span {
        font-size: 2rem;
        font-family: var(--font-header);
        margin: 0 auto;
    }
}



/* -------------------------------------------------------------------------- */
/*                             INSIDE DISCUSSION ROOM                         */
/* -------------------------------------------------------------------------- */
.inside-discussion-room-container {
    display: flex;
    justify-content: center;
    align-items: center;

    .club-header {
        width: 100%;
        height: 5rem;
        background-color: var(--brown);
        border-radius: 30px 30px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;

        h3 {
            font-size: 2.5rem;
            font-weight: 800;
            font-family: var(--font-header);
            color: white;
            padding-left: 1.5rem;
        }
    }
}

main#inside-discussion-room {
    /* width: 80%; */
    margin: 0px auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: block;
}

.inside-discussion-room-club-container {
    width: 60rem;
    /* height: 70rem; */
    background: var(--off-white);
    border: 4px solid var(--brown);
    border-radius: 40px;
    /* overflow: visible;
    position: relative; */
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.club-header {
    i {
        font-size: 2.5rem;
        color: white;
    }
}

.discussion-input-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 2px solid var(--brown);
    background: #F5F3E9;
    border-radius: 0 0 20px 20px;
}

.discussion-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: #fff;
}

.discussion-input::placeholder {
    color: #999;
}

/* .discussion-post-btn {
    padding: 0.6rem 1.4rem;
    background: var(--blue);
    color: var(--black);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

.discussion-post-btn:hover {
    opacity: 0.9;
} */

.discussion-post-btn {
    padding: 0.5rem 1rem;
    background: var(--blue);
    color: var(--navy-blue);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
}

.discussion-post-btn:hover {
    background: var(--dark-blue);
    color: white;
}

.discussion-posts {
    flex: 1;
    /* makes it grow to fill space */
    overflow-y: auto;
    /* scroll only inside this area */
    /* padding: 1.5rem 2rem; */
    /* space for posts */
}


/* -------------------------------------------------------------------------- */
/*                            DISCUSSION ROOM POST                            */
/* -------------------------------------------------------------------------- */
/* https://chatgpt.com/share/69262388-f0ac-8006-bb7f-1f7d133832a5 */
.comment {
    background: var(--off-white);
    padding: 1.5rem 0;
    font-family: var(--font-body, sans-serif);
    color: #1f1f1f;
    padding: 3rem;
    border-bottom: 0.2rem solid var(--brown);
}

.comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.pronouns {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
}

.timestamp {
    font-size: 1.25rem;
    color: #444;
}

.comment-text {
    margin-top: 1.2rem;
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 85%;
}

.comment-actions {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.4rem;
    align-items: center;
}

.likes,
.replies {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.comment-actions i {
    font-size: 2.1rem;
    color: var(--dark-green);
    display: flex;
    align-items: center;
}

/* Create a club button */
.create-club-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-club-button {
    width: fit-content;
    height: 3rem;
    padding: 0.25rem 1.25rem;
    background: var(--dark-green);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: var(--font-header);
    margin-bottom: 2rem;
}

.create-club-button:hover {
    background: var(--green);
    color: var(--brown);
}


.tabcontent {
    display: none;
}

/* --------------------------------- profile -------------------------------- */
.cover-inner {
    font-family: var(--font-header);
    color: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.cover-inner .button-row {
    gap: 1rem;
}

#profile .cover-inner .avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: 0;
    object-fit: cover;
}

.cover_photo {
    position: relative;
    overflow: hidden;
}

.cover_photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: brightness(0.75);
    z-index: 1;
}

.cover_photo>* {
    position: relative;
    z-index: 2;
}

/* -------------------------------------------------------------------------- */
/*                                   SEARCH                                   */
/* -------------------------------------------------------------------------- */
#search_results {
    margin-left: 5rem;
    margin-top: 4rem;
    font-family: var(--font-header);

    h2 {
        font-size: 1.5rem;
    }
}

.tabs a {
    color: var(--brown);
    font-weight: 500;
    font-size: 1.15rem;
}