/*MENU*/


.main_h {
    position: fixed;
    top: 0px;
    max-height: 75px;
    z-index: 999;
    width: 100%;
    background: none;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    opacity: 0;
    top: -100px;
    background-color: #e9e9f4;
    opacity: 1;
    top: 0px;
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.open-nav {
    max-height: 400px !important;
    background-color: #e9e9f4;
}

.open-nav .mobile-toggle {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    right: 22px;
    top: 0;
    width: 30px;
    -webkit-transition: all 300ms ease-in;
    -moz-transition: all 300ms ease-in;
    transition: all 300ms ease-in;
}

.mobile-toggle span {
    width: 30px;
    height: 4px;
    margin-bottom: 6px;
    border-radius: 1000px;
    background: #fff;
    display: block;
}

.sticky {
    background-color: #e9e9f4;
    opacity: 1;
    top: 0px;

    border-top-width: 1px;
    border-bottom-width: 1px;

}

.logo {
    width: 119px;
    float: left;
    display: block;
    margin-top: 13px;
}

nav {
    float: right;
    width: 82%;

}

nav ul {
    list-style: none;
    overflow: hidden;
    text-align: right;
    float: right;
}

nav ul li {
    display: inline-block;
    line-height: 50px;
    border-left:solid 1px #6e42a8;
    border-right:solid 1px #6e42a8;
   
   
}

nav ul a {
    color: #DCDCE7;
    text-transform: uppercase;
    font-size: 14px;
    padding-top: 7px;
    padding-right: 32px;
    padding-bottom: 14px;
    padding-left: 32px;
    font-style: normal;
    font-weight: 700;
}

a.out {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    color: #6e42a8;
    border-left:solid 1px #6e42a8;
    border-right:solid 1px #6e42a8;

}

a.out:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

a.out:hover,
a.out:focus,
a.out:active {
   color: #af95d1;
}

a.out:hover:before,
a.out:focus:before,
a.out:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

nav ul a.active {
    border-left-color: #af95d1;
    border-right-color: #af95d1;
    pointer-events: none;
    cursor: default;
}

.menufix {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 2%;
}

.line {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    -webkit-transition: 1s;
    transition: 1s;
}

.line:after {
    position: absolute;
    -webkit-transition: 1s;
    transition: 1s;
    content: '';
    width: 0;
    left: 50%;
    bottom: 1px;
    height: 2px;
    background-color: #af95d1;
}

.line:hover {
    cursor: pointer;
}

.line:hover:after {
    width: 100%;
    left: 0;
}

@media only screen and (max-width: 766px) {
    .sticky {
        background-color: #af95d1;
    }
    .main_h {
        padding-top: 0px;
    }
    .logo {
        float: none;
    }
    nav {
        width: 100%;
    }
    nav ul {
        padding-top: 10px;
        margin-bottom: 22px;
        float: left;
        text-align: center;
        width: 100%;
    }
    .mobile-toggle {
        display: block;
    }
    nav ul a {
        display: block;
        width: 100%;
        padding-top: 5px;
        padding-right: 0px;
        padding-bottom: 5px;
        padding-left: 0px;
        background-color: #af95d1;
        color: #fff;
        font-weight: 700;
        font-style: normal;
    }
    nav ul a:hover {
        color: #fff;
        background-color: #af95d1;
    }


    nav ul li {
        width: 100%;
        margin: 0;
        padding-right: 0;
        padding-left: 0;
        padding-top: 1px;
        padding-bottom: 1px;
        line-height: 30px;
    }
    nav ul a.active {
        border-bottom-style: none;
        padding-bottom: 5px !important;
        background-color: #6e42a8;
    }
    
    
    .line:after {
        height: 1px;
        background-color: #8A9AD2;
    }
    a.out {
         color: #fff;
        background-color: #af95d1;
       
    }
    a.out:hover {
        color: #6e42a8;
        background-color: #af95d1;
    }
}

@media all and (min-width: 767px) and (max-width: 1024px) {
    nav ul a {
        padding-right: 12px;
        padding-left: 12px;
    }
}