/* ----- General ----- */
*{
    transition: 0.18s ease-out;
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 8px; 
}
/* Background of track */
::-webkit-scrollbar-track {
    background: #DFD3C3; 
}
/* Color of the scrollbar */
::-webkit-scrollbar-thumb {
    background: #D0B8A8; 
    border-radius: 8px; /* Rounded corners for the scrollbar */
}

::-webkit-scrollbar-thumb:hover {
    background: #dbaf91; /* Color of the scrollbar thumb on hover */
}

/* dark mode */
.dark-mode::-webkit-scrollbar-track {
    background: #503C3C; 
}

.dark-mode::-webkit-scrollbar-thumb {
    background: #7E6363; 
}

.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #6f5353; /* Color of the scrollbar thumb on hover */
}

.plainlink{
    text-decoration: none;
    color: inherit;
}

a{
    text-decoration: none;
    color: inherit;
}

.cfs-1{
    font-size: 2rem;
}

.cfs-2{
    font-size: 1.8rem;
}

.cfs-3{
    font-size: 1.6rem;
}

.cfs-4{
    font-size: 1.4rem;
}

.cfs-5{
    font-size: 1.2rem;
}

.cfs-6{
    font-size: 1em;
}

.cfs-7{
    font-size: 0.8em;
}

@media (max-width: 1200px) {
    .cfs-1{
        font-size: 1.6rem;
    }
    
    .cfs-2{
        font-size: 1.4rem;
    }
    
    .cfs-3{
        font-size: 1.2rem;
    }
    
    .cfs-4{
        font-size: 1rem;
    }
    
    .cfs-5{
        font-size: 0.8rem;
    }
    
    .cfs-6{
        font-size: 0.6rem;
    }
    
    .cfs-7{
        font-size: 0.4rem;
    }
}

.text-justify{
    text-align: justify;
}

.gray{
    color: rgb(99, 99, 99);
}

.bright-red{
    color: #FF0000;
}

.battery-green{
    color: #4CAF50;
}

.screen-blue{
    color: #007BFF;
}

.gold{
    color: rgb(255, 196, 0);
}

.bright-purple{
    color: #9B30FF;
}

.pink{
    color: #ff00cc;
}

.orange{
    color: orange;
}

body{
    background: #F8EDE3 !important;
}

/* ----- dark mode -----*/
span, div, a, p, img, i, sup, ul, li, form{
    background: transparent !important;
}

body.dark-mode {
    background-color: #3E3232 !important;
    color: #ffffff;
}

.dark-mode input::placeholder{
    color: #B0B0B0;
}

.dark-mode .navbar-toggler, .dark-mode .plainlink{
    color: #A87C7C;
}

.dark-mode .topbar, .dark-mode .cardo-body, .dark-mode .navbar, .dark-mode .login-bg{
    background: #503C3C !important;
}

.dark-mode .tools, .dark-mode .comment {
    border-color: #c6b1b1;
    background-color: #503C3C !important;
    color: #c6b1b1;
}

.dark-mode .tools #increase-font, .dark-mode .tools #decrease-font, .dark-mode .tools #dark-mode-toggle{
    border: solid 0.15rem #c6b1b1;
    background-color: #A87C7C !important;
    color: #503C3C;
}

.dark-mode .page {
    background-color: #7E6363 !important;
}

/* ===== LANDING PAGE ===== */
.landing-slogan .h1{
    font-size: 9rem;
}

.landing-graphic{
    width: 30rem;
    height: auto;
}

.landing-graphic2{
    width: 25rem;
    height: auto;
}

.page-img{
    width: 50rem;
    height: auto;
    border: solid 0.3rem #D0B8A8;
    border-radius: 1rem;
}

@media (max-width: 576px) {
    .landing-slogan .h1{
        font-size: 4rem;
    }

    .landing-slogan .h2{
        font-size: 1.5rem;
    }

    .landing-graphic{
        width: 18rem;
    }

    .landing-graphic2{
        width: 15rem;
    }

    .about .fs-5{
        font-size: 0.8rem !important;
    }

    .page-img{
        width: 18rem;
        border-width: 0.2rem;
    }
}

