body {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  margin: 0;
  font-family: 'Kosugi Maru', sans-serif;
}

#wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.1);
  position: absolute;
  top: 0;
  left: 0;
}

/*===============
  HEADER
===============*/
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}
.navbar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: .5rem 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
}
.instagram {
  margin-right: 15px;
}
.instagram img {
  width: 40px;
  height: 40px;
  transition: all .5s linear 0s;
  cursor: pointer;
}
.instagram img:hover {
  transform: rotateZ(360deg);
}
/*===============
  MAIN CSS
===============*/
#background {
  width: 100%;
  height: 100%;
  background: center no-repeat url(../images/hero_sq.jpg);
  background-size: cover;
  position: fixed;
  z-index: -1000;
  animation-name: backgroundSlide;
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes backgroundSlide {
  0% {
    transform: translateX(200px);
  }
  100% {
    transform: translateX(0);
  }
}

.container {
  color: #fff;
  display: flex;
  flex-flow: column;
  justify-content: center;
  height: 100%;
}

.logo {
  text-align: center;
  align-self: center;
  height: auto;
  width: 200px;
  margin: 0;
  padding: 0;
  position: fixed;
}

h1 img {
  width: 200px;
  height: auto;
}

/*===============
  Hamburger
===============*/
svg {
  height: 80px;
  position: absolute;
  width: 80px;
}
.plates {
  display: flex;
  flex-wrap: wrap;
  max-height: 160px;
  width: auto;
}
@media (max-width: 640px) {
  .plates {
    width: auto;
  }
}
.plate {
  height: 80px;
  width: 80px;
}
.burger {
  filter: url(#gooeyness);
}
.x {
  transform: scale(0);
  transition: transform 400ms;
}
.line {
  fill: none;
  stroke: white;
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50%;
  transition: stroke-dasharray 500ms 200ms, stroke-dashoffset 500ms 200ms, transform 500ms 200ms;
}
.x .line {
  stroke-width: 5.5px;
}
.active .x {
  transform: scale(1);
  transition: transform 400ms 350ms;
}
/* El segundo plato */
.plate2 .line1 {
  stroke-dasharray: 21 185.62753295898438;
  transition-delay: 0;
}
.plate2 .line2 {
  stroke-dasharray: 21 178.6514129638672;
  transition-delay: 30ms;
}
.plate2 .line3 {
  stroke-dasharray: 21 197.92425537109375;
  transition-delay: 60ms;
}
.plate2 .line4 {
  stroke-dasharray: 21 190.6597137451172;
  transition-delay: 90ms;
}
.plate2 .line5 {
  stroke-dasharray: 21 208.52874755859375;
  transition-delay: 120ms;
}
.plate2 .line6 {
  stroke-dasharray: 21 186.59703063964844;
  transition-delay: 150ms;
}
.active.plate2 .line1 {
  stroke-dasharray: 5 185.62753295898438;
  stroke-dashoffset: -141px;
}
.active.plate2 .line2 {
  stroke-dasharray: 5 178.6514129638672;
  stroke-dashoffset: -137px;
}
.active.plate2 .line3 {
  stroke-dasharray: 5 197.92425537109375;
  stroke-dashoffset: -176px;
}
.active.plate2 .line4 {
  stroke-dasharray: 5 190.6597137451172;
  stroke-dashoffset: -159px;
}
.active.plate2 .line5 {
  stroke-dasharray: 5 208.52874755859375;
  stroke-dashoffset: -139px;
}
.active.plate2 .line6 {
  stroke-dasharray: 5 186.59703063964844;
  stroke-dashoffset: -176px;
}
.active.plate2 .x {
  transition: transform 400ms 250ms;
}

/*===============

===============*/
.menu-button {
  cursor: pointer;
  transition: all .5s linear 0s;
}
.menu-button:hover {
  transform: rotateZ(360deg);
}

.menu-bar {
  position: fixed;
  bottom: 0;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.9);
  overflow:hidden;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.4);
  z-index: 5;
  width: 0;
  max-width: 400px;
  max-height: 400px;
  height: 0;
  transition: all 0.5s ease-in-out;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.menu-bar p a {
  font-size: 200%;
  font-family: "Bebas Neue", sans-serif;
  font-weight: bold;
  line-height: 3em;
  letter-spacing: 2px;
  color: #c9c9c9;
}

.modal-window {
  display: flex;
  justify-content: center;
}

.open {
  width: 80%;
  height: 47%;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 25vh;
  min-height: 400px;
}

.menu-bar p {
  font-size: 15px;
  white-space: nowrap;
  color: #fff;
  line-height: 2em;
  text-align: center;
  margin-bottom: 5vh;
  transition: .5s;
  animation-name: textFadeOut;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes textFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.menu-bar p:last-child {
  margin-bottom: 0;
}

.open p {
  font-size: 15px;
  white-space: nowrap;
  animation-name: textFadeIn;
  animation-duration: .7s;
  animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
}
@keyframes textFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media screen and ( max-width: 425px ) {
  .open {
    width: 90%;
    height: 50vh;
    max-height: 50vh;
    min-height: 50vh;
    margin-top: 25vh;
    margin-bottom: 15vh;
  }
  .menu-bar p {
    font-size: 13px;
  }
  .open p {
    font-size: 13px;
  }
  .menu-button:hover {
    transform: none;
  }
  .instagram img:hover {
    transform: none;
  }
  .menu-bar.open p a {
    font-size: 6vw;
  }
}

@media screen and ( min-height: 850px ) {
  .open {
    height: 50vh;
    max-height: 50vh;
    margin-top: 25vh;
    margin-bottom: 25vh;
  }
}

@media screen and ( min-width: 426px ) and ( max-height: 850px ) {
  .open {
    height: 50vh;
    min-height: 50vh;
    max-height: 50vh;
    margin-top: 25vh;
    margin-bottom: 25vh;
  }
}
