.top-nav {
  position: fixed;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  //background-color: #00BAF0;
  //background: linear-gradient(to left, #f46b45, #eea849);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
  height: 50px;
  padding: 1em;
  top: 0;
  width: 100%;
}

.menu {
  display: flex;
  //flex-direction: row;
  list-style-type: none;
  //margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  //margin-top: 50px;
  left: 0;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.menu > lh, 
.menu > li {

  overflow: hidden;
}
.menu  {
  background-color: #1e273d;
}
.menu > lh,
.menu > li {
  display: flex;
  //justify-content: left;
  justify-content: center;
  margin: 0;
  padding: 0.5em 0;
  width: 100%;
  color: white;
  background-color: #1e273d;
}

.menu > li:not(:last-child) {
  //border-bottom: 1px solid #444;
}


.menu-button-container {
  //display: none;
  display: block;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:rgba(0,0,0,.2); position:absolute; width:42px; height:42px; border-radius:50%; right:10px; top:20px; z-index:1;
  //border: 2px solid rgba(1,204,255,.5);
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 24px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
  background: #fff;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


#menu-toggle ~ .menu  {
  height: 0;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked ~ .menu  {
  height: 100vh;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle ~ .menu  {
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle ~ .menu lh, 
#menu-toggle ~ .menu li {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;

  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked ~ .menu lh,
#menu-toggle:checked ~ .menu li {
  //border: 1px solid #333;
  height: auto;
  padding: 0.5em;
  //min-height: 50px !important;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked ~ .menu li:last-of-type{
  padding-bottom: 2rem;

}

a.menuitem, a.menuitem:visited, a.menuitem:active, a.menuitem:hover {
  color: #01ccff;
  text-decoration: none;
  font-size: 1.2rem;

} 

.menu-button-container {
  display: flex;
}