/* ------------------------------------------------------------------------------
Theme Setting
-------------------------------------------------------------------------------*/

:root {
    --primary-theme-color: #2916da;
    --secondary-theme-color: #5728f1;
    --primary-hover-theme-color: #20167b;  
    --highlight-theme-color: #110964;
    --default-background-color: #0f012f;
    --inactive-color: #eeedf7;
    --default-font-color: #ffffff;
    --secondary-font-color: #bababa;
}



/* ------------------------------------------------------------------------------
Font Setting
-------------------------------------------------------------------------------*/

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-UltraLight.ttf");
    font-weight: 100;
    font-style: thin;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-UltraLight.ttf");
    font-weight: 200;
    font-style: light;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Light.ttf");
    font-weight: 300;
    font-style: light;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Thin.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Regular.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Medium.ttf");
    font-weight: 600;
    font-style: medium;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Bold.ttf");
    font-weight: 700;
    font-style: bold;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-ExtraBold.ttf");
    font-weight: 800;
    font-style: bold;
}

@font-face {
    font-family: "Gilroy";
    src: url("/font/gilroy/Gilroy-Black.ttf");
    font-weight: 900;
    font-style: black;
}



/* ------------------------------------------------------------------------------
General Styling
-------------------------------------------------------------------------------*/
a{
    text-decoration: none !important;
}
.back-btn.hide, .question-btn.hide{
    opacity: 0 !important;
}
p,
h1,
span,
h2,
h3,
h4,
h5,
h6,
a,
li,
ul,
html,
body,
b,
label {
    font-family: "Gilroy", "微软雅黑", sans-serif !important;
}
.btn:disabled{
    opacity: 0.15 !important;
}
input{
    font-weight: 600 !important;
}
.btn{
    transition: 0.4s all !important ;
}

.btn-link{
    text-decoration: none !important;
    font-weight: 700 !important;
    color: var(--highlight-theme-color) !important;
}
.empty-container{
    padding-left: 8% !important;
    padding-right: 8% !important;
    margin-bottom: 0 !important;
}
.container{
    max-width: 1000px !important;
    padding-left: 6% !important;
    padding-right: 6% !important;
}

h2{
    font-weight: 700 !important;
}

h3{
    font-weight: 700 !important;
}

p{
    font-weight: 500 !important;
    color: var(--secondary-font-color);
    font-size: 0.9em !important;
}

.btn-primary{
    background-color: var(--primary-theme-color) !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 12px !important;
}

.btn-secondary{
    background-color: var(--inactive-color) !important;
    color: var(--highlight-theme-color) !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 12px !important;
}

.btn-primary:hover{
    background-color: var(--primary-hover-theme-color) !important;
}



.language-select {
    background: #2f1c50 !important;
    border: none !important;
    color: #b3a0d5 !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
	font-size: 0.8em !important;
    height: 35px !important;
    min-width: 140px;
    line-height: 33px !important;
	padding-top:0 !important;
}
.language-select img {
    width: 20px !important;
    margin-right: 10px !important;
}

.swal-title{
    font-size: 22px;
    font-weight: 700;
    color: black;
}

.swal-text{
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
    color: black;
    font-weight: 500;
}
.swal-footer{
    text-align: center;
}
.swal-button{
    border-radius: 35px;
    background: var(--primary-theme-color);
}



.top-nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    margin-bottom: 2em;
}


.top-nav b{
    font-size: 1.05em;
    font-weight: 700;
}

.top-nav i{
    font-size: 1.4em;
}

.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--default-background-color);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader img{
    width: 250px;
}

.order-btn{
    border: 1px solid #dadada !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 500 !important;
    border-radius: 12px;
    font-size: 0.9em !important;
    color: gray !important;
}

.back-btn{
    text-decoration: none !important;
    color: black !important;
    padding-left: 0 !important;
    margin-left: -5px;
    font-size: 1.2em !important;
}


.modal-header, .modal-footer{
    border: none !important;
}

#underDevelopment .modal-body{
    text-align: center;
}

#underDevelopment h4{
    font-size: 1em;
    font-weight: 700;
    margin-top: 1em;
    margin-bottom: 2em;
}

#topNavSection{
    padding-top: 2em;
    background-color: #0f012f;
}
#topNav{
    display: flex;
    position: relative;
    align-items: center;
}
#topNavSetting{
    position: absolute;

}

#profileIcon{
    max-width: 180px;
}
#profileIcon img{
    width: 100%;
}


#profileDetail h2{
    font-size: 1.3em;
    color: white;
    margin: 0;
}
#profileDetail p{
    font-size: 0.9em !important;
    opacity: 0.9;
    padding-right: 10px;
    margin-bottom: 0;
}
#profileDetailIconSection{
    margin-top: 1em;
    display: flex;
    align-items: center;
    gap: 2em;
    margin-bottom: 3em;
}

body{
    background: linear-gradient(173deg, #1c0a46, #0e002c);
    min-height: 100vh;
}


.profile-icon-box{
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.4s all;
}
.profile-icon-box:hover{
    opacity: 0.7;
    transform: rotate(-4deg);
}


.profile-icon{
    width: 25px;
    height: 25px;
    background: #1c0c39;
    border-radius: 100%;
    display: flex;
    color: #836ea6;
    justify-content: center;
    align-items: center;
}

.profile-icon-box.active .profile-icon{
    color: #d205ae;
    background: #571055;
}
#profileDetail  .profile-icon-box.active p{
    color: #e929c6;
}
#profileDetail .profile-icon-box p{
    font-weight: 600 !important;
    color:#8872ac ;
    font-size: 1em !important;
}
#topNavSetting{
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    display: flex;
    gap: 2em;
    align-items: center;
}

