#header {
    display: block;
    position: fixed;
    z-index: 99;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(235, 235, 235, 0.2);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.navbar .navbar__item--right {
    gap: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.navbar {
    justify-content: space-between;
    display: flex;
    align-items: center;
}
.navbar__menu{
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar__menu > ul > li {
    font-weight: 600;
    position: relative;
    padding: 2.5rem 0;
    color: var(--primary-font);
}
.navbar__menulists{
    display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1rem;
}
.navbar__menu > ul > li > a {
    color: snow;
    font-size: 1.8rem;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
.navbar__menu ul.navbar__menulists ul{
    transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    position: absolute;
    background-color: rgb(20 20 31 / 97%) !important;
    box-shadow: 0.6rem 1rem 21px 5px rgb(112 112 112 / 13%);
    border-radius: 0.3rem;
    top: 100%;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
    z-index: 1000;
    width: 25rem;
    visibility: hidden;
    opacity: 0;
}
.navbar__menu > ul > li:hover > ul{
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
}
.navbar__menu ul.navbar__menulists ul li{
    width: 100%;
    padding: 1rem;
    position: relative;
    transition: all 0.5s ease;
}
.navbar__menu > ul > li:hover > a {
    background: linear-gradient(178.56deg, #180ca1 5.32%, #4b50e6 94.32%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar__menu > ul > li:hover > .navbar__menulink > i {
    transform: rotate(180deg);
    background: linear-gradient(178.56deg, #180ca1 5.32%, #4b50e6 94.32%);
    -webkit-background-clip: text;
}
.navbar__menu > ul > li > ul > li > a {
    color: #ebebeba3;
    transition: all 0.3s ease;
}
.navbar__menu > ul > li > ul > li:hover > a {
    color: var(--blue);
    transform: translateX(0.5rem);
}
.navbar__menu
    > ul
    > li
    > ul
    > li{
    background: linear-gradient(to right, #5142fc3b 50%, transparent 50%);
    display: block;
    background-size: 200% 100%;
    background-position: right bottom;
}
.navbar__menu
    > ul
    > li
    > ul
    > li:hover {
        cursor: pointer;
        position: relative;
        background-position: left bottom;
        border-radius: inherit;
}

.navbar--right__wallet {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.navbar--right__wallet a:first-child {
    font-size: 1.5rem;
    color: snow;
    padding: 0 2rem;
    cursor: pointer;
}
.navbar--right__wallet a:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.navbar--right__wallet i.fa-wallet {
    font-size: var(--font-size-xl);
    margin: 0 !important;
}
#wallet{
    margin-left: 1rem;
}
.navbar--right__state {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.navbar--right__state a {
    background: #343444;
    border-radius: 10px;
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}
.navbar--right__state a:nth-child(2) {
    color: var(--primary-font);
    background: linear-gradient(
        90deg,
        rgb(75 80 230 / 74%) 15%,
        rgb(130 80 230 / 79%) 57%,
        rgb(226 80 229 / 60%) 100%,
        rgb(75 80 230 / 80%) 100%
    );
}
.navbar--right__state a:nth-child(2) i {
    -webkit-animation: star 1s linear infinite;
    animation: star 1s linear infinite;
}
.navbar--right__state a:nth-child(1) {
    margin-right: 1rem;
    background-color: var(--primary-font);
}
.navbar--right__state a:nth-child(1):hover i {
    background: linear-gradient(
        90deg,
        rgb(75 80 230 / 74%) 15%,
        rgb(130 80 230 / 79%) 57%,
        rgb(226 80 229 / 60%) 100%,
        rgb(75 80 230 / 80%) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar__menulink i {
    margin: 0 0.8rem;
    font-size: var(--font-size-lg);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}
.navbar__submenu {
    position: absolute;
    z-index: 500;
    background-color: rgb(20 20 31 / 95%) !important;
    box-shadow: 5px 5px 21px 2px rgb(54 49 49 / 32%);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    margin-top: 2.8rem;
    opacity: 0;
    visibility: hidden;
}
.navbar__login{
    display: flex;
}
#header .navbar__menu .menu-mobile-header{
    display: none;
}
.navbar__menu > ul > li .navbar__submenu > ul > li > a {
    display: inline-block;
    margin: 1rem 0rem;
    color: #ebebeba3;
}
.navbar__submenu--link i {
    margin-right: 1rem;
}
.navbar__menulist ul::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 25px;
    height: 15px;
    width: 15px;
    transform: rotate(45deg);
    background-color: rgb(20 20 31 / 94%) !important;
}
.sticky--header {
    border: 1px solid rgba(235, 235, 235, 0.2) !important;
    background-color: rgb(20 20 31 / 94%) !important;
    position: fixed;
    width: 90% !important;
    left: 5%;
    border-radius: 1rem;
    top: 0.5rem;
    box-shadow: rgb(59 53 53 / 30%) 0px 20px 18px !important;
}
.sticky--header .container {
    max-width: 100%;
}
.nav__btn {
    border: none;
    background-color: transparent;
    font-size: 2rem;
    display: none;
}
.overlay {
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    background: rgb(2 11 53 / 71%);
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
.navbar--right{
    display: flex;
}

.searchBar.active{
    display: flex;
    opacity: 1;
    visibility: visible;
}
.searchBar{
    display: none;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.search--submit{
    position: relative;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border: none;
    background-color: var(--blue);
    color: var(--primary-font);
    font-size: inherit;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.searchBar input {
    border-radius: 10px;
    width: 25vw;
    padding: 13px 30px 12px 22px;
    font-size: 14px;
    border: none;
    background: #323337e0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: var(--primary-font);
    outline: none;
    line-height: 2;
    transition: all 2s ease;
}
.blur-searchBg{
    position: fixed;
    inset: 0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 2s ease;
}
.blur-searchBg.active{
    opacity: 1;
    visibility: visible;
    display: block;
}
@keyframes slide-toLeft{
    0% {
        opacity: 0;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
    
    100% {
        opacity: 1;
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }
}
@keyframes slide-toRight{
    0% {
        opacity: 1;
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }
    
    100% {
        opacity: 0;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }   
}
@keyframes star {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@media (max-width: 1340px) {

    .navbar__menu > ul > li > a{
        font-size: 1.5rem;
    }
    .navbar__menu > ul > li .navbar__submenu > ul > li > a {
        font-size: 1.4rem;
    }
    .sticky--header .navbar__menu > ul > li > a {
        font-size: 1.5rem;
    }
    .sticky--header .container {
        padding: 0.5%;
        max-width: 100%;
    }
}

@media screen and (max-width: 1022px){
    .searchBar input {
        width: 50vw;
    }
    .navbar__menu ::-webkit-scrollbar {
        width: 0.8rem;
        height: 4rem;
    }
    .navbar__menu ::-webkit-scrollbar-track {
        background: #202d52e8;
    }
    .navbar__menu ::-webkit-scrollbar-thumb {
        background: var(--bg-dark);
        
        border-radius: 2rem;
    }
    .navbar__menulist {
        border-radius: 0rem !important;
        display: inline-block;
        width: 100%;
        border-bottom: 1px solid #cecece1c;
        padding: 1.5rem !important;
        margin: 0 !important;
        position: unset !important;
    }
    .navbar__menulists{
        margin-top: 4.5rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: flex-start;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }
    .navbar__menulists .navbar__menulist:nth-child(1){
        border-top: 1px solid #cecece1c;
    }
    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        color: #0a172e;
        background-color: #202d52e8;
        display: flex;
        height: 100%;
        width: min(100%, 23rem);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        justify-items: center;
        flex-direction: column;
    }
    .nav__right--open {
        transform: translateX(0);
        z-index: 1000;
        gap: 0;
    }
    .navbar--right__wallet{
        padding-bottom: 2rem;
        margin: 0 auto;
        position: relative;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 2rem;
    }
    #header .navbar__menu > ul > li .navbar__menu--child{
        position: absolute;
        display: none;
        top: 0;
        left: 0;
        max-width: none;
        min-width: auto;
        width: 100%;
        margin: 0;
        padding: 0rem;
        padding-top: 0rem;
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
        -webkit-box-shadow: none;
        box-shadow: none;
        z-index: 500;
        height: 100vh;
    }
    #header .navbar__menu .navbar__menulist ul.active {
        display: flex;
        flex-direction: column;
        height: 100vh;
        background-color: #081a48 !important;
    }
    #header .navbar__menu .navbar__haschild ul.hidden{
        animation: none !important;
    }
    .navbar__menulist ul::before {
        background-color: #081a48 !important;
    }
    .navbar__menu > ul > li > ul > li > a {
        font-size: 1.4rem;
    }
   #header > .container .nav__btn {
      display: grid;
      width: min-content;
    } 
    #header > .container .nav__btn--close {
      height: inherit;
      width: 3rem;
      align-items: center;
      justify-content: center;
      border-radius: 0;
      border-left: 1px solid #cecece1c;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
    }
    #header > .container .nav__btn--close i{
        margin: 0;
    }
    #header > .nav__list {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    } 
    #header .navbar__menu .menu-mobile-header {
        width: 100%;
        position: fixed;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        top: 0;
        height: 4.5rem;
        z-index: 501;
        flex-direction: row-reverse;
    }
    #header .navbar__menu .menu-mobile-header .menu-mobile-arrow {
        display: none;
        width: 4.125rem;
        height: inherit;
        cursor: pointer;
        border-right: 1px solid rgb(235 235 235 / 8%);
    }
    #header .navbar__menu .menu-mobile-header .menu-mobile-title{
        color: var(--login-color);
    }
    .menu-mobile-header button {
        background-color: transparent;
        border: none;
    } 
    .navbar__menu ul.navbar__menulists ul li {
        border-bottom: 1px solid rgb(235 235 235 / 5%);
    }
    #header .menu-mobile-header.active .menu-mobile-arrow {
        display: block;
        color: var(--login-color);
    }
    .navbar__menu > ul > li:hover > .navbar__menulink > i {
        transform: rotate(270deg);
    }
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .navbar__menu.active {
        -webkit-transform: translate(0%);
        -ms-transform: translate(0%);
        transform: translate(0%);
    }
    .navbar__menu > ul > li > a {
        display: flex;
        position: relative;
        align-items: center;
        font-size: 1.5rem;
    }
    .navbar__menulink i {
        position: absolute;
        font-size: 1.25rem;
        line-height: 4.525rem;
        right: 0;
        text-align: center;
        transform: rotate(-90deg); 
        -webkit-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
    }
  
}

@media (max-width: 920px){
    .sticky__bar{
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

@media (max-width: 440px) {
    .navbar {
        justify-content: space-between;
        display: flex;
        align-items: stretch;
    }
    .navbar .navbar__item--right {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
    }

}

@media screen and (max-width: 380px){
    .navbar--right{
        display: flex;
        align-items: flex-end;
        flex-direction: column-reverse;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    #nav-open{
        padding: 0;
        margin-top: 1rem;
    }
    .navbar__logo img{
        width: 10rem;
        margin-top: 0.5rem;
    }
}


