@font-face {
    font-family: Poppins;
    src: url('../fonts/poppins/Poppins-Regular.ttf');
    font-display: swap;
}

@font-face {
    font-family: PoppinsBold;
    src: url('../fonts/poppins/Poppins-Bold.ttf');
    font-display: swap;
}

@font-face {
    font-family: PoppinsMedium;
    src: url('../fonts/poppins/Poppins-Medium.ttf'); 
    font-display: swap;
}

@font-face {
    font-family: Battambang;
    src: url('../fonts/battambang/Battambang-Regular.ttf'); 
    font-display: swap;
}

html {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    position:relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* header  */
#header-main {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0px;
    top: 0px;
    align-items:center;
    z-index: 10;
    width: 100%;
}

.body-bg-img {
    background-image: url('../img/bg_sandbox_vertical.png');
    background-repeat: no-repeat;
    background-size: 100% 70%;
}
.header-bg-backdrop {
    -webkit-backdrop-filter: blur(60px);
    -o-backdrop-filter: blur(60px);
    -moz-backdrop-filter: blur(60px);
    backdrop-filter: blur(60px);
    background-color: rgb(255 255 255 / 70%) !important;
}
#header-main-mobile {
    display: none;
}

#menu-item-main-container {
    display: none;
}


#header-main #header-container {
    margin: auto;
    height: 132px;
    display:flex;
}

.company-logo-wrap {
    background: #FFFFFF;
    border-radius: 8px;
    color: white;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
}

.company-logo-wrap img {
    text-align: center;
    margin: auto;
}

.company-info-main {
    display: flex;
    align-items: center;
    width: 252px;
    /* height: 104px; */
    /* background: linear-gradient(210.44deg, #0047E7 2.71%, #003FDA 46.76%, #0027B7 94.83%); */
    border-bottom-left-radius: 19px;
    border-bottom-right-radius: 19px;
    cursor: pointer;
}

.company-info-main #company-info {
    margin: 0;
    padding-top: 5px;
    display:flex;
    align-items:center;
}

#header-container #user-info {
    margin: auto;
    display:flex;
    align-items:center;
    margin-left: auto; 
    margin-right: 0;
}

#btn-login {
    width: 102px;
    height: 43px;       
    background: #2860D7;
    border: 2px solid #2860D7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

#btn-login span {
    margin: auto;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
}

#btn-register {
    width: 102px;
    height: 43px;
    background: rgba(119, 97, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#btn-register span{
    margin: auto;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #7761FF;
    cursor: pointer;
}

.company-name-wrap {
    padding-left:20px;
}

.user-name-wrap {
    padding-left:20px;
}

.user-profile-wrap img {
    border-radius: 50px;
}

.company-header-name {
    font-family: 'PoppinsBold';
    font-style: normal;
    /* font-weight: 700; */
    font-size: 16px;
    line-height: 17px;
    display: flex;
    align-items: center;
    color: #003BC2;
}

.system-name {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    color: #FFFFFF;
}

#header-container #menu-container {
    margin: auto;
    margin-left: 15px;
}

#menu-container a {
    text-decoration: none;
}

#menu-container .menu-title {
    padding-left: 20px;
}

.menu-title {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #1C1C1C;
}

.active-menu {
    color: #2860D7;
}

.user-name {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
}

#context-menu a:hover {
    text-decoration: none;
}

#user-context-menu {
    cursor: pointer;
    padding: 3px;
}

.user-name-wrap:hover .dropdown-content {
    display: block;
}

