
#nav .nav_li a {
  display: flex;
  color: #333333;
  position: relative;
}
#nav .menu-item-has-children .sub-menu {
  display: none;
}
@media only screen and ( max-width : 767px ) {
  .overlay {
    width: 0;
    height: 0;
    position: fixed;
    z-index: 11;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .5s;
    background: rgba(255,255,255,.7);
  }
  .overlay.open {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  #main {
    transition: all .5s;
    min-height: 100vh;
  }
#main.open {
	/* position: fixed; */
	width: 100%;
}
  #menu_btn {
    top: 8px;
    right: 8px;
    transition: .3s;
    cursor: pointer;
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
  }
  .menu-trigger {
    width: 18px;
    height: 16px;
    position: relative;
  }
  .menu-trigger span {
    display: inline-flex;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #016f01;
    transition: all .5s;
  }
  .menu-trigger span:nth-of-type(1) {
    top: 0;
  }
  .menu-trigger span:nth-of-type(2) {
    width: 70%;
    top: 7px;
  }
  .menu-trigger span:nth-of-type(3) {
    bottom: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(1) {
    transform: translateY(7px) rotate(-45deg);
  }
  #menu_btn.active .menu-trigger span:nth-of-type(2) {
    opacity: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(3) {
    transform: translateY(-7px) rotate(45deg);
  }
  #nav {
    width: 280px;
    height: 100%;
    overflow: auto;
    padding: 90px 0;
    background: rgba(1,111,1,0.9);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12;
    transform: translate(280px);
    transition: all .5s;
  }
  #nav.open {
    transform: translateZ(0);
  }
  #nav .nav {
  margin:0;
  }
  #nav .nav_li {
    padding: 0 1rem;
    list-style: none;
  }
  #nav .nav_li a {
    position: relative;
    padding: 20px;
    color: #ffffff;
  }
  #nav .menu-item-has-children .sub-menu {
    padding: 20px;
  }
  #nav .menu-item-has-children > a:first-of-type {
    position: relative;
    padding-right: 2em;
  }
  #nav .menu-item-has-children > a.open:first-of-type {
    color: #cccccc;
  }
  #nav .menu-item-has-children .sub-menu .sub-menu_li {
    padding: 0;
    margin-bottom: 20px;
  }
  #nav .menu-item-has-children .sub-menu .sub-menu_li:last-child {
    margin-bottom: 0;
  }
  #nav .menu-item-has-children .sub-menu .sub-menu_li a {
    padding: 0;
  }
#nav .menu-item-has-children > a:after,#nav .menu-item-has-children > a:before {
  display: flex;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  right: 20px;
  margin: auto;
  width: 10px;
  height: 1px;
  background: #fff;
  transition: .2s;
}
#nav .menu-item-has-children > a:after {
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
}
#nav .menu-item-has-children > a.open:before{
  transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
}
#nav .menu-item-has-children > a.open:after{
  background: transparent;
}
}

@media print, screen and ( min-width : 768px ) {
  #menu_btn,.overlay {
    display: none;
  }
  #nav .nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
  }
  #nav .nav_li {
    position: relative;
  }
  #nav .nav_li a {
    padding: 0 1rem;
  }
  #nav .menu-item-has-children > a {
    /* padding-right: 40px; */
  }
  #nav .menu-item-has-children > a.open:first-of-type,#nav .current-menu-item a {
  }
  #nav .current-menu-item .sub-menu_li a {
    color: #333333;
  }
  #nav .nav_li.menu-item-has-children {
    position: unset;
  }
  #nav .nav_li .sub-menu {
    flex-direction: row;
    background: #fff;
    position: absolute;
    width: 100vw;
    left: 50%;
    /* top: 100%; */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 1rem 1rem;
    z-index: 999;
    border-top: 1px solid #d8d8d8;
  }
    #nav .nav_li .sub-menu_flex {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }
  #nav .nav_li .sub-menu .sub-menu_li {
    text-align:center;
    width: 12%;
  }
    #nav .nav_li .sub-menu .sub-menu_h3 {
      width:20%;
    }
  #nav .nav_li .sub-menu .sub-menu_li a {
    line-height: 1.6em;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #nav .nav_li .sub-menu .sub-menu_li a:hover {
  }
}