#languageSection{
    position: relative;
}

#languageSection i{
    color: #b3a0d5;
    position: absolute;
    top: 6px;
    right: 10px;
}

.notificationSection img{
    width: 25px;
}
.notificationSection{
    position: relative;
}
.notificationSection p{
    position: absolute;
    top: 0.4px;
    right: 3.5px;
    font-size: 8px !important;
    font-weight: 800;
    font-weight: 900 !important;
    color: white !important;
}

#logout{
    color: #63419f;
    font-size: 1.5em;
}
#profile{
    color: #63419f;
    font-size: 1.5em;
}


#footer{
    position: fixed;
    width: 80px;
    bottom: 25px;
    right: 30px;
}
#footer img{
    width: 100%;
}

.side-nav-item{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #3a215d;
    border-radius: 100%;
    color: #9976ca;
    font-size: 1.5em;
}

.side-nav-item.active{
    background: linear-gradient(200deg, #fa4cf6, #ff31a3);
    color: white;
    box-shadow: 0px 2px 25px #b921c2;
}

#sideNavSection{
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    width: 180px;
    gap: 1em;
}

#pageContentSection{
    margin-top: 3em;
    display: flex;
}

.page-title{
    color: white;
    font-size: 1.6em !important;
    margin-bottom: 0.8em;
}

#pageContent{
    padding-bottom: 10vh;
    width: 100%;
    max-width: calc(100% - 180px);
}


.swal-modal{
    background: #2d1a59 !important;
    border-radius: 35px !important;
    padding: 2% !important; 
}

.swal-icon--warning, .swal-icon--warning__body, .swal-icon--warning__dot {
    border-color: #dc4242 !important;

}
.swal-icon--warning__body, .swal-icon--warning__dot{
    background-color:  #dc4242 !important;
}

.swal-text{
    color: white !important;
    opacity: 1 !important;
    font-size: 15px !important;
}

.swal-button{
    background: #3a215d !important;
    color: #9976ca !important;
    border: none !important;
    box-shadow: none !important;
    padding: 15px 35px !important;
}

.swal-icon--success:after, .swal-icon--success:before{
    background: #2d1a59 !important;
}
.swal-icon--success__hide-corners{
    background-color:  #2d1a59 !important;
}

.language-select, .notificationSection, #logout, .side-nav-item{
    cursor: pointer;
    transition: 0.4s all;
}
.language-select:hover{
    opacity: 0.8;
}

.notificationSection:hover, #logout:hover{
    transform: scale(0.95) rotate(-15deg);
}

.side-nav-item:hover{
    transform: rotate(335deg);
    opacity: 0.8;
}


.desktop{
    display: block;
}
.mobile{
    display: none;
}


@media screen and (max-width: 750px) {
    #topNavSection{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding-top: 1.5em;
        z-index: 1000;
        transition: 0.6s transform ease-out;
        transform: translateX(-120%);
    }
    #topNavSection.active{
        transform: translateX(0);
    }
    .desktop{
        display: none;
    }
    .mobile{
        display: block;
    }
    #topNav{
        flex-direction: column;
        padding-top: 5vh;
        min-height: 94vh;
    }
    #profileIcon{
        max-width: 250px;
    }
    #profileIcon2{
            align-self: center !important;
            margin-bottom: 20px;
            margin-right: 0 !important;
    }
    #profileDetail{
        text-align: center;
        margin-top: -20px;
        width: 100%;
    }
    #footer{
        display: none;
    }
    #footer.active{
        z-index: 1001;
        display: block;
        animation: fadeIn 1s forwards; 
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    #profileDetailIconSection a{
        width: 100%;
        padding: 10px 15px;
        background: #1f0f42;
        border-radius: 15px;
    }
   #profileDetailIconSection{
        margin-top: 2em;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 1em;
   }
   .profile-icon-box{
    gap: 1em !important;
   }
   #profileDetail .profile-icon-box p{
    font-size: 1.2em !important;
   }
   #topNavSetting{
        left: 0;
        justify-content: space-between;
   }
   .profile-icon{
    border-radius: 14px;
    width: 50px;
    height: 50px;   
   }
   #mobileLogout{
    position: absolute;
    bottom: 0;
    left:0;
    color: #a084d2;
   }
   .btn-close-nav{
    font-size: 1.3em !important;
    color: white !important;
    box-shadow: none !important;
    order: 2;
    border: none !important;
   }

   #mobileTopNavSection{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
   }
   #toggle-button{
        background: none;
        box-shadow: none;
        border: none;
        color: white;
        font-size: 1.4em;
   }
   #sideNavSection{
    position: fixed;
    bottom: -1px;
    flex-direction: row;
    left: 0;
    width: 100vw;
    height: 75px;
    padding: 0 15px !important;
    justify-content: space-around;
    align-items: center;
    background: #0c0225;
   }
   .side-nav-item{
    background: transparent;
   }
   #pageContent{
    max-width: 100%;
   }
   .profile-icon  i{
     font-size: 1.5em ;
   }
   #top3{
    width: 100%;
   }
   .rank-number{
    margin-right: 1em !important;
   }
}

#profileIcon2 {
    align-self: flex-start;
    width: 120px;
    height: 120px;
    overflow: hidden;        /* Hide overflow if image is bigger */
    border-radius: 100%;      /* optional rounded corners */
    display: flex;
    margin-right: 20px;
    align-items: center;     /* vertically center image */
    justify-content: center; /* horizontally center image */
}

#profileIcon2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;     /* scale image to fit without cropping */
}