:root {
    --header_ico_size: 3em;
}

.goToTop {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    line-height: 56px;
    color: var(--blue);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: fixed;
    bottom: 80px;
    right: 20px;
    box-shadow: inset 0 0px 13px 2px var(--blue);


    transition: 1s;
    opacity: 0;

}


.goToTop.active {
    opacity: 1;
    z-index: 3;
    cursor: pointer;
}

.grad-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
    background-size: 400% 400%;
    -webkit-animation: gradBar 15s ease infinite;
    -moz-animation: gradBar 15s ease infinite;
    animation: gradBar 15s ease infinite;

}


/* KEYFRAME ANIMATIONS */

@-webkit-keyframes gradBar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes gradBar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes gradBar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.logo::before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background-image: url('../img/MHT.png');
    background-size: cover;
    content: '';
    display: block;


}

.logo {
    position: relative;
    width: var(--header_ico_size);
    padding-top: var(--header_ico_size);

    z-index: 10;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}



.burger {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: var(--header_ico_size);
    z-index: 10;
}

.burger .bar {
    display: block;
    width: 70%;
    height: 3px;
    background-color: var(--green);
    margin: 4px auto;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.burger.burgerActive .bar:nth-child(2) {
    opacity: 0;
}

:root {
    --r1: calc(var(--header_ico_size) / 4.8);
    --r3: calc(-1 * var(--r1));
}

.burger.burgerActive .bar:nth-child(1) {
    -webkit-transform: translateY(var(--r1)) rotate(45deg);
    -ms-transform: translateY(var(--r1)) rotate(45deg);
    -o-transform: translateY(var(--r1)) rotate(45deg);
    transform: translateY(var(--r1)) rotate(45deg);
}

.burger.burgerActive .bar:nth-child(3) {
    -webkit-transform: translateY(var(--r3)) rotate(-45deg);
    -ms-transform: translateY(var(--r3)) rotate(-45deg);
    -o-transform: translateY(var(--r3)) rotate(-45deg);
    transform: translateY(var(--r3)) rotate(-45deg);
}

/*
.wConnect {
    display: none;
    position: relative;
    width: 160px;
    z-index: 0;
    bottom: -80px;
    opacity: 0.5;
    transition: 3s;
}*/

/*For PC*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {
    .burger {
        display: none;
    }

    /*  .wConnect.startPosition {
        display: block;

    }

    .wConnect.scrollPosition {
        display: block;
        position: fixed;
        top: 10px;
        right: 1%;
    }

    .wConnect:hover {
        opacity: 1;
    }*/
}

h1 {
    position: relative;
    color: #7dc2ff;
    font-size: 1.7em;
    z-index: 10;
    text-shadow: 0px 0px 8px #29bf11;
}

/*For PC*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {

    /* h1 {
        position: absolute;
        bottom: -2em;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
    }*/
    h1 {
        position: absolute;
        bottom: -40px;
        left: 1%;
        transform: none;
        z-index: 0;
    }

    div.navbar__header::after {
        bottom: -1.5em;
        left: 50%;
        transform: translateX(-50%);
    }
}

/*For PC маленькая высота*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) and (max-height: 768px) {
    h1 {
        position: absolute;
        bottom: -40px;
        left: 1%;
        transform: none;
        z-index: 0;
    }

    div.navbar__header::after {
        bottom: -1.5em;
        left: 50%;
        transform: translateX(-50%);
    }

}


.lineTransparent::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(to right, transparent, #7dc2ff, transparent);
}

/*For MOBILE*/
@media (max-aspect-ratio: 1/1) or ((max-width: 1279px) and (min-aspect-ratio: 1/1)) {
    .lineTransparent::before {
        z-index: 5;
    }

    .enableAnimation {
        display: none;
    }


}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    z-index: 5;
}



.navbar__header {
    position: absolute;
    top: 0px;
    width: 96%;
    padding: min(2%, 2vh);
    padding-left: 2%;
    padding-right: 2%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #01173480;
    backdrop-filter: blur(20px);
    opacity: 1;
    /*transition: 2s;*/
}

.navbar__header::after {
    position: absolute;
    display: block;
    content: 'MHT - Mental Honor Token';
    color: var(--green);
    font-size: 1em;
    bottom: -2em;
    text-align: center;
    padding-top: 10px;
    opacity: 1;
    transition: 1s;


}

