/* Read Hero Section */
.read-hero {
    background: var(--Primary-P500);
    background-position: center;
    /* height: 30vh; */
    padding: 37px 503px 37.284px 503px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.read-novel-header {
    display: flex;
    flex-direction: column;
    gap: 19.144px;
    align-items: center;
}

.back-btn {
    display: none;
}

.read-novel-title {
    color: var(--WHITE);
    font-family: Montserrat;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.read-author {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    right: 94px
}

.read-author img {
    width: 28.716px;
    height: 28.716px;
    flex-shrink: 0;
    border-radius: 28.716px;
}

.read-profile {
    display: flex;
    padding: 4px 5px;
    justify-content: center;
    align-items: center;
    gap: 11.965px;
    border-radius: 23.93px;
    background: var(--WHITE);

    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.read-section {
    padding: 50px 80px;
    background: var(--Primary-P50);
}

.novel-chapters,
.novel-controller {
    position: sticky;
    top: 100px;
    z-index: 999;
}

.novel-content {
    display: flex;
    gap: 19.144px;
    justify-content: center;
}

.novel-chapters {
    display: inline-flex;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    background: var(--WHITE);
    height: 100px;
}

.novel-chapters .list {
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 10px;
    background: var(--Primary-P50);
    cursor: pointer;
}

.novel-chapters .list span {
    color: var(--Neutral-N200);
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.chapter-list {
    display: none;
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    background: var(--WHITE);
    /* position: sticky; */
    top: 100px;
    left: 220px;
    z-index: 99;
    width: 30%;
    border-radius: 10px;
    max-height: 50vh;
    overflow-y: auto;
}

.chapter-header {
    display: flex;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-bottom: 2px solid var(--MAIN-1);
}

.chapter-header h3 {
    color: var(--BLACK);
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.chapter-list ul {
    display: flex;
    padding: 0px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    flex: 1 0 0;
    list-style: none;
    width: 100%;
    min-height: 35vh;
    overflow-y: scroll;
    flex: 1 0 0;
}

/* The entire scrollbar */
.chapter-list::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* The track (the empty area of the scrollbar) */
.chapter-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The thumb (the draggable part of the scrollbar) */
.chapter-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover effect on the thumb */
.chapter-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar styling */
.chapter-list {
    scrollbar-width: thin;
    /* You can also use 'auto' or 'none' */
    scrollbar-color: var(--MAIN-1) var(--WHITE);
    /* Thumb color and track color */
}

.chapter-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.chapter-list ul li span.active {
    color: var(--MAIN-1);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.chapter-list ul li span {
    color: var(--DARK);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.mobile-chapter-list.show {
    display: flex;
}

.mobile-chapter-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--WHITE);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99;
    width: 80vw;
    height: 80vh;
    border-radius: 10px;
    padding: 10px;
}

.mobile-chapter-header {
    display: flex;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-bottom: 2px solid var(--MAIN-1);
}

.mobile-chapter-header h3 {
    color: var(--BLACK);
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.mobile-chapter-list ul {
    display: flex;
    padding: 0px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    flex: 1 0 0;
    list-style: none;
    width: 100%;
    min-height: 35vh;
    overflow-y: scroll;
    flex: 1 0 0;
}

/* The entire scrollbar */
.mobile-chapter-list::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* The track (the empty area of the scrollbar) */
.mobile-chapter-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The thumb (the draggable part of the scrollbar) */
.mobile-chapter-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover effect on the thumb */
.mobile-chapter-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar styling */
.mobile-chapter-list {
    scrollbar-width: thin;
    scrollbar-color: var(--MAIN-1) var(--WHITE);
}

.mobile-chapter-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.mobile-chapter-list ul li span.active {
    color: var(--MAIN-1);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.mobile-chapter-list ul li span {
    color: var(--DARK);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.novel-open-book {
    display: flex;
    width: 1036px;
    padding: 32px 24px 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 20px;
    background: var(--WHITE);
}

/* The entire scrollbar */
.novel-open-book::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* The track (the empty area of the scrollbar) */
.novel-open-book::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The thumb (the draggable part of the scrollbar) */
.novel-open-book::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover effect on the thumb */
.novel-open-book::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar styling */
.novel-open-book {
    scrollbar-width: thin;
    scrollbar-color: var(--MAIN-1) var(--WHITE);
}

.novel-chapter-title {
    color: var(--DARK);
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 44px;
    letter-spacing: -0.72px;
}

.novel-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    align-self: stretch;
    color: var(--Neutral-N400);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.novel-controller {
    display: flex;
    width: 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 121px;
    height: 60vh;
}

.novel-controller .share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.novel-controller .share {
    width: 40px;
    height: 40px;
}

.novel-controller .controller {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 11px;
    align-self: stretch;
}

.novel-controller .controller img {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Neutral-N40);
    background: var(--WHITE);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.mobile-contoller {
    display: none;
}

.mobile-reader-modal {
    display: none;
}

/* Mobile Reader Modal Overlay styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 98;
}

/* End Of Read Hero Section */

/* MOBILE RESPONSIVE  */

@media only screen and (max-width: 1122px) {

    .read-hero {
        width: 100%;
        padding: 22.5px 10px;
        height: auto;
    }

    .read-hero .container {
        padding: unset;
    }

    .read-novel-header {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .back-btn {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 0.29px 1.677px 1.388px 0px;
        justify-content: center;
        align-items: center;
        border-radius: 28.952px;
        background: var(--Neutral-N40);
    }

    .back-btn img {
        width: 13.897px;
        height: 13.897px;
    }

    .read-author {
        display: none;
    }

    .read-novel-title {
        font-size: 18px;
        line-height: 24px;
        width: 80%;
        white-space: wrap;
    }

    .read-section {
        padding: 20px;
    }

    .novel-content {
        flex-direction: column;
    }

    .novel-chapters,
    .novel-controller {
        display: none;
    }

    .novel-open-book {
        width: 100%;
        padding: 26px 16px;
        height: 80vh;
        overflow-y: scroll;
    }

    .novel-chapter-title {
        font-size: 24px;
        line-height: 32px;
    }

    .novel-body {
        font-size: 17px;
        line-height: 26px;
    }

    .mobile-contoller {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .mobile-btn {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-btn div {
        display: flex;
        padding: 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        border: 1px solid var(--Neutral-N20);
        background: var(--WHITE);
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
        width: 48px;
        height: 48px;
        color: var(--WHITE);
    }

    .mobile-btn .active {
        border: 1px solid var(--MAIN-GRADIENTS);
        background: var(--MAIN-GRADIENTS);
    }

    .mobile-share {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .mobile-share img {
        width: 30px;
        height: 30px;
    }

    .mobile-reader-modal.show {
        display: flex;
    }

    /* When the mobile reader modal is active, make the overlay visible */
    .overlay.show {
        display: block;
    }

    .mobile-reader-modal {
        display: none;
        position: fixed;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        align-self: stretch;
        left: 50%;
        bottom: 0;
        transform: translate(-50%);
        width: 100%;
        min-width: 300px;
        z-index: 99;
    }

    .mark-favorite {
        display: flex;
        padding: 12px 20px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        border: 1px solid var(--MAIN-GRADIENTS);
        background: var(--MAIN-GRADIENTS);
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
        color: var(--WHITE);
        font-family: Montserrat;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
    }

    .mobile-controller-modal {
        display: flex;
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        align-self: stretch;
        border-radius: 30px 30px 0px 0px;
        background: var(--WHITE);
        width: 100%;
        min-width: 300px;
        height: 20vh;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .controller-title {
        display: flex;
        padding: 10px 18px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        color: var(--Neutral-N100);
        font-family: Montserrat;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
    }

    .cmodal-menu {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}