
/* ====================================
Navigation 
==================================== */

.overlay-navigation {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 100%, 0.2);
  display: none;
  opacity: 0;
}

nav,
nav ul {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

nav ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
}

nav ul li {
  -webkit-flex-basis: 20%;
  -ms-flex-preferred-size: 20%;
  flex-basis: 20%;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  display: none;
  position:relative;
}
nav ul li div{
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
  min-height:80px;
}
nav ul li span{
  color: #FFF;
  font-size: 6rem;
  text-align: center;
  width: 100%;
  display: block;
  opacity: 0.25;
  font-weight: 600;
  line-height:6rem;
  padding-bottom:30px;
}
nav li a {
  position: relative;
  top: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 4px;
  text-decoration: none;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0;
}

nav li a:before {
  content: '';
  width: 20%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 100;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  opacity: 0;
  -webkit-transition: all .2s linear;
  transition: all .2s linear;
}

nav li a:after {
  content: attr(data-content);
  font-size: 0.7rem;
  -webkit-transition: all .2s linear;
  transition: all .2s linear;
  opacity: 0;
  position: absolute;
  z-index: 100;
  color: #fff;
  display: block;
  margin-right: auto;
  margin-left: auto;
  left: 0;
  right: 0;
  bottom: -50px;
  text-transform: none;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
}

nav li a:hover:before {
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
  opacity: 1;
}

nav li a:hover:after {
  -webkit-transform: translateY(-115px);
  -ms-transform: translateY(-115px);
  transform: translateY(-115px);
  opacity: 1;
}

nav li:nth-of-type(1) {
  background-color: #d0262f;
}

nav li:nth-of-type(2) {
  background-color: #ee6a32;
}

nav li:nth-of-type(3) {
  background-color: #90c746;
}

nav li:nth-of-type(4) {
  background-color: #1baba0;
}

nav li:nth-of-type(5) {
  background-color: #67358a;
}


/* ====================================
Burger king
==================================== */

.open-overlay {
  position: absolute;
  right: 0;
  top: -0.5rem;
  z-index: 100;
  width: 34px;
  display: block;
  height:30px;
  cursor: pointer;
}

.open-overlay span {
    display: block;
    height: 1px;
    background-color: #fff;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.6s;
    position:absolute;
    top: 13px;
    left:0;
    width: 100%;
}
.open-overlay span:first-child {
  top: 5px;
}

.open-overlay span:last-child {
  top: 21px;
} 

.animate-top-bar {
  -webkit-animation: animate-top-bar .6s linear 1 both;
  animation: animate-top-bar .6s linear 1 both
}

.animate-bottom-bar {
  -webkit-animation: animate-bottom-bar .6s linear 1 both;
  animation: animate-bottom-bar .6s linear 1 both
}

.animate-middle-bar {
  -webkit-animation: animate-middle-bar .6s linear 1 both;
  animation: animate-middle-bar .6s linear 1 both
}

.animate-out-top-bar {
  -webkit-animation: animate-out-top-bar .6s linear 1 both;
  animation: animate-out-top-bar .6s linear 1 both
}

.animate-out-bottom-bar {
  -webkit-animation: animate-out-bottom-bar .6s linear 1 both;
  animation: animate-out-bottom-bar .6s linear 1 both
}

.animate-out-middle-bar {
  -webkit-animation: animate-out-middle-bar .6s linear 1 both;
  animation: animate-out-middle-bar .6s linear 1 both
}

.open-overlay.close-menu span {
  position:absolute;
  top: 13px;
  left:0;
  width: 100%;
}

.open-overlay.close-menu span:nth-child(2) {
  opacity:0;
}

.open-overlay.close-menu span:first-child {
  transform: rotate(45deg);
}

.open-overlay.close-menu span:last-child {
  transform: rotate(-45deg);
} 


/* ====================================
Animation keyframes
==================================== */

@keyframes animate-top-bar {
  0% {
    background-color: #fff;
  }
  50% {
    -webkit-transform: translateY(9px);
    transform: translateY(9px)
  }
  80% {
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
    background-color: #fff
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background-color: #29363B;
  }
}

@keyframes animate-bottom-bar {
  0% {
    background-color: #fff;
  }
  50% {
    -webkit-transform: translateY(-9px);
    transform: translateY(-9px)
  }
  80% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    background-color: #fff;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background-color: #29363B;
  }
}

@keyframes animate-middle-bar {
  0% {
    background-color: #fff;
  }
  80% {
    background-color: #fff;
  }
  100% {
    background-color: #29363B;
  }
}

@keyframes animate-out-top-bar {
  0% {
    background-color: #29363B
  }
  50% {
    -webkit-transform: translateY(9px);
    transform: translateY(9px)
  }
  80% {
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
    background-color: #29363B
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background-color: #FFF;
  }
}

@keyframes animate-out-bottom-bar {
  0% {
    background-color: #29363B
  }
  50% {
    -webkit-transform: translateY(-9px);
    transform: translateY(-9px)
  }
  80% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    background-color: #29363B;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background-color: #FFF;
  }
}

@keyframes animate-out-middle-bar {
  0% {
    background-color: #29363B
  }
  80% {
    background-color: #29363B;
  }
  100% {
    background-color: #fff;
  }
}

.home a {
  color: #222;
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  position: absolute;
  z-index: 10;
  top: 50px;
  left: 50px;
  padding-bottom: 3px;
  border-bottom: 1px solid #222;
}
@media (max-width: 1200px) {
  nav li a:before {
    width:20px;
  }
}

@media (max-width: 767px) {
  nav ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  nav{
    overflow-y:auto;
    overflow-x:hidden;
  }
  nav ul li {
    height: 20%;
    min-height:80px;
  }
  nav ul li a {
    font-size: 11px;
  }
  nav li a:after {
    font-size: 0.6rem;
    bottom: -25px;
  }
  nav li a:hover:after {
    transform: translateY(0);
  }
  .open-overlay {
    right: 1rem;
  }
  nav li a:before {
    width: 25px;
  }
  .open-overlay {
    position: fixed;
    bottom: -17px;
    background: #ffffff;
    padding: 14px 27px 20px 12px;
    border-radius: 50%;
    box-shadow: 0px 0px 20px #00000042;
    box-sizing: content-box;
    right: -20px;
    height: 34px;
    width: 34px;
    top: auto;
  }
  .open-overlay span{
    background-color:#fff;
    position:relative;
    margin-top:0;
    width: 70%;
    margin-left: 8px;
  }
  .open-overlay.close-menu span {
    position:relative;
    top: 13px;
    left:0;
    width: 100%;
  }
  
  .open-overlay.close-menu span:nth-child(2) {
    opacity:0;
  }
  
  .open-overlay.close-menu span:first-child {
    transform: rotate(45deg);
  }
  
  .open-overlay.close-menu span:last-child {
    transform: rotate(-45deg);
  } 
  nav ul li span {
    width: 100px;
    line-height: 6rem;
    padding-bottom: 0;
    position: absolute;
    left: 0;
    top: calc(50% - 3rem);
  }
  nav li a:after,nav li a:before{
    display: none;
  }
}