/*For MOBILE*/
@media (max-aspect-ratio: 1/1) or ((max-width: 1279px) and (min-aspect-ratio: 1/1)) {
    .navbar__header.scrollPosition::after {
        opacity: 0;
    }

    .navbar.fixed .navbar__header {
        top: 0;
    }

    .navbar__header::after {
        left: 0;
        width: 100%;
    }

    .fixed .navbar__header::after {
        opacity: 0;
    }

    .pcOnly {
        display: none;
    }

    /*  .navbar__header.scrollPosition:not(.scrollTop) {
        top: -80px;
    }*/




}

/*For PC*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {
    .navbar {
        position: absolute;
    }

    .navbar__header {
        width: 98%;
        padding: 12px 1%;
        backdrop-filter: none;

    }

    /*  .navbar__header::after {
        bottom: -1.5em;
        left: 10px;
    }*/
}



.nav {
    position: relative;
    left: 0;
    /*background: #01173480;*/
    backdrop-filter: blur(20px);
    /*width: calc(100% - 4em);*/
    padding: 0 2em;
    height: 0vh;
    text-align: center;
    overflow: hidden;

}


/*For PC*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {
    .nav {
        position: absolute;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 60px;
        overflow: visible;
        background: none;

        backdrop-filter: none;
        width: calc(100% - 9em);
        padding: 0 4.5em;
        padding-top: 12px;
    }

    .logo.scrollPosition {
        position: fixed;
        margin: 5px 10px;
        top: 0;
        right: 0;
    }

    h1.scrollPosition {
        position: fixed;
        transform: none;
        margin: 10px;
        height: 1em;
        top: 0;
        left: 0;
        color: #3396FF;
        text-shadow: 1px 1px 1px var(--white);
    }

    .scrollPosition .nav-item.menuHome {
        order: 20;
        position: relative;
        border-radius: 10px;
        text-align: center;
        cursor: pointer;
        height: 40px;
        border: 1px solid #3396FF;
        box-shadow: inset 0px 0px 15px #3396FF;
        font-size: 1em;
        color: var(--blue);
        margin-top: 5px;
    }

    .scrollPosition .nav-item.menuHome>span {
        /*margin-top: 60px;*/
        line-height: 40px;
        padding: 0;
        text-align: center;
        text-shadow: 1px 1px 1px black;
        color: var(--green);
        position: relative;
        /*display: block;*/
        z-index: 1;
    }

    .scrollPosition .nav-item.menuHome::after {
        content: '+';
        right: 25px;
        top: 50%;
        position: absolute;
        color: var(--green);
        font-size: 1em;
        transform: translateY(-50%);
        text-shadow: 1px 1px 1px black;
    }

    .scrollPosition .nav-item.menuHome:hover::after {
        content: '';
    }

    .scrollPosition .nav-item.menuHome:hover {
        border: none;
    }

    .scrollPosition .nav-item a {
        text-transform: none;
    }

    .scrollPosition .nav-item.menuHome:hover>span {
        border-bottom: 1px solid var(--color_o);
        text-shadow: 1px 1px 1px black;
        color: var(--color_o);
        margin-left: 6em;
        width: auto;
        cursor: default;

    }

    .logo::after {
        content: 'MHT';
        position: absolute;
        right: -90px;
        color: var(--green);
        font-size: 2em;
        top: 10px;
        text-shadow: 1px 1px 1px var(--white);
    }

    .logo.scrollPosition::after {
        content: 'MHT';
        position: absolute;
        left: -100px;
        color: var(--green);
        font-size: 2em;
        top: 10px;
        text-shadow: 1px 1px 1px var(--white);
    }

    .nav.scrollPosition {
        position: fixed;
        flex-direction: column;
        width: 160px;
        top: 60px;
        left: 0;
        padding: 0 10px;
        /*border: 3px solid green;*/
        height: auto;

        opacity: 0.5;
    }

    .nav.scrollPosition>.menuService {
        display: none;
    }

    .nav.scrollPosition:hover {
        opacity: 1;
        transition: 1s;
    }

    .nav.scrollPosition>li {
        position: relative;
        border-radius: 10px;
        /* text-align: center; */
        width: 160px;
        padding: 0;
        cursor: pointer;
        height: 40px;

        border: 1px solid #3396FF;
        /*background: #3396FF;*/
        font-size: 1em;
        margin: 5px;
        color: var(--blue);
    }

    .nav.scrollPosition>li:hover {
        box-shadow: inset 0px 0px 5px #3396FF;
        /*color: #3396FF;
        color: var(--white);*/
        background: #153256;
        background: #3396FF;
    }

    .nav.scrollPosition>li:hover>span,
    .nav.scrollPosition>li:hover>a {
        color: var(--white);
        text-shadow: 2px 2px 4px #193653;
        cursor: pointer;
    }

    .nav.scrollPosition>li>a,
    .nav.scrollPosition>li>span {
        width: 100%;
        line-height: 40px;
        padding: 0;
        text-align: center;
        text-shadow: 1px 1px 1px black;
    }

    .nav.scrollPosition>li>a {
        color: var(--blue);
    }

    .nav.scrollPosition .nav-child {
        left: 0;
        top: 0;
        padding-top: 3em;
        border-radius: 10px;
        backdrop-filter: none;
        background: #2e4761;
        /*overflow: visible;*/
        overflow-y: auto;
    }

    .nav.scrollPosition .nav-child>li:hover {
        background: #3396ff;
    }

    /*.nav.scrollPosition .nav-child::before {
        content: '';
        left: -20px;
        top: 5px;
        position: absolute;
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-left: 20px solid #3396FF;
        opacity: 0.5;
    }*/












}