/* ===== Sports Bluetooth Earphones ===== */
/* ----- Navbar ----- */
.navbar{
    font-size: 1.7em;
    background: #F8EDE3 !important;
}

.navbar img{
    width: 4.5em;
    height: auto;
}

.brand-title{
    font-size: 1.4em;
}

@media (max-width: 992px) {
    .navbar img{
        width: 3em;
    }

    .brand-title{
        font-size: 1em;
    }
}

@keyframes rotate180 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.navbar-toggler{
    border: none;
    background: transparent !important;
}

.navbar-toggler:focus{
    outline: none;
    box-shadow: none;
    color: #ff0e6f;
}

.hinters{
    border: solid 0.2em #D0B8A8;
    border-radius: 1em;
    --bs-popover-body-padding-y: .6rem;
}

.hinters .popover-body {
    color: #D0B8A8; 
}

.plainlink :hover{
    color: #FF5349;
}

/* ----- banner ----- */
.banner-img{
    width: 20em;
    height: auto;
}

.banner-md-img{
    width: 40em;
    height: auto;
}

/* ----- Introduction ----- */
.intro-item{
    border: solid 0.15em #dacfcf;
    border-radius: 2em;
}

.img-border{
    border: solid 0.25em #dacfcf;
    border-radius: 2em;
}

/* ----- Features ----- */
.feature-img{
    width: 23em;
    height: auto;
}

.bi-check-lg{
    color: #228B22;
}

/* ----- Purchase ----- */
.product-img{
    width: 23em;
    height: auto;
}

.shopee{
    border: solid 0.15em #dacfcf;
    padding: 0.5em 2em 0.5em 2em;
    transition: 0.15s;
}

.shopee svg, .shopee span{
    transition: 0.15s;
}

.shopee:hover, .shopee:hover svg, .shopee:hover span{
    background: #ffa751 !important; 
    color: rgb(144, 60, 0);
}

.whatsapp{
    border: solid 0.15em #dacfcf;
    padding: 0.5em 2em 0.5em 2em;
    transition: 0.15s;
}

.whatsapp i, .whatsapp span{
    transition: 0.15s;
}

.whatsapp:hover, .whatsapp:hover i, .whatsapp:hover span{
    background: #25D366 !important; 
    color: whitesmoke;
}

@media (max-width: 1200px) { /* Medium devices (tablets, less than 768px) */
    .intro-item {
        border: none;
    }

    .feature-img{
        width: 21em;
    }

    .product-img{
        width: 20em;
    }
}

/* ----- Footer ----- */
.promo-logo{
    width: 15em;
    height: auto;
}

.promo-tag{
    border: solid 0.15em #FFA500;
    border-radius: 2em;
    color: #FFA500;
    font-size: 1.3em;
    padding: 0.2em 0.7em;
}

@media (max-width: 768px) {
    .promo-logo{
        width: 14em;
    }

    .promo-tag{
        font-size: 1em;
    }

    .footer-margin{
        margin-top: 0.5em;
    }
}

.shopee-c, .whatsapp-c, .fb-c, .ig-c{
    border: solid 0.15em #dacfcf;
    border-radius: 20em;
    transition: 0.15s;
}

.dark-mode .shopee-c, .dark-mode .whatsapp-c, .dark-mode .fb-c, .dark-mode .ig-c{
    background-color: #7E6363 !important;
    color: white;
    border-color: #503C3C;
}

.shopee-c i, .whatsapp-c i, .fb-c i, .ig-c i{
    transition: 0.15s;
}

.shopee-c:hover, .shopee-c:hover i{
    background: #ffa751 !important;
    color: rgb(144, 60, 0);
}

.whatsapp-c:hover, .whatsapp-c:hover i{
    background: #25D366 !important;
    color: whitesmoke;
}

