/*
JQuery Simple MobileMenu Slide
https://github.com/Position2/jQuery-Simple-MobileMenu
*/
/*Main style*/
body.mmactive {
  overflow: hidden;
}
.mobile_menu {
  display: none;
  position: relative;
}
.sm_menu_outer.active .mobile_menu {
  display: block;
}
.sm_menu_outer {
/*height: calc(100vh - 26vh);*/
  height:94%;   
  padding-top:40px;    
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -99999;
  width: 100%;
  opacity: 0;
  display: none;
  background-color: #fff;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.sm_menu_outer.active {
  opacity: 1;
  z-index: 999;
  display: block;
}
.sm_menu_outer .mobile_menu li.back a {
  padding:10px 10px 10px 55px;
  background: url("../img/back.svg") no-repeat scroll 15px center / 5% auto;
}
.sm_menu_outer .mobile_menu a {
  color: var(--color-first);
  display: block;
  letter-spacing: 1px;
  padding: 20px 15px;
  text-transform:capitalize;
  text-decoration: none;
  font-weight: 500;
}
/*Sub Menu anim */
.sm_menu_outer.slide .mobile_menu .submenu {
  background-color: #fff;
  height: 100%;
  position: absolute;
  right: -100%;
  top: 0;
  transition: all 0.5s ease 0s;
  width: 100%;
  z-index: 999;
}
.sm_menu_outer.slide .mobile_menu li.active > .submenu {
  right: 0;
}
.sm_menu_outer .mobile_menu li {
  list-style-type: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0);
  border-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #dcdcdc 20%, #dcdcdc 50%, #dcdcdc 80%, rgba(0, 0, 0, 0) 100%) 0 0 1 0;
  color: #ffffff;
}
.sm_menu_outer .mobile_menu li:nth-last-child(1) {
  border-bottom:none;
  border-image:none; 
}
.sm_menu_outer.slide .mobile_menu li.hasChild > a {
  background: url("../img/next.svg") no-repeat scroll 95% center / 5% auto;
}
/*Hamburger Animation */
#sm_menu_ham {
  cursor: pointer;
  float: right;
  height: 25px;
  position: absolute;
  top: 20px;
  right:20px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.5s ease-in-out 0s;
  -moz-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
  width: 35px;
  /*top: 25px;
  right: 2%;*/
  z-index: 9999;
}
#sm_menu_ham span {
  background-color: var(--color-first);
  border-radius: 5px;
  display: block;
  height:4px;
  left: 0;
  opacity: 1;
  position: absolute;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.25s ease-in-out 0s;
  -moz-transition: all 0.25s ease-in-out 0s;
  -o-transition: all 0.25s ease-in-out 0s;
  transition: all 0.25s ease-in-out 0s;
  width: 30px;
}
#sm_menu_ham span:nth-child(1) {
  top: 0;
}
#sm_menu_ham span:nth-child(2),
#sm_menu_ham span:nth-child(3) {
  top:9px;
}
#sm_menu_ham span:nth-child(4) {
  top:17px;
}
#sm_menu_ham.open span:nth-child(1) {
  left: 50%;
  top: 18px;
  width: 0;
}
#sm_menu_ham.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}
#sm_menu_ham.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#sm_menu_ham.open span:nth-child(4) {
  left: 50%;
  top: 18px;
  width: 0;
}
@media (min-width: 991px) {
  #sm_menu_ham,
  .sm_menu_outer {
    display: none;
  }
}
@media (max-width:320px){
.sm_menu_outer .mobile_menu a{padding: 10px 15px;}
/*.sm_menu_outer {height: calc(100vh - 187px);}  */   
}
@media (max-width: 400px) {
#sm_menu_ham{width: 25px;height: 20px;top:20px;}
/*.sm_menu_outer {height: calc(100vh - 187px);}     */
}

@media (min-width:321px) and (max-width:767px){
.sm_menu_outer .mobile_menu a{padding: 10px 15px;}
/*.sm_menu_outer {height: calc(100vh - 10vh);}  */
}
@media (min-width:767px) and (max-width:991px){
#sm_menu_ham{right:35px;top:20px;}    
/*.sm_menu_outer {height: calc(100vh - 155px);}   */  
.sm_menu_outer.slide .mobile_menu li.hasChild > a{   
background:url("../img/next.svg") no-repeat scroll 95% center / 4% auto;}
.sm_menu_outer .mobile_menu a{padding: 20px 37px;}
.sm_menu_outer .mobile_menu li.back a {
padding: 10px 10px 10px 100px;
background: url("../img/back.svg") no-repeat scroll 60px center / 3% auto;}    
}
@media (min-width:769px) and (max-width:1023px){
#sm_menu_ham{right:60px;top:20px;}    
/*.sm_menu_outer {height: calc(100vh - 155px);}  */   
.sm_menu_outer.slide .mobile_menu li.hasChild > a{   
background:url("../img/next.svg") no-repeat scroll 93% center / 4% auto;}
.sm_menu_outer .mobile_menu a{padding: 20px 62px;} 
.sm_menu_outer .mobile_menu li.back a {
padding: 10px 10px 10px 100px;
background: url("../img/back.svg") no-repeat scroll 60px center / 3% auto;}
}
    
