header .hamburguer
{
  display:none;
  grid-column: 4;
  align-self: center;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

header .hamburguer input
{
  display: block;
  position: absolute;
  cursor: pointer;
  opacity: 0; /* hide the little box */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
  width: 100%;
  height: 100%;
}

/*Just a quick hamburger made with span*/
header .hamburguer span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #343434;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

header .hamburguer span:first-child
{
  transform-origin: 0% 0%;
}

header .hamburguer span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}



/*Transform all the slices of hamburger into a crossmark.*/
header .hamburguer input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, 0px);
}

/* let's hide the middle one.*/
header .hamburguer input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/* and the last one should go the other direction*/
header .hamburguer input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/* Menu is placed above the viewport*/
header .hamburguer ul
{
  position: fixed;
  display:flex;
  flex-direction: column;
  align-items:center;
  left:0;
  top:0;
  width: 100vw;
  padding-top:2.5em;
  opacity: .95;
  background: #f5f6f8;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */

  transform-origin: 0% 0%;
  transform: translate(0, -100%);

  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

header .hamburguer ul li
{
  font-size: 1.7em;
  margin-bottom:40px;
}

/* And let's slide it in from the top*/
header .hamburguer input:checked ~ ul
{
  transform: none;
}
/* Only appear on mobile screen*/
@media only screen and (max-width: 600px) {
  header .hamburguer
  {
    display:block;
    grid-column: 4;
    align-self: center;
  }
}