.fb-c:hover, .fb-c:hover i{
    background: #0866ff !important;
    color: whitesmoke;
}

.ig-c:hover, .ig-c:hover i{
    background: #FD1D1D !important; 
    color: whitesmoke;
}

.attr{
    font-size: 0.8rem;
}

.attr a{
    color: #007BFF;
}

/* ----- More Products ----- */
.more-card{
    border: solid 0.25em #dacfcf;
    border-radius: 2em;
    overflow: hidden;
    width: 18em;
    transition: all 0.2s ease-out;
}

.more-card:hover{
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-5px);
}

.more-card .promo-tag{
    font-size: 1.1em;
}

.cardo-img{
    width: 100%;
    height: auto;
}

.cardo-body{
    padding: 1.5em;
    background-color: #fff7f0 !important;
}

/* ----- Disclaimer ----- */
.disclaimer{
    background: #dcdcdc !important;
    border-radius: 2em;
}

.disclaimer-bg{
    background: #dcdcdc !important;
}

/* ===== Band 6 ===== */
/* ----- Banner ----- */
.bandbanner{
    width: 30em;
    height: auto;
}

@media (max-width: 768px) {
    .bandbanner{
        width: 18em;
    }
}

/* Back to Top Button styling */
.back-to-top i{
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    background: #dc9d9d !important;
    border-radius: 5em;
    padding: 0.2em;
    transition: 0.2s ease-out;
    color: white;
    opacity: 0.5;
}

.back-to-top i:hover{
    background: #d68383 !important;
    transform: translateY(-4px);
    opacity: 1;
}

/* ===== NOVEL SECTION ===== */

/* ----- generals ----- */
.font-1{
    font-size: 4em;
}

.font-2{
    font-size: 3.5em;
}

.font-3{
    font-size: 3em;
}

.font-4{
    font-size: 2.5em;
}

.font-5{
    font-size: 1.8em;
}

.font-6{
    font-size: 1.5em;
}

.font-7{
    font-size: 0.7em;
}

@media (max-width: 992px) {
    .font-1{
        font-size: 3em;
    }

    .font-6{
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .font-1{
        font-size: 2.6em;
    }

    .font-6{
        font-size: 1.3em;
    }
}

@media (max-width: 576px) {
    .font-1{
        font-size: 2.2em;
    }

    .font-6{
        font-size: 1.1em;
    }
}

/* ----- novel introduction ----- */
.bookcover{
    width: 25em;
    height: auto;
}

@media (max-width: 992px) {
    .bookcover{
        width: 38em;
    }
}

@media (max-width: 768px) {
    .bookcover{
        width: 40em;
    }
}

@media (max-width: 576px) {
    .bookcover{
        width: 21em;
    }
}

/* ----- chapter selection ----- */
.chapter{
    position: relative;
    padding: 0.5em 2em;
    border: solid 0.25em #c6b1b1;
    border-radius: 1em;
    overflow: hidden;
    background: #e9dfdf !important;
    transition: 0.2s ease-in-out;
}

.chapter span{
    color: #000000;
    background: transparent !important;
    position: relative;
}

.chapter:hover{
    transform: translateY(-5px);
}

/* ----- chapter content page ----- */
.page{
    background: #f7f7e8 !important;
    padding: 4em;
    width: 56rem;
    height: auto;
    box-shadow: 
        0px 6px 8px rgba(0, 0, 0, 0.15), /* Darker and more pronounced soft shadow */
        -3px 3px 5px rgba(0, 0, 0, 0.1), /* More pronounced lifted edge on the top-left */
        3px -3px 5px rgba(0, 0, 0, 0.1); /* More pronounced lifted edge on the bottom-right */
    ;
}

.page span{
    background: transparent !important;
}

.content{
    white-space: pre-line;
}

.sidebar {
    width: 26.5%;
    height: 40rem;
    position: -webkit-sticky;
    position: sticky;
    top: 3em;
}

.tools{
    border: solid 0.25em #8D493A;
    border-radius: 1.5em;
    color: #8D493A;
}

.topbar{
    padding: 0.5em;
    background: #c6b1b1 !important;
    border-radius: 0.7em;
    position: -webkit-sticky;
    position: sticky;
    top: 0.5em;
    z-index: 1000;
}

#increase-font,#decrease-font,#increase-font-m,#decrease-font-m{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.6em;

    color: #8D493A;
    padding: 0.5em;
    width: 1.8em; /* Set a specific width */
    height: 1.8em; /* Set a specific height to match the width */
    border: solid 0.1rem #8D493A;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.15s ease-out;
}

