* {
    margin: 0;
    padding: 0;
    text-decoration: none
}

#navcontain {
    background: #ecc523;
    height: 36px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.nav {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #head-mobile {
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

#cssmenu:after,
#cssmenu > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}

#cssmenu #head-mobile {
    display: none
}

#cssmenu {
    width: 100%;
    z-index: 9999;
}

#cssmenu > ul {
    margin: 0 0 0 0;
}

#cssmenu > ul > li {
    display: inline-block;
    *float: left;
    position: relative;
    vertical-align: middle;
}

#cssmenu > ul > li:first-child {
    border-left: none;
}

#cssmenu > ul > li.has-sub {
    padding: 0;
}

#cssmenu > ul > li > a {
    display: block;
    display: inline-block;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
    padding: 10px 8px 10px 8px;
}



#cssmenu > ul > li:hover > a,
#cssmenu > ul > li:focus > a,
#cssmenu ul li.active a {
    background: #ecc523;
    color: #fff;
    text-shadow: 1px 1px 1px #333333;
    text-transform: uppercase;
    display: block;
    /* height: 26px; */
    padding: 10px 8px 10px 8px;
    text-decoration: none;
}

#cssmenu > ul > li:hover,
#cssmenu ul li.active:hover,
#cssmenu ul li.active,
#cssmenu ul li.has-sub.active:hover {
    height: 1%;
}

#cssmenu > ul > li:focus,
#cssmenu ul li.active:focus,
#cssmenu ul li.active,
#cssmenu ul li.has-sub.active:focus {
    -webkit-transition: background .3s ease;
    -ms-transition: background .3s ease;
    transition: background .3s ease;
}

#cssmenu > ul > li:first-child:hover,
#cssmenu ul li.active:hover,
#cssmenu ul li.active,
#cssmenu ul li.has-sub.active:hover {}

#cssmenu ul ul {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

#cssmenu ul ul li {
    height: 0;
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    background: #000;
    transition: all .25s ease
}

#cssmenu ul ul li:hover {
    background: #2E2E2E;
}

#cssmenu li:hover > ul {
    left: auto;
    *left: 0;
    *z-index: 999999;
}

#cssmenu li:hover > ul > li {
    height: auto;
}

#cssmenu ul ul ul {
    margin-left: 100%;
    top: 0;
}

#cssmenu ul ul li a {
    width: 260px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 20px;
    text-align: left;
    color: #000;
    border-bottom: #666666 1px solid;
    z-index: 999;
    text-decoration: none;
    transition-duration: .5s;
    -webkit-transition-duration: .5s;
}



#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
}

#cssmenu ul ul li.has-sub > a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: ''
}

#cssmenu ul ul li.has-sub > a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: '';
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    transition: all .25s ease
}

#cssmenu ul ul > li.has-sub:hover > a:before {
    top: 17px;
    height: 0
}

#cssmenu ul ul li.has-sub:hover,
#cssmenu ul li.has-sub ul li.has-sub ul li:hover {
    background: #f1f1f1;
    color: #fff;
}

#cssmenu ul ul ul li.active a {
    border-left: 1px solid #333;
}

#cssmenu > ul > li.has-sub > ul > li.active > a,
#cssmenu > ul ul > li.has-sub > ul > li.active > a {
    border-top: 1px solid #333;
}

.space-after {
    padding-right: 240px;
}

.space-before {
    padding-left: 0;
}

@media screen and (max-width:1275px) {
    #cssmenu > ul > li > a {
        padding: 10px 5px;
    }
}

