.menu-button-container {
  display: none;
  position: absolute;
  top: 1rem;
  right: 4%;
  height: 24px;
  /* width: 32px; */
  width: 28px;
  cursor: pointer;
  z-index: 100;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
  /* border-radius: 100px; */
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  opacity: .5;
}
@media only screen and (max-width: 768px) {
  .menu-button-container {
    display: block;
    top: 1.4rem;
  }
}
.menu-button-container:hover {
  opacity: .7;
}
.menu-button-container.active .top {
  -webkit-transform: translateY(11px) translateX(0) rotate(45deg);
          transform: translateY(11px) translateX(0) rotate(45deg);
  background: #FFF;
}
.menu-button-container.active .middle {
  opacity: 0;
  background: #FFF;
}
.menu-button-container.active .bottom {
  -webkit-transform: translateY(-11px) translateX(0) rotate(-45deg);
          transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: #FFF;
  top: 22px;
}
.menu-button-container span {
  background: #FFF;
  border: none;
  /* height: 2px; */
  height: 1px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}
.menu-button-container span:nth-of-type(2) {
  /* top: 11px; */
  top: 8px;
}
.menu-button-container span:nth-of-type(3) {
  /* top: 22px; */
  top: 16px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  z-index: 2;
  background: rgba(0,0,0,.90);
  -webkit-backdrop-filter: saturate(90%) blur(20px);
  backdrop-filter: saturate(90%) blur(20px);
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  height: 100%;
}
.overlay.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}
.overlay nav {
  position: relative;
  height: 50%;
  top: 45%; /*previously 50%*/
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  text-shadow: 0px 1px 0px rgba(0,0,0,1);
}
.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
  width: 70vmin;
}
.overlay ul li {
  display: block;
  height: 25%;
  height: calc(100% / 4);
  min-height: 50px;
  position: relative;
  opacity: 0;
}
.overlay ul li a {
  display: block;
  position: relative;
  color: #FFF;
  text-decoration: none;
  overflow: hidden;
  padding: 1rem 0;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 150px 50px;
  /* background: rgba(255,255,255,.09); */
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#1a1a1a+0,2a2a2a+100&0.9+0,0.95+100 */
  background: -moz-linear-gradient(top,  rgba(26,26,26,0.9) 0%, rgba(42,42,42,0.95) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  rgba(26,26,26,0.9) 0%,rgba(42,42,42,0.95) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  rgba(26,26,26,0.5) 0%,rgba(42,42,42,0.55) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e61a1a1a', endColorstr='#f22a2a2a',GradientType=0 ); /* IE6-9 */
  box-shadow: 0px 1px 1px rgba(0,0,0,.25);

  letter-spacing: .2rem;
  font-weight: 300;
  font-family: "paralucent", sans-serif;

  -webkit-transition: all .35s ease;
  transition: all .35s ease;
}
.overlay ul li a:hover {
  transform: scale(1.05);
  color: #262626;
  text-shadow: 0px 1px 0px rgba(255,255,255,1);
  border: 1px solid rgba(255,255,255,1);
  background: linear-gradient(to bottom, rgba(196,196,196,0.9) 0%,rgba(255,255,255,0.95) 100%);
}
.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 100%;
}
.overlay ul li a:focus {
  color: rgba(255,255,255,.65);
  text-shadow: 1px 1px 1px rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.01);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  background: rgba(38, 38, 38, .5);
  background: -webkit-radial-gradient(bottom, rgba(38, 38, 38, .5), rgba(11, 11, 11, .5));
  background: -moz-radial-gradient(bottom, rgba(38, 38, 38, .5), rgba(11, 11, 11, .5));
  background: radial-gradient(to top, rgba(38, 38, 38, .5), rgba(11, 11, 11, .5));
}
.overlay ul li a:active, .overlay ul li a:focus {
  transform: scale(.9);
}
.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 100%;
  /* background: #000;
  opacity: 0.25; */
  background: rgba(0, 0, 0, 0.05);
  -webkit-transition: .35s ease;
  transition: .35s ease;
}

@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}