@media (max-width:1024px) {
    #increase-font-m,#decrease-font-m{
        font-size: 1.2em;
        margin-left: 0.4rem;
    }
}

#increase-font:hover,#decrease-font:hover,#increase-font-m:hover,#decrease-font-m:hover,
#dark-mode-toggle:hover,#dark-mode-toggle-m:hover{
    background: #8D493A !important;
    color: #f1f0f0;
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12), 0 3px 3px rgba(0, 0, 0, 0.16);
}

@media (max-width: 992px) {
    #increase-font:hover,#decrease-font:hover,#increase-font-m:hover,#decrease-font-m:hover,
    #dark-mode-toggle:hover,#dark-mode-toggle-m:hover{
        transform: translateY(-2px);
    }
}

#dark-mode-toggle, #dark-mode-toggle-m{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.1em;
    text-align: center;

    color: #8D493A;
    border: solid 0.1rem #8D493A;
    border-radius: 1.6em;
    width: 100%;
    margin-left: 0.6rem;
    transition: 0.15s ease-out;
}

#dark-mode-toggle-m{
    width: 50%;
}

@media (max-width: 1200px) {
    .page{
        width: 100%;
    }

    #dark-mode-toggle-m{
        font-size: 0.7em;
    }
}

@media (max-width: 576px) {
    .page{
        width: 95%;
        padding: 1.8em;
    }

    #dark-mode-toggle-m{
        font-size: 0.7em;
    }
}

.nav-btn, .home-btn{
    border: solid 0.15rem #7E6363;
    border-radius: 3em;
    padding: 0em 1.2em;
    background: transparent !important;
    color: #7E6363;
}

.home-btn{
    border-radius: 50%;
    width: 3em;
    height: 3em;
}

/* comment section */
.cmt-sec{
    border: solid 0.3rem #8D493A;
    border-radius: 1.5rem;
}

.empty-img{
    width: 18rem;
    height: auto;
}

.comment{
    background: #f8f3ef !important;
    border: solid 0.2em #DFD3C3;
    border-radius: 1rem;
}

.persona{
    width: 2em;
    height: auto;
}

.cmt-box{
    width: 100%;
    padding: 0.6em 1.2em;
    line-height: 1.5em;
    border: solid 0.18em #7E6363;
    border-radius: 2rem;
    background: transparent !important;
    color: #7E6363;
    transition: 0.3s ease-out;

    font-weight: 600;
    font-size: 1.2rem;
}

.send-btn{
    width: 2.4em;
    height: 2.4em;
    border: none;
    border-radius: 50%;
    background: #00BFFF !important;
    color: #ffffff;

    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .cmt-box{
        font-size: 0.9rem;
    }

    .send-btn, .cmt-sec .fs-4{
        font-size: 1.1rem !important;
    }
}

/* ----- SCRIBES LOGIN PAGE ----- */
.login-bg{
    background: #F0F8FF !important;
    border-radius: 2em;
}

.login-form{
    width: 30vw;
}

@media (max-width: 1200px) {
    .login-form{
        width: 80vw;
    }
}

.login-img{
    width: 35em;
    height: auto;
    border-radius: 2em;
    margin-left: 2rem;
}

.login-brand{
    width: 5em;
    height: auto;
}

