
.menu-opened {
    /*overflow: hidden;*/
}

.menu-opened:after {
    background: rgba(0, 0, 0, .4);
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

#header #btn-menu {
    display: none;
    height: 44px;
    margin: 0;
    position: relative;
    float: right;
    color: #e20267;
    text-decoration: none;
    padding-right: 34px;
    vertical-align: middle;
    line-height: 1;
}

#header #btn-menu span {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
    border-radius: 1px;
    bottom: 0;
    margin: auto 0;
    top: 0;
    width: 100%;
    right: 0;
    width: 28px;
}

#header #btn-menu strong {
    display: block;
    font-weight: 400;
    -webkit-transition: color .3s ease;
    transition: color .3s ease;
    margin: auto 0;
    padding: 7px 12px;
}

#header #btn-menu span, #header #btn-menu span:after, #header #btn-menu span:before {
    background: #e20267;
    display: block;
    height: 4px;
    position: absolute;
    -webkit-transition: background .3s ease;
    transition: background .3s ease;
}

#header #btn-menu span:after, #header #btn-menu span:before {
    border-radius: 1px;
    content: "";
    left: 0;
    right: 0;
}
    
#header #btn-menu span:after {
    top: 9px;
}

#header #btn-menu span:before {
    top: -9px;
}

#header #btn-menu span:after, #header #btn-menu span:before {
    height: 4px;
}

#menu {
    background: #23282d;
    bottom: 0;
    color: #e20267;
    position: fixed;
    text-align: center;
    top: 0;
    width: 298px;
    z-index: 1001;
}

#menu header {
    background: #32373c;
    font-size: 20px;
    padding: 25px 15px;
    position: relative;
}

#menu header span {
    color:#FFF;
}

#menu button.close i, #menu button.close i:after, #menu button.close i:before {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#menu button.close i {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

#menu button.close i:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#menu button.close i:before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

#menu button.close i:after, #menu button.close i:before {
    background: #fff;
    content: "";
    height: 2px;
    margin: auto;
    -webkit-transition: background .3s ease;
    transition: background .3s ease;
    width: 15px;
}

#menu button.close:hover i:after, #menu button.close:hover i:before {
    background: #333;
}

#menu button.close i, #menu button.close i:after, #menu button.close i:before {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#menu button.close {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    height: 30px;
    opacity: 1;
    position: absolute;
    right: 30px;
    top: 22px;
    -webkit-transition: background .3s ease;
    transition: background .3s ease;
    width: 30px;
}

#menu button.close:hover {
    background: #fff;
    opacity: 1;
}

#menu .close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    filter: alpha(opacity=20);
}

#menu .scroll {
    height: 100%;
    overflow-y: auto;
}

#menu .scroll>ul {
    margin: 0;
    padding: 0 0 50px;
}

#menu .scroll>ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu .scroll>ul li a {
    color: #fff;
    display: block;
    font-size: 18px;
    padding: 15px;
    position: relative;
    text-align: left;
}

#menu .scroll>ul li a:after {
    border-bottom: 1px solid #444;
    bottom: 0;
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}

#menu .scroll>ul li.opened a:after {
    left: 10%;
    right: 40%;
}

#menu .scroll>ul li:last-child a:after {
    /*border-bottom: 0;*/
}

#menu .scroll>ul li a span {
    display: inline-block;
    position: relative;
    text-align: right;
    width: 80%;
}

#menu .scroll>ul li.has-submenu>a span:after {
    border: 2px solid #fff;
    border-width: 0 2px 2px 0;
    bottom: 0;
    content: "";
    display: block;
    height: 10px;
    margin: auto 0;
    position: absolute;
    right: -35px;
    top: -5px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    width: 10px;
}

#menu .scroll>ul li.has-submenu.opened>a span:after {
    border-width: 2px 0 0 2px;
    top: 5px;
}

#menu .scroll>ul li ul {
    border-bottom: 1px solid #444;
    display: none;
    margin: 0;
    padding: 5px 0 10px;
}

#menu .scroll>ul li ul a {
    font-size: 1em;
    padding: 10px 15px;
}

#menu .scroll>ul li ul a:after {
    border: 0;
}

.menu-opened #menu {
    right: 0;
}

#menu #social-menu.absolute {
    bottom: 30px;
    margin: 0;
    position: absolute;
    padding: 0 30px;
    width: 100%;
}

#menu #social-menu {
    margin: 0 30% 30px;
}

#menu #social-menu ul {
    margin: 0;
    padding: 0;
}

#menu #social-menu ul li {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

#menu #social-menu ul a {
    color: #fff;
    display: block;
    padding: 0 5px;
}

#menu .navbar-form {
    border: 0;
    box-shadow: none;
    padding: 0 0 30px;
    margin: 0 auto;
    display: block;
    float: none !important;
}

#menu .navbar-form .btn,
#menu .navbar-form .form-control {
    background: #fff !important;
}

#menu .navbar-form .btn,
#menu .navbar-form .btn i,
#menu .navbar-form .form-control {
    color: #333 !important;
}

@media (min-width: 768px) {
    
    #menu {
        -webkit-transition: right .3s ease;
        transition: right .3s ease;
        right: -40%;
        width: 40%;
    }

    .menu-opened #menu {
        right: 0;
    }
    
    #menu .scroll>ul {
        padding: 0 15px 75px;
    }
    
    #menu .scroll>ul li a span {
        width: 90%;
    }
    
    #menu .scroll>ul li.opened a:after {
        right: 5%;
    }

}

@media (min-width: 992px) {
    
    #menu header span {
        width: 80%;
    }
    
    #menu .scroll>ul li a span {
        width: 80%;
    }
    
    #menu .scroll>ul li.opened a:after {
        right: 10%;
    }

}

@media (min-width: 1200px) {

    #menu {
        right: -33.33%;
        width: 33.33%;
    }

    #menu .scroll>ul li a {
        font-size: 19px;
    }
    
    #menu .scroll>ul li a span {
        width: 70%;
    }

    #menu header span {
        width: 70%;
    }
    
    #menu .scroll>ul li.opened a:after {
        right: 20%;
    }


}

@media (max-width: 991px) {
    
    #header #btn-menu {
        display: inline-block;
    }
    
}

@media (max-width: 768px) {
    
    #menu {
        -webkit-transition: left .3s ease;
        transition: left .3s ease;
        left: -298px;
    }
    
    .menu-opened #menu {
        left: 0;
    }
    
    #menu .scroll>ul li a span {
        margin-left: 20%;
        text-align: left;
    }
    
    #menu .scroll>ul li.opened a:after {
        left: 10%;
        right: 0;
    }
    
    #menu .scroll>ul li.has-submenu>a span:after {
        height: 8px;
        left: -24px;
        right: auto;
        width: 8px;
    }

}

@media (max-width: 360px) {
    
    #header.navbar-fixed-top #btn-menu,
    #header.navbar-static-top #btn-menu {
        width: 50px;
    }
 
    #header.navbar-fixed-top #btn-menu strong,
    #header.navbar-static-top #btn-menu strong {
        display: none;
    }
    
}