#mainnav {
  ul.menu {
    padding: 0;
    list-style: none;
    overflow: hidden;
    text-align: center;

    li {
      display: inline-block;

      a {
        text-decoration: none;
      }
    }
  }
}

.menu-item a {
  position: relative;
  display: inline-block;
  margin: 15px;
  padding: 10px;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  transition: color 0.3s;
  outline: none;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2em;
}

.menu-item a:first-child {
  margin: 15px 15px 15px 0;
}

.menu-item a::before,
.menu-item a::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  content: '';
  opacity: 0;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  -moz-transition: opacity 0.3s, -moz-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  transform: translateY(-10px);
}

.menu-item a::before {
  top: 0;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  transform: translateY(-10px);
}

.menu-item a::after {
  bottom: 0;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  transform: translateY(10px);
}

.menu-item a:hover,
.menu-item a:focus {
  color: #000;
}

.menu-item.current_page_item a::before,
.menu-item.current_page_item a::after,
.menu-item a:hover::before,
.menu-item a:focus::before,
.menu-item a:hover::after,
.menu-item a:focus::after {
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}


/*! responsive-nav.js 1.0.39 by @viljamis */

.nav-collapse ul {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  list-style: none;
}

.js .nav-collapse {
  clip: rect(0 0 0 0);
  max-height: 0;
  position: absolute;
  display: block;
  overflow: hidden;
  zoom: 1;
}

.nav-collapse.opened {
  max-height: 9999px;
}

.nav-toggle {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

@media screen and (min-width: $nav-mobile-width) {
  .js .nav-collapse {
    position: relative;
  }

  .js .nav-collapse.closed {
    max-height: none;
  }

  #nav-icon,
  .nav-toggle {
    display: none;
  }
}


@media screen and (max-width: ($nav-mobile-width - 1)) {

  .nav-collapse {
    margin: 20px 0;
  }

  .infinite-scroll {
    margin-top: 30px;
  }

  .nav-collapse li {
    width: 100%;
    display: block;
  }

  .menu-item a,
  .menu-item a:first-child {
    margin: 10px 0;
  }
}


@media screen and (max-width: 480px) {
  .menu-item a,
  .menu-item a:first-child {
    margin: 5px 0;
  }
}


#nav-icon {
  width: 50px;
  height: 39px;
  position: absolute;
  right: 20px;
  top: 20px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 9px;
  width: 100%;
  background-color: #000;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
  top: 15px;
}

#nav-icon span:nth-child(4) {
  top: 30px;
}

#nav-icon.active span:nth-child(1) {
  top: 15px;
  width: 0%;
  left: 50%;
}

#nav-icon.active span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon.active span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon.active span:nth-child(4) {
  top: 15px;
  width: 0%;
  left: 50%;
}

@media screen and (max-width: 459px) {
  #nav-icon {
    width: 38px;
    height: 32px;
    top: 30px;
  }

  #nav-icon span {
    height: 7px;
  }

  #nav-icon span:nth-child(2),
  #nav-icon span:nth-child(3) {
    top: 12px;
  }

  #nav-icon span:nth-child(4) {
    top: 25px;
  }
}

@media screen and (max-width: 375px) {
  #nav-icon {
    top: 20px;
  }
}