.input-box{
    width: 100%;
    padding: 0.5em 0.8em;
    line-height: 1.5em;
    border: solid 0.18em #7E6363;
    border-radius: 0.6em;
    background: transparent !important;
    color: #7E6363;
    transition: 0.3s ease-out;
    font-weight: 600;
}

.input-box:focus, .cmt-box:focus{
    outline: 0;
    border-color: #ff0e6f;
}

@media (max-width: 992px) {
    .input-box{
        padding: 0.4em 0.64em;
    }
}

.sign-up{
    font-size: 0.8rem;
    color: #007BFF;
}

.login-btn{
    padding: 0.5em 0.8em;
    border: solid 0.14em #7E6363;
    border-radius: 2em;
    background: transparent !important;
    color: #7E6363;
    transition: 0.2s ease-in-out;
}

.login-btn:hover, .send-btn:hover{
    border-color: #ff0e6f;
    background: #ff0e6f !important;
    transform: translateY(-3px);
    color: white;
}

@media (max-width: 992px) {
    .login-btn{
        padding: 0.4em 0.64em;
    }
}

/* dark mode */
.dark-mode .login-btn, .dark-mode .input-box, .dark-mode .cmt-box{
    color: white;
}

/* ----- SCRIBES HOME PAGE ----- */
/* dark mode */
.dark-mode .bookshelf{
    background: #503C3C !important;
}

.dark-mode .bookshelf .cardo-body{
    background: #7E6363 !important;
}

/* light mode */
.bookshelf{
    width: 100%;
    background: #DFD3C3 !important;
    padding: 2rem 0;
}

.bookshelf .more-card{
    border-color: #D0B8A8;
}

.bookshelf .cardo-body{
    background: #f9d9bc !important;
}

/* ----- SCRIBES EDIT SUITE ----- */
/* dark mode */
.dark-mode .edit-form .input-box, .dark-mode .table-view, .dark-mode .modal-content{
    background: #503C3C !important;
}

.dark-mode .submit-btn, .dark-mode .nav-btn, .dark-mode .home-btn{
    color: #c6b1b1;
    border-color: #c6b1b1;
}

.dark-mode .modal-content{
    border-color: #7E6363;
}

/* light mode */
.bookcover-edit{
    width: 12em;
    height: auto;
}

.table-view{
    background: #DFD3C3 !important;
    border-collapse: collapse;
    border-radius: 1em;
    overflow: hidden;
    width: 100%;
}

.table-view th, .table-view td{
    padding: 0.6em 1.2em;
}

.edit-btn{
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 0.5em;
    background: #ff0e6f !important;
    color: white;
    padding: 0.3em 0.6em;
}

.edit-form textarea{
    overflow: auto;
    resize: none;
}

.edit-form textarea::-webkit-scrollbar{
    display: none;
}

.edit-form form{
    width: 70%;
}

.edit-form .input-box{
    background: #DFD3C3 !important;
}

.feather-icon{
    font-size: 5em;
}

.submit-btn, .delete-btn, .back-btn{
    border: solid 0.2rem #7E6363;
    border-radius: 3em;
    padding: 0.5em 1.5em;
    background: transparent !important;
    color: #7E6363;
}

@media (max-width: 576px) {
    .submit-btn, .delete-btn, .back-btn{
        padding: 0.3em 0.9em;
    }

    .submit-btn .fs-5, .delete-btn .fs-5, .back-btn .fs-5{
        font-size: 1rem !important;
    }
}

.delete-btn{
    border-color: #FF073A;
    color: #FF073A;
}

.back-btn{
    border-color: #0099ff;
    color: #0099ff;
}

.submit-btn:hover, .delete-btn:hover, .nav-btn:hover, .home-btn:hover{
    color: white;
    border-color: #ff0e6f;
    background: #ff0e6f !important;
}

.back-btn:hover{
    color: white;
    background: #0099ff !important;
}

.modal-content{
    background: #DFD3C3 !important;
    border: solid 0.2rem #D0B8A8;
    border-radius: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Dark background with 80% opacity */
}