@media screen and (max-width:1170px) {
    .divider {
        display: none;
    }

    #navcontain {
        height: 40px;
        top: 125px;
        text-align: left;
        background: #ecc523;
    }

    #cssmenu ul {
        width: 100%;
        display: none;
        background: #ecc523;
        box-shadow: 1px 1px 3px #000;
    }

    #cssmenu ul li {
        width: 100%;
        margin: 0;
        padding: 9px 0 9px 40px;
        border-left: none;
    }


    #cssmenu ul ul li,
    #cssmenu li:hover > ul > li {
        height: auto;
        padding: 20px 20px 20px 40px;
        background: #ecc523;
    }

    #cssmenu ul li a,
    #cssmenu ul ul li a {
        width: 100%;
        border-bottom: 0;
    }

    #cssmenu > ul > li {
        float: none;
    }

    #cssmenu > ul > li.has-sub {
        padding: 10px 60px 10px 60px;
    }

    #cssmenu ul ul li a {
        padding: 0 !important;
        margin-left: 20px;
    }

    #cssmenu ul ul ul li a {}

    #cssmenu ul ul li a {
        font-weight: bold;
        font-size: 16px;
    }

    #cssmenu ul ul li:hover > a,
    #cssmenu ul ul li.active > a {
        font-weight: bold;
    }

    #cssmenu ul ul,
    #cssmenu ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
        box-shadow: none;
    }

    #cssmenu > ul > li.has-sub > a:after,
    #cssmenu > ul > li.has-sub > a:before,
    #cssmenu ul ul > li.has-sub > a:after,
    #cssmenu ul ul > li.has-sub > a:before {
        display: none;
    }

    #cssmenu #head-mobile {
        display: block;
        padding: 22px 0 16px;
        right: 10px;
        color: #ddd;
        font-size: 12px;
        font-weight: 700;
        box-sizing: border-box;
        text-align: right;
    }

    #head-mobile:after {
        position: relative;
        bottom: 9px;
        color: #363636;
        text-align: right;
        font-size: 15px;
    }

    .button2 {
        width: 85px;
        height: 40px;
        position: absolute;
        top: 2px;
        cursor: pointer;
        z-index: 12399994;
    }

    .button2:after {
        position: absolute;
        display: block;
        height: 10px;
        width: 20px;
        top: 0px;
        bottom: 0px;
        left: 15px;
        margin: auto;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        content: '';
    }

    .button2:before {
        position: absolute;
        display: block;
        height: 2px;
        width: 20px;
        top: 0px;
        bottom: 0px;
        left: 15px;
        margin: auto;
        background: #fff;
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
        content: '';
    }

    .button2.menu-opened:after {
        top: 0;
        border: 0;
        height: 2px;
        width: 19px;
        background: #fff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
    }

    .button2.menu-opened:before {
        top: 0;
        background: #fff;
        width: 19px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #cssmenu .submenu-button {
        position: absolute;
        background: #eaeaea;
        z-index: 99;
        left: 0;
        top: 0;
        bottom: 0px;
        display: block;
        padding: 0 27px;
        cursor: pointer;
        border-left: #fff solid 1px;
        border-bottom: #fff solid 1px;
    }

    #cssmenu .submenu-button.submenu-opened {
        background: #f1f1f1;
        border-left: #fff solid 1px;
        border-bottom: #fff solid 1px;
        z-index: 99999;
    }

    #cssmenu ul ul .submenu-button {
        height: 34px;
        width: 34px;
    }

    #cssmenu .submenu-button:after {
        position: absolute;
        margin: auto;
        top: 0;
        bottom: 0;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #363636;
        content: '';
    }

    #cssmenu ul ul .submenu-button:after {
        top: 13px;
        right: 13px;
    }

    #cssmenu .submenu-button.submenu-opened:after {
        background: #000;
    }

    #cssmenu .submenu-button:before {
        position: absolute;
        background: #363636;
        margin: auto;
        top: 0;
        bottom: 0;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        content: '';
    }

    #cssmenu ul ul .submenu-button:before {
        top: 10px;
        right: 16px;
    }

    #cssmenu .submenu-button.submenu-opened:before {
        display: none;
    }

    #cssmenu ul ul ul li.active a {
        border-left: none;
    }

    #cssmenu > ul > li.has-sub > ul > li.active > a,
    #cssmenu > ul ul > li.has-sub > ul > li.active > a {
        border-top: none;
    }

}

@media screen and (max-width:850px) {
    #navcontain {
        top: 162px;
        background: #ecc523;
    }

}

@media screen and (max-width:650px) {
    #navcontain {
        position: static;
        width: 100%;
        left: 0;
        right: 0;
        text-align: left;
    }

    #cssmenu .submenu-button {
        right: 0;
        left: auto;
    }

    .button2 {
        left: 0;
        margin: auto;
    }

    #head-mobile:after {
        left: 17px;
    }

    #cssmenu #head-mobile {
        text-align: left;
        right: 0;
    }

}
