/* Define the variable globally in the :root selector */
:root {
    --WHITE: #FFF;
    --BLACK: #1F1A38;
    --DARK: #000;
    --MAIN-GRADIENTS: linear-gradient(109deg, #8D5499 54.69%, #ED99BD 101.62%);
    --Primary-P50: #F4EEF5;
    --Primary-P75: #D0B9D5;
    --Primary-P200: #A071AA;
    --Primary-P500: #56335D;
    --MAIN-1: #8D5499;
    --MAIN-2: #ED99BD;
    --MAIN-3: #937EBF;
    --Gray-300: #D0D5DD;
    --Gray-700: #344054;
    --Neutral-N20: #F5F5F5;
    --Neutral-N30: #EBEBEB;
    --Neutral-N40: #DEDEDE;
    --Neutral-N50: #BFBFBF;
    --Neutral-N60: #B0B0B0;
    --Neutral-N100: #757575;
    --Neutral-N200: #666;
    --Neutral-N300: #575757;
    --Neutral-N400: #4A4A4A;
    --Electra-Black: #3C3C3C;
}


h1,
h2,
h3,
p {
    margin: 0 !important;
    padding: 0 !important;
}

/* The entire scrollbar */
body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* The track (the empty area of the scrollbar) */
body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The thumb (the draggable part of the scrollbar) */
body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover effect on the thumb */
body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar styling */
body {
    scrollbar-width: thin;
    scrollbar-color: var(--MAIN-1) var(--WHITE);
}

.header-desktop {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 2px 6.8px 0px rgba(0, 0, 0, 0.10);
}

.sidebar,
.header-mobile {
    display: none;
}

.header-container {
    display: flex;
    width: 100%;
    height: 96px;
    padding: 16px 88px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--Primary-P50);
    /* box-shadow: 0px 2px 6.8px 0px rgba(0, 0, 0, 0.10); */
    text-decoration: none;
}

.logo {
    text-decoration: none;
    display: flex;
    height: 38.544px;
    padding-right: 0.278px;
    margin-right: 20px;
    justify-content: center;
    align-items: center;
    gap: 11.41px;
}

