@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,700|Karla&display=swap');

.brand{  
  position: fixed;
  top: 24px;
  left: 15px;
  height: 30px;
  z-index:3;
}
.brand a img{
  height: 30px;
  width: auto;
}

#overlay a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: white;
}
.button_container {
  position: fixed;
  top: 18px;  /* the default value 5% */
  right: 15px;  /* the default value 2% */
  height: 30px;  /* the default value 27px*/
  width: 35px; 
  cursor: pointer;
  z-index: 100;
  transition: opacity .25s ease;
}
.button_container:hover {
  opacity: .7;
}
.button_container.active{
  z-index: 100;
}
.button_container.active .top {
  transform: translateY(11px) translateX(0) rotate(45deg);
  background: #FFF;
}
.button_container.active .middle {
  opacity: 0;
  background: #FFF;
}
.button_container.active .bottom {
  transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: #FFF;
}
.button_container span {
  background: #ffffff;
  border: none;
  height: 5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .35s ease;
  cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 11px;
}
.button_container span:nth-of-type(3) {
  top: 22px;
}

.overlay {
  position: fixed;
  background: #222222;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, width .35s;
  overflow: hidden;
  z-index: 3;
}
.overlay.open {
  opacity: .9;
  visibility: visible;
  width: 100%;
}
.overlay.open li {
  animation: fadeInRight .5s ease forwards;
  animation-delay: .3s;
}
.overlay.open li:nth-of-type(2) {
  animation-delay: .35s;
}
.overlay.open li:nth-of-type(3) {
  animation-delay: .4s;
}
.overlay.open li:nth-of-type(4) {
  animation-delay: .45s;
}
.overlay.open li:nth-of-type(5) {
  animation-delay: .50s;
}
.overlay.open li:nth-of-type(6) {
  animation-delay: .55s;
}
.overlay.open li:nth-of-type(7) {
  animation-delay: .60s;
}

.overlay nav {
  position: relative;
  height: 60%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  text-align: center;
}
.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay ul li {
  display: block;
  height: 25%;
  height: calc(100% / 6);
  min-height: 50px;
  position: relative;
  opacity: 0;
}
.overlay ul li a {
  display: block;
  position: relative;
  color: #FFF;
  text-decoration: none;
  overflow: hidden;
}
.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 100%;
}
.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  transform: translateX(-50%);
  height: 3px;
  background: #FFF;
  transition: .35s;
}
#social-media{
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: center;
  column-gap: 30px;
}
#social-media a{  
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.5;
}

/* The @keyframes rule specifies the animation code , more info: https://www.w3schools.com/cssref/css3_pr_animation-keyframes.asp */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

/* PHONE*/
/* @media (max-width: 630px) {
  #social-media{
    grid-template-columns: auto auto;
  }
} */