/*For MOBILE*/
@media (max-aspect-ratio: 1/1) or ((max-width: 1279px) and (min-aspect-ratio: 1/1)) {
    .nav {
        /*height: 0px;*/
        overflow: hidden;
        opacity: 0;
    }

    .nav.mobileMenuIsOpen {
        opacity: 1;
        padding-top: 1px;
        overflow: visible;
        height: 100vh;
        flex-direction: column;

    }





    .navbar .nav a:active {
        margin-right: 3em;
        transition: margin 0.2s;
        color: #7dc2ff;
        text-shadow: 1px 1px 3px whitesmoke;
    }
}

@media (max-width: 1279px) {
    .nav {
        top: calc(var(--header_ico_size) + 4vw);
        transition: 1s;
    }
}





@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {

    .nav-item span,
    .nav-item>a {
        font-size: 14px;
    }
}




















.nav-item {
    display: flex;
    justify-content: flex-end;

    transition: all .5s;
    order: 10;
}


/*.nav-item:last-child {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 12px;
}

.nav-item:first-child,
.nav-item:last-child {
    flex-direction: column;
    position: relative;
}



.nav-item:first-child span,
.nav-item:last-child span {
    position: relative;
}*/
.nav-item.menuHome,
.nav-item.menuService,
.nav-item.menuEarn,
.nav-item.menuTrack {
    position: relative;
    flex-direction: column;
    justify-content: space-between;

}


/*For MOBILE*/
@media (max-aspect-ratio: 1/1) or ((max-width: 1279px) and (min-aspect-ratio: 1/1)) {
    .nav-item {
        margin-top: 12px;
    }

    .nav-item.menuHome,
    .nav-item.menuService,
    .nav-item.menuEarn,
    .nav-item.menuTrack {
        order: 15;

    }

    .nav-item.menuService {
        order: 14;
    }
}

/*For PC*/
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {
    .nav-item.menuHome {
        order: 0;
        /*margin-top: 60px;*/
    }

    .nav-item.menuService {
        order: 25;
    }

    .nav-item.menuEarn {
        order: 15;
    }

    .nav-item.menuTrack {
        order: 20;
    }
}



.nav-item span,
.nav-item a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 1px;
    line-height: 20px;
    font-weight: 500;
    transition: margin 0.5s;
}

.nav-item span {
    color: var(--green);
    width: 100%;
    text-align: right;
}

.nav-item span::before {
    content: '+';
    font-size: 38px;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--green);
}



















.nav-child {
    height: 0;
    /* max-height: 100%;*/
    min-height: 0;
}


/*For MOBILE*/
@media (max-aspect-ratio: 1/1) or ((max-width: 1279px) and (min-aspect-ratio: 1/1)) {
    .nav-item-active .nav-child {
        border-top: 4px double #7dc2ff;
        min-height: 6em;
        height: auto;

    }


    .nav-item-active span::before {
        content: '–';
    }
}

.nav-child {
    position: relative;
    top: 0.5em;
    font-size: 0.8em;
    overflow: hidden;
    transition: min-height 0.5s;


}

.nav-child a {
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 32px;
}

.nav-child>li {
    padding-left: 4em;
    display: flex;
    justify-content: flex-start;
    position: relative;
}



.nav-child__main_service {

    margin-top: 3em;
}

.nav-child__auxiliary_service {
    margin-top: 4em;
}


.nav-child__main_service::before {
    content: "Main:";
}

.nav-child__auxiliary_service::before {
    content: 'Auxiliary (Earn $MHT):';
    border-top: 1px solid var(--blue);
}