.logo-text {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 19.161px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.nav-list {
    display: flex;
    gap: 16px;
    padding-left: 0px;
}

.nav-list li {
    list-style: none;
}

.nav-list a {
    color: #4A4A4A;
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    text-decoration: none;
}

.nav-list a.active {
    border-radius: 8px;
    border: 1px solid #A071AA;
    background: #A071AA;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    color: var(--WHITE);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.start-writing {
    color: var(--WHITE) !important;
    border: 1px solid var(--MAIN-GRADIENTS);
    background: var(--MAIN-GRADIENTS) !important;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    padding: 8px 14px;
}

.start-writing a img {
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
}

/* DROPDOWN MENU */
.dropdown-content {
    display: grid;
    position: absolute;
    width: 250px;
    border-radius: 20px;
    background: var(--Primary-P50);
    padding: 23px 18px;
    box-shadow: 0px -8px 19.3px 0px rgba(0, 0, 0, 0.10);
    transform: translate3d(-70px, 40px, 0px) scale(0.95);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-content.show {
    transform: translate3d(-70px, 20px, 0px) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.nav-browse-book-icon.fi-rotate-up::before {
    content: "\f107";
}

.nav-browse-book-icon {
    transition: transform 0.2s ease;
}

.nav-browse-book-icon.rotated {
    transform: rotate(180deg);
}

.dropdown-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 23px 0px;
    gap: 10px;
    align-self: stretch;
}

.dropdown-content ul li:nth-child(odd) {
    justify-self: start;
}

.dropdown-content ul li:nth-child(even) {
    justify-self: end;
}

.dropdown-content .dropdown-header {
    color: #000;
    align-self: stretch;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.dropdown-content ul li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.dropdown-content ul li a {
    color: #4A4A4A !important;
    display: flex;
    padding: 8px 0px !important;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    text-decoration: none;
}

/* END OF DROPDOW MENU */

/* LANGUAGE DROPDOWN */
.lang-dropcontent {
    display: flex;
    position: absolute;
    width: 168px;
    flex-direction: column;
    border-radius: 20px;
    background: var(--Primary-P50);
    padding: 20px 20px;
    align-items: center;
    gap: 10px;
    box-shadow: 0px -8px 19.3px 0px rgba(0, 0, 0, 0.10);
    transform: translate3d(-70px, 40px, 0px) scale(0.95);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-dropcontent li {
    list-style: none;
}

.lang-dropcontent li a {
    color: #4A4A4A !important;
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    text-decoration: none;
}

.lang-dropcontent.show {
    transform: translate3d(-70px, 20px, 0px) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.nav-lang-icon.fi-rotate-up::before {
    content: "\f107";
}

.nav-lang-icon {
    transition: transform 0.2s ease;
}

.nav-lang-icon.rotated {
    transform: rotate(180deg);
}

/* END OF LANGUAGE DROPDOWN */

/* HERO SECTION */
.hero-content {
    display: flex;
    /* width: 1440px; */
    padding: 60px 100px;
    justify-content: space-between;
    align-items: center;
}

.slider-1 {
    background: url(../images/hero/hero1.png);
    border-radius: 30px;
    width: 907px;
    height: 462px;
    flex-shrink: 0;
}

.slider-content {
    display: flex;
    width: 905px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    position: absolute;
    top: 370px;
    padding: 30px 40px;
}

.slider-content a {
    color: var(--WHITE) !important;
    font-family: Montserrat;
    font-size: 43px;
    font-style: normal;
    font-weight: 700;
    line-height: 117.384%;
    width: 600px;
    height: 92px;
    text-decoration: none;
}

.slider-2 {
    background-image: url(../images/hero/hero4.png);
    width: 343px;
    height: 462px;
    flex-shrink: 0;
}

.genre-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.genre-buttons button {
    display: flex;
    padding: 6px 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Neutral-N40);
    background: rgba(208, 185, 213, 0.35);
    backdrop-filter: blur(2px);
    color: var(--WHITE);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

/* Dots container */
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 0 2px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    background: var(--Primary-P50);
}

.dot.active {
    background-color: #333;
    width: 25px;
    height: 14px;
    border-radius: 400px;
    background: var(--MAIN-1);
}

.slider-btn {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn button {
    display: flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--WHITE);
    width: 40px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    background-color: transparent;
    color: var(--WHITE);
}

/* END OF HERO SECTION */

/* NOVEL HOME SECTION */
.novel-home {
    display: flex;
    padding: 101.5px 112px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 100px;
    background: var(--Primary-P50);
}

.novel-home-content {
    display: flex;
    width: 1216px;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.novel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.novel-header h3 {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    text-decoration: none;
}

.view-more {
    display: flex;
    padding: 10px 18px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--MAIN-1);
    background: var(--WHITE);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    color: var(--MAIN-1);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.novel-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.novel-list .novel-img:last-child {
    display: none;
}

.novel-img {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
    text-decoration: none;
}

.novel-img img {
    width: 219px;
    height: 349.468px;
    flex-shrink: 0;
    aspect-ratio: 219.00/349.47;
    border-radius: 30px;
}

.novel-list h3 {
    text-decoration: none;
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
}

.novel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.novel-subtext {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 90%;
    color: var(--Neutral-N100);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.novel-subtext p {
    margin-top: 0;
    margin-bottom: 0;
}

/* END OF NOVEL HOME SECTION */

/* GENRE SECTION */
.genre-home {
    display: flex;
    padding: 81px 79px 106px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.genre-home-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 49px;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.genre-header h3 {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.genre-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

.genre-list .genre-card:last-child {
    display: none;
}

.genre-img-1 {
    background-image: url(../images/genre/1.png);
    width: 210px;
    height: 95px;
    border-radius: 20px;
    flex-shrink: 0;
    aspect-ratio: 210.00/315.33;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.genre-img-2 {
    background-image: url(../images/genre/2.png);
    width: 210px;
    height: 95px;
    border-radius: 20px;
    flex-shrink: 0;
    aspect-ratio: 210.00/315.33;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.genre-img-3 {
    background-image: url(../images/genre/3.png);
    width: 210px;
    height: 95px;
    border-radius: 20px;
    flex-shrink: 0;
    aspect-ratio: 210.00/315.33;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.genre-img-4 {
    background-image: url(../images/genre/4.png);
    width: 210px;
    height: 95px;
    border-radius: 20px;
    flex-shrink: 0;
    aspect-ratio: 210.00/315.33;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.genre-img-5 {
    background-image: url(../images/genre/5.png);
    width: 210px;
    height: 95px;
    border-radius: 20px;
    flex-shrink: 0;
    aspect-ratio: 210.00/315.33;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.genre-list a {
    color: var(--WHITE) !important;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

/* END OF GENRE SECTION */

/* CATEGORY HOME 2 */
.category-home-2 {
    display: flex;
    padding: 101.5px 112px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 100px;
}

.cat-home-content {
    display: flex;
    width: 1216px;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.cat-home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.cat-home-header h3 {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

/* END OF CATEGORY HOME 2 */


/* TOP RANKING */
.top-ranking {
    display: flex;
    padding: 20px 112px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 100px;
}

.top-ranking-content {
    display: flex;
    width: 1216px;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.top-ranking-list {
    display: flex;
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 80px;
    align-self: stretch;
    justify-content: space-between;
}

.top-ranking-list li {
    list-style: none;
}

.top-ranking-list ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    align-self: stretch;
}

.top-ranking-list ul li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.top-ranking-list ul a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.top-ranking-list img {
    width: 87.55px;
    height: 139.707px;
    flex-shrink: 0;
    aspect-ratio: 87.55/139.71;
    border-radius: 10px;
}

.rank-text-1 {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rank-text-1 span {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
}

.rank-text-1 a {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    margin: 0;
}

.rank-text-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    margin-left: 30px;
}

.rank-text-btn {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    background: var(--Primary-P50);
    color: var(--Neutral-N300);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.rank-text-2 p span {
    color: var(--Neutral-N300);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

/* END OF TOP RANKING */

/* SHARE STORY */
.share-story {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 120px;
}

.share-story-bg {
    background-image: url(../images/bg-share-story.png);
    background-repeat: no-repeat;
    width: 100%;
    height: 418px;
    border-radius: 44px;
}

.share-story-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 58px 32px 58px 547px;
    justify-content: flex-end;
    gap: 10px;
}

.share-story-text h3 {
    color: var(--WHITE);
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 44px;
    letter-spacing: -0.72px;
    width: 663.198px;
}

.share-story-text h4 {
    color: var(--WHITE);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    align-self: stretch;
    margin-top: 15px;
}

.share-story-text p {
    color: var(--WHITE);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    align-self: stretch;
    margin-top: -8px;
}

.start-writing-1 {
    text-decoration: none;
    display: flex;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--MAIN-1);
    background: var(--WHITE);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    color: var(--MAIN-1);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-top: 25px;
    width: 215px;
    height: 48px;
}

/* END OF SHARE STORY */

/* FOOTER */
.footer {
    height: 500px;
    align-self: stretch;
    padding: 40px;
    border-radius: 80px 80px 0px 0px;
    background: var(--BLACK);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 80px;
    background: url(../images/bg-footer.png);
    position: relative;
    top: 80px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.footer-text-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.footer-text-1 div {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-text-1 .div-1 a {
    color: var(--WHITE);
    text-align: justify;
    text-decoration: none;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.start-writing-footer {
    display: flex;
    padding: 16px 28px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    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: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    text-decoration: none;
}

.footer-text-1 .div-2 a {
    text-decoration: none;
    color: var(--WHITE);
    text-align: justify;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.footer-text-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.footer-text-2 .div-1 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-text-2 .div-2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-text-2 .div-2 a img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.footer-text-2 .div-2 a:last-of-type img {
    /* width: 30px;
    height: 30px; */
    padding: 5px;
}

.footer-text-2 .div-1 span {
    color: var(--WHITE);
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

/* END OF FOOTER */

/* SIGNUP MODAL */
.signup-modal {
    background-image: url(../images/bg-modal-1.png);
    display: none;
    position: fixed;
    z-index: 9999;
    left: 50%;
    /* Center horizontally */
    top: 50%;
    /* Center vertically */
    transform: translate(-50%, -50%);
    /* Ensure perfect centering */

    width: 90%;
    /* Make width responsive */
    max-width: 511px;
    /* Maximum width */
    min-width: 320px;
    /* Minimum width for smaller screens */

    height: auto;
    /* Let height adjust based on content */
    max-height: 85vh;
    /* Max height to avoid overflow */
    border-radius: 20px;
    background-color: #FFF;
    /* Add some padding inside the modal */
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.signup-modal-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 20px;
    padding: 11px 15px;
}

.signup-modal-header img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Modal Content */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal Body */
.signup-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    padding: 50px 90px;
}

/* Logo image */
.signup-modal-content img {
    width: 76.078px;
    height: 61.735px;
}

/* First section with logo and buttons */
.signup-modal-content .first {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    align-self: stretch;
}

/* Logo styles */
.signup-modal-content .first .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.signup-modal-content .first .logo h3 {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

/* Buttons */
.signup-modal-content .first .buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.signup-modal-content .first .buttons button {
    display: flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    font-family: Inter;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.signup-modal-content .first .buttons .btn-1 {
    border-radius: 8px;
    border: 1px solid var(--Gray-300);
    background: var(--WHITE);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.signup-modal-content .first .buttons .btn-2 {
    color: var(--WHITE);
    border-radius: 8px;
    border: 1px solid var(--Gray-300);
    background: var(--BLACK);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

/* Button icon sizes */
.signup-modal-content .first .buttons img {
    width: 24px;
    height: 24px;
}

/* Last section with text */
.signup-modal-content .last p {
    color: #000;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.signup-modal-content .last p span a {
    cursor: pointer;
    color: var(--MAIN-1);
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: underline;
}

/* END OF SIGNUP MODAL */

/* Mobile and Small Screen Adjustments */
@media (max-width: 768px) {
    .signup-modal {
        width: 95%;
        /* Take up more width on smaller screens */
        max-width: 450px;
        /* Set max width */
        padding: 15px;
        /* Reduce padding */
    }

    .modal-content {
        padding: 20px;
        /* Reduce content padding */
    }

    .signup-modal-content {
        gap: 20px;
        /* Reduce gap for mobile */
    }

    .signup-modal-content img {
        width: 60px;
        /* Smaller logo on mobile */
        height: auto;
    }

    .signup-modal-content .first .logo h3 {
        font-size: 18px;
        /* Smaller font size */
    }

    .signup-modal-content .first .buttons button {
        font-size: 14px;
        /* Smaller button text */
        padding: 8px 12px;
        /* Smaller padding */
    }

    .signup-modal-content .last p {
        font-size: 10px;
        /* Smaller font size for text */
    }
}

@media (max-width: 480px) {
    .signup-modal {
        width: 90%;
        /* Full width for very small screens */
        max-width: 100%;
        /* No maximum width */
        padding: 10px;
        /* Even smaller padding */
    }

    .signup-modal-header {
        padding: 8px 10px;
        /* Reduce padding for smaller screens */
    }

    .signup-modal-content {
        gap: 10px;
        padding: 20px 10px;
    }

    .signup-modal-content .first .logo h3 {
        font-size: 16px;
        /* Reduce title font size */
    }
}


/* END OF SIGNUP MODAL */


/* DELETE MODAL */
.delete-modal {
    background-image: url(../images/bg-modal-1.png);
    background-size: cover;
    background-position: center;
    display: none;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(80% - 40px);
    max-width: 500px;
    min-width: 300px;
    height: auto;
    max-height: 80vh;
    padding: 20px;
    border-radius: 20px;
    background-color: #FFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.delete-modal-content img {
    width: 76.078px;
    height: 61.735px;
}

.delete-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
    padding: 41px;
}

.delete-modal-content .header {
    display: flex;
    width: 264px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.delete-modal-content .header h3 {
    color: var(--BLACK);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}

.delete-modal-content .buttons {
    display: flex;
    align-items: center;
    gap: 17px;
    justify-content: center;
    width: 299px;
}

.delete-modal-content .buttons button {
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.delete-modal-content .buttons .btn-1 {
    color: var(--Neutral-N400);
    border-radius: 8px;
    border: 1px solid var(--Neutral-N40);
    background: var(--WHITE);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.delete-modal-content .buttons .btn-2 {
    color: var(--WHITE);
    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);
}

/* END OF DELETE MODAL */

/* MODAL BLUR */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(37, 34, 34, 0.57);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 9999;
}

.modal-overlay.show {
    display: block;
}

/* END OF MODAL BLUR */


/* MOBILE RESPONSIVE  */

@media only screen and (max-width: 1122px) {
    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0px 2px 6.8px 0px rgba(0, 0, 0, 0.10);
    }

    .header-container {
        display: flex;
        width: 100%;
        height: 100px;
        padding: 38.5px 15px 13.5px 15px;
        background: var(--Primary-P50);
        /* box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15y); */
    }

    .nav-list {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        /* gap: 207.597px; */
    }

    .nav-list .logo {
        display: flex;
        width: 154.403px;
        height: 31.793px;
        justify-content: center;
        align-items: center;
        gap: 9.412px;
    }

    .nav-list .logo span {
        color: var(--BLACK);
        font-family: Montserrat;
        font-size: 15.805px;
        font-style: normal;
        font-weight: 800;
        line-height: normal;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 48px;
        height: 48px;
        padding: 9.675px;
        justify-content: center;
        align-items: center;
        border-radius: 88.34px;
        background: var(--MAIN-1);
    }

    .mobile-menu-toggle img {
        width: 28.651px;
        height: 28.651px;
        flex-shrink: 0;
    }

    /* MOBILE SIDEBAR */

    .sidebar-show {
        overflow: hidden;
    }

    .sidebar.show {
        transform: translate(0);
        overflow-y: auto;
    }

    .sidebar {
        height: 100%;
        width: 0;
        position: fixed;
        top: 0;
        right: 0;
        background-color: var(--Primary-P500);
        overflow-x: hidden;
        transition: 0.3s;
        z-index: 1000;
        flex-direction: column;
        gap: 50px;
        display: flex;
        box-sizing: border-box;
    }

    .close-btn {
        display: flex;
        width: 100%;
        height: 100px;
        padding: 39px 15px 13px 377px;
        justify-content: flex-end;
        align-items: center;
        flex-shrink: 0;
        position: relative;
        right: 30px;
    }

    .close-sidebar {
        display: flex;
        width: 48px;
        height: 48px;
        padding: 9.675px 9.676px 9.675px 9.674px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        border-radius: 88.34px;
        background: var(--Neutral-N30);
        cursor: pointer;
    }

    .close-sidebar img {
        width: 28.651px;
        height: 28.651px;
        flex-shrink: 0;
    }

    .menu-list {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        padding: 30px;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .menu-links a {
        color: var(--WHITE) !important;
        font-family: Montserrat;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 28px;
        display: flex;
        padding: 16px 28px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .menu-links a.active {
        text-decoration: none;
        border-radius: 8px;
        border: 1px solid var(--Primary-P200);
        background: var(--Primary-P200);
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    }

    .element-wrapper {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .element-wrapper a {
        padding: 14px !important;
    }

    .menu-start-writing {
        display: flex;
        width: 95%;
        padding: 16px 28px;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex: 1 0 0;
        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, #FFF);
        font-family: Montserrat;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 28px;
        text-decoration: none;
    }

    .menu-login {
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--WHITE);
        font-family: Montserrat;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
    }

    /* END OF MOBILE SIDEBAR */

    .hero-content {
        display: flex;
        width: 100%;
        padding: 20px 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 19.159px;
        flex-shrink: 0;
    }

    .slider-1 {
        background: url(../images/hero/hero1.png);
        border-radius: 30px;
        width: 100%;
        height: 462px;
        flex-shrink: 0;
    }

    .slider-2 {
        display: none;
    }

    .slider-content {
        display: flex;
        width: 95%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 15px;
        top: 340px;
    }

    .slider-content a {
        color: var(--WHITE);
        font-family: Montserrat;
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 117.384%;
        width: 300px;
    }

    .genre-buttons {
        gap: 12px;
    }

    .genre-buttons button {
        padding: 5px;
        font-size: 11px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 21px;
        height: 10px;
    }

    .slider-btn button {
        border-radius: 5px;
        width: 35px;
    }

    .slider-btn button i {
        font-size: 10px;
    }

    .novel-home {
        display: flex;
        padding: 24px 15px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7.813px;
        align-self: stretch;
        border-radius: 30px;
    }

    .novel-home-content {
        width: 100%;
        gap: 48px;
    }

    .view-more {
        display: flex;
        padding: 8px 14px;
        gap: 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .novel-header h3 {
        font-size: 20px;
    }

    .novel-list {
        gap: 23px 16px;
        flex-wrap: wrap;
        justify-content: none;
    }

    .novel-list .novel-img:last-child {
        display: flex;
    }

    .novel-list h3 {
        font-size: 11px;
        line-height: 17px;
    }

    .novel-img {
        gap: 16px;
        width: 30%;
        align-items: center;
    }

    .novel-img img {
        width: 205px;
        height: 279.898px;
        flex-shrink: 0;
        aspect-ratio: 115.27/189.90;
    }

    .novel-text {
        gap: 9px;
        align-self: unset;
    }

    .novel-subtext {
        font-size: 9.152px;
        font-style: normal;
        font-weight: 500;
        line-height: 13.728px;
    }

    .genre-home {
        padding: 50px 15px;
    }

    .genre-header h3 {
        font-size: 20px;
    }

    .genre-list {
        row-gap: 16px !important;
    }

    .genre-list a {
        font-size: 12px;
        line-height: 18px;
    }

    .genre-list .genre-card {
        width: 250px;
        height: 110px;
        border-radius: 10px;
    }

    .genre-list .genre-card:last-child {
        display: flex;
    }

    .cat-home-content {
        width: 100%;
    }

    .cat-home-header h3 {
        font-size: 20px;
        line-height: 30px;
    }

    .category-home-2 {
        padding: 50px 15px;
    }

    .top-ranking {
        padding: 50px 15px;
    }

    .top-ranking-content {
        width: 100%;
    }

    .top-ranking-list {
        flex-direction: row;
        gap: 16px;
    }

    .top-ranking-list ul {
        padding: 0;
    }

    .rank-text-1 {
        gap: 10px;
    }

    .rank-text-1 span,
    .rank-text-1 a {
        font-size: 16px;
        line-height: 24px;
    }

    .rank-text-btn {
        padding: 2px 8px;
        font-size: 12px;
        line-height: 20px;
    }

    .rank-text-2 p i,
    .rank-text-2 p span {
        font-size: 12px;
        line-height: 20px;
    }

    .share-story {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 40px 20px;
    }

    .share-story-bg {
        display: flex;
        justify-content: center;
    }

    .share-story-text {
        width: 455px;
        padding: 50px 20px 40px 20px;
    }

    .share-story-text h3 {
        font-size: 33px;
        line-height: 32px;
        width: auto;
    }

    .share-story-text h4 {
        font-size: 13px;
        line-height: 17px;
    }

    .share-story-text p {
        font-size: 12px;
        line-height: 17px;
    }

    .footer {
        display: flex;
        height: auto;
        padding: 78.619px 49px 61.058px 49px;
        border-radius: 30px 30px 0px 0px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        align-self: stretch;
    }

    .footer-content {
        width: 100%;
        position: unset;
        background: unset;
    }

    .footer-logo {
        width: 273px;
    }

    .footer-text-1 div {
        flex-direction: column;
    }

    .footer-text-2 {
        flex-direction: column;
        gap: 40px
    }

    .footer-text-2 .div-1 {
        order: 2;
    }

    .footer-text-2 .div-2 {
        order: 1;
    }

    .start-writing-footer {
        width: 211px;
        height: 60px;
    }
}

@media only screen and (max-width: 800px) {
    .top-ranking-list {
        flex-direction: column;
        gap: 16px;
    }
}

@media only screen and (max-width: 620px) {

    .novel-img img {
        width: 115.27px;
        height: 189.898px;
        flex-shrink: 0;
        aspect-ratio: 115.27/189.90;
        border-radius: 10px;
    }

    .genre-list .genre-card {
        width: 111px;
        height: 57px;
        border-radius: 10px;
    }

    .share-story-bg {
        background-image: url(../images/bg-mobile-share-story.png);
        background-repeat: no-repeat;
        width: 380px;
        height: 417px;
        border-radius: 44px;
    }


    /* DELETE MODAL */
    .delete-modal {
        width: calc(100% - 20px);
        min-width: 250px;
        padding: 30px;
        max-height: 70vh;
    }

    .delete-modal-content .buttons {
        width: 100%;
        flex-direction: column;
    }

    .delete-modal-content .buttons button {
        width: 100%;
        padding: 10px 18px;
    }

    /* END OF DELETE MODAL */
}

@media only screen and (max-width: 380px) {
    .share-story-bg {
        width: 340px;
    }
}


@media only screen and (max-width: 370px) {
    .novel-img img {
        width: 100px;
        height: 160px;
    }
}

/* END OF MOBILE RESPONSIVE */