.menu-trigger {
    cursor: pointer;
    display: block;
    position: fixed;
    right: 20px;
    top: 22px;
    z-index: 5000;
  }
  
  .menu-trigger::after {
    content: 'MENU';
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
  }
  
  .menu-trigger.active::after {
    content: 'CLOSE';
    display: block;
    font-size: 13px;
  }
  
  .menu-trigger span {
    background-color: #000;
    display: block;
    margin-bottom: 8px;
    height: 2px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
  }
  
  .menu-trigger span:nth-child(1) {
    width: 20px;
    height: 2px;
    margin-left: auto;
  }
  
  /*.menu-trigger span:nth-child(2) {
    width: 100%;
  }*/

  .menu-trigger.active span:nth-child(1) {
    transform: translateY(0px) rotate(22deg);
  width: 50px;
  }

  .menu-trigger.active span:nth-child(2) {
    transform: translateY(-10px) rotate(-22deg);
  width: 50px;
  }
  
  .menu-trigger.active span { 
    background-color: #fff;
    margin-top: 5px;
  }

  #spnav {
    background-color: rgba(0,0,0,0.9);
    display: block;
    overflow-y: auto;
    height: 100%;
    padding-top: 50px;
    position: fixed;
    right: -80%;
    top: 0;
    transition: right 0.3s ease-in-out;
    width: 80%;
    z-index: 1200;
  }
  #spnav.open { right: 0; }
  #spnav ul {
    list-style-type: none;
    padding: 0 0 50px;
    width: 90%;
    margin: 0 auto;
  }
  #spnav li a {
    color: #ffffff;
    display: block;
    padding: 14px 35px;
    position: relative;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
  }
  #spnav .sub-menu {
    display: none;
  }
  #spnav .menu-item-has-children {
    position: relative;
  }
  #spnav .menu-item-has-children a {
    background: none;
    position: relative;
    z-index: 1;
  }
  #spnav .toggle-icon {
  position: absolute;
  left: 0px;
  top: 16px;
  line-height: 26px;
  color: #fff;
  font-weight: bold;
  z-index: 2;
  cursor: pointer;
}
  #spnav .sub-menu li a {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    border-top: 1px solid #dddddd;
    font-size: 15px;
    white-space: nowrap;
  }
  #spnav .sub-menu li:last-child a {
    border-bottom: 1px solid #dddddd;
  }
  .overlay {
    background-color: rgba(0, 0, 0, .2);
    display: none;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
  }
  .overlay.open { display: block; }