.nav-child__auxiliary_service::before,
.nav-child__main_service::before {
    position: absolute;
    left: 0;
    display: block;
    color: var(--green);
    font-size: 1.5em;
    top: -2em;
    /* left: 0.8em; */
    width: 100%;
    text-align: left;
    padding-top: 0.8em;
    padding-left: 0.8em;

}




.nav-item.menuHome .nav-child>li,
.nav-item.menuService .nav-child>li {
    justify-content: flex-start;
}









/*For PC*/

@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {

    .nav-item {

        height: 60px;
    }

    .nav-child>li {
        padding-left: 1em;
    }

    /*   .nav-item:first-child,
    .nav-item {
        margin: 0;
        margin-top: 0;
        padding: 0;
    }

    .nav-item:last-child {
        padding-top: 0;
        border: none;
        width: max-content;

    }*/

    .nav-item span::before {
        display: none;
    }

    .nav-item span {
        width: auto;
    }

    .nav-item span

    /*,
    .nav-item a */
        {
        padding: 18px;
    }

    .nav-item>span,
    .nav-item>a {
        text-transform: none;
        width: max-content;
        min-width: 4.6em;
        /*max-width: 7em;*/
        padding: 18px 10px;
        /*margin: auto;*/
        vertical-align: middle;
    }



    .nav-child:hover,
    .menuHome:hover .nav-child,
    .menuService:hover .nav-child,
    .menuEarn:hover .nav-child,
    .menuTrack:hover .nav-child {
        display: block;
    }

    .nav-item a:hover {
        color: var(--blue);
        transition: 0.1s;
        cursor: pointer;
        /*text-shadow: 0px 0px 3px var(--white);*/
    }



    .nav-item {
        border: 1px solid transparent;
        position: relative;
    }

    .nav-item:hover {
        /* transform: translateY(5px);*/
        margin-top: 10px;
        height: calc(60px - 10px);
        transition-duration: 0.5s;
        box-shadow: 0px 0px 3px 3px #7dc2ff7d;
        /*border: 1px solid var(--blue);*/
        border-radius: 10px 10px 0 0;
        border-bottom: none;
        background: #7dc2ff38;
    }

    .nav-child a:hover {
        transform: translateX(6px);
        color: var(--white);
        text-shadow: 2px 2px 4px #193653;
    }

    .nav-child a:hover::before {
        content: '';
        width: 7px;
        height: 7px;
        position: absolute;

        left: 0px;
        top: 16px;
        background: var(--green);
        border-radius: 50%;
        opacity: 0.5;
    }


    .nav-child {
        display: none;
        position: absolute;
        top: 56px;
        right: -2px;
        width: max-content;
        box-shadow: 0px 0px 3px 3px #7dc2ff7d;
        backdrop-filter: blur(20px);
        border: 1px solid var(--blue);
        border-radius: 0 0 10px 10px;
        padding-top: 1em;
        max-height: none;
        height: auto;
        background: #7dc2ff38;

    }

    /*.menuService .nav-child,*/
    .menuHome .nav-child {
        left: -2px;
    }

    .nav-child>li:hover {
        background: #00000033;
    }

    /*.menuService .nav-child::before,
    .menuHome .nav-child::before {
        color: var(--green);
        text-shadow: 0px 0px 3px var(--white);
        position: absolute;
        top: 18px;
        right: 18px;
        font-size: 24px;
    }

    .menuEarn .nav-child::before,
    .menuTrack .nav-child::before {
        color: var(--green);
        text-shadow: 0px 0px 3px var(--white);
        position: absolute;
        top: 18px;
        left: 18px;
        font-size: 24px;
    }*/

    /*.menuEarn .nav-child::before {
        content: 'Earn $MHT';
    }

    .menuTrack .nav-child::before {
        content: 'Track & Edit';
    }

    .menuService .nav-child::before {
        content: 'Service';
    }

    .menuHome .nav-child::before {
        content: 'Home';
    }*/

    .nav-item span,
    .nav-item>a {
        font-size: 18px;
    }

    .nav-child>li {
        justify-content: start;
    }

    .nav-child>li>a {
        width: 100%;
        padding: 0 1em;
        text-align: left;
        cursor: pointer;
    }




}




/*For PC*/
/*
@media (min-width: 1080px) or (min-aspect-ratio: 1/1) {
    .goToTop {
        display: none;
    }
}*/
.fixed {
    position: fixed;
    background: #0117349e;
    backdrop-filter: blur(20px);
}