.dropdown {
    position: relative;
    display: inline-block;
}
  
  /* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background: #FFFFFF;
    border-radius: 4px;
    min-width: 184px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none !important;
    display: block;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
}
.demo-menu-wrap {
    display: inline-block;
    margin-right: -10px;
}
.demo-menu-wrap:hover .demo-dropdown-content {
    display: block;
}
.language-wrap {
    display: inline-block;
    margin-right: 15px;
}
.language-wrap:hover .lang-dropdown-content {
    display: block;
}
.demo-dropdown-content {
    display: none;
    position: absolute;
    right: 10px;
    top: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.demo-dropdown-content a {
    color: black;
    padding: 10px 20px;
    text-decoration: none !important;
    display: block;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
}

.demo-dropdown-content img, .lang-dropdown-content img{
    margin-right: 10px;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0px;
    top: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    min-width: 160px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.lang-dropdown-content a {
    color: black;
    padding: 10px 20px;
    text-decoration: none !important;
    display: block;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
}
.menu-icon-right{
    float: right;
    margin-top: 23px;
    margin-right: 30px !important;
}
.select-language-wrap {
    display: inline-block;
}
.selected-icon {
    float: right;
    margin-top: 8px;
}
.img-lang {
    width: 22px;
    margin-right: 5px;
}
.lang-menu {
    line-height: 50px;
}
.lang-context-menu {
    display: grid;
    padding-left: 50px;
}
.lang-context-menu img{
    margin-right: 10px;
}
.lang-context-menu a {
    color: #000000;
}
.text-red {
    color: #EB4D3D !important;
}
.margin-bottom10 {
    margin-bottom: 10px;
} 
/* ./ header  */

@media only screen and (max-width: 760px) {
    body {
        align-items: unset;
        overflow-x: clip;
    }
    #menu-item-main-container {
        display: none;
        backdrop-filter: blur(80px);
        -webkit-backdrop-filter: blur(80px) contrast(100%);
        position: fixed; /* Stay in place */
        z-index: 10; /* Sit on top */
        left: 0;
        top: 80px;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background: #FFFFFF;
    }
    
    #header-main {
        display: none !important;
    }

    #header-main-mobile {
        display: flex !important;
        height: 80px;
        width: 100%;
        /* background: #FFFFFF; */
        align-items: center;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 11;
    }

    #header-main-mobile #header-container {
        display: flex;
        margin: auto;
        align-items: center;
    }

    #btn-close-context-menu {
        display: none;
    }
    
    .company-logo-wrap {
        width: 37px;
        height: 36px;
    }

    .company-info-main {
        display: flex;
        align-items: center;
        width: 252px;
        height: 80px !important;
        background: none;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .company-info-main #company-info {
        margin: 0;
        padding-top: 5px;
    }

    .company-logo-wrap img {
        width: 30px !important;
    }

    .company-header-name {
        font-size: 11px;
    }

    .system-name {
        font-size: 10px;
        margin-top: 0 !important;
    }

    #header-container #context-menu-main {
        margin: auto;
        display:flex;
        align-items:center;
        margin-left: auto; 
        margin-right: 0;
        backdrop-filter: blur(14px);
    }

    #menu-item-container {
        width: 90%;
        margin: auto;
        align-items:center;
        margin-left: auto; 
        margin-right: 0;
        margin-top: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        height: 80%;
    }

    .menu-item-addjust-top {
        margin-top: 1em;
    }

    .menu-item {
        height: 75px !important;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .active-menu {
        color: #2860D7 !important;
    }

    .context-menu-name {
        font-family: 'PoppinsMedium';
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        color: #1C1C1C;
        margin-left: 10px;
    }

    .context-menu-name-active {
        font-family: 'PoppinsMedium';
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        color: #000000;
        margin-left: 10px;
    }

    #context-button-main-container {
        display: flex;
        align-items: center;
        margin-top: 20%;
    }

    #context-button-main-container #context-button-container {
        /* margin: auto; */
        display: flex;
        align-items: center;
        width: 90%;
        justify-content: center;
    }

    #btn-register {
        width: 160px !important;
        background: rgba(119, 97, 255, 0.1);
        color: #7761FF;
    }

    #btn-register span{
        color: #7761FF !important;
    }

    #btn-login {
        width: 160px !important;
    }

    .user-profile-wrap {
        border-radius: 50px !important;
    }
}