

.header-top {
  background-color: #111120;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5vw;

  text-decoration: none;
  color: inherit
}

.header-title {
  margin-right: 10vw;
  font-size: 3rem
}

@media only screen and (max-width: 650px) {
  .header-top {
    flex-direction: column;
  }
  .header-title {
    margin-right: initial;
  }
}

.header-bottom {
  background-color: #1a1a30;
  font-weight: bold;
  padding: 10px 0;
}

.header-bottom ul {
  display: flex;
  justify-content: center;
  margin: 0;
}

.header-bottom li {
  margin: 0 2vw;
  list-style-type: none;
}

.header-bottom a {
  color: inherit;
  text-decoration: none;
}

.header-bottom a:hover {
  text-decoration: underline;
}

/* Menu */
#menuToggle
{
  display: none;
  position: relative;
  padding-left: 25px;
  
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

@media only screen and (max-width: 650px) {
  #menuToggle {
    display: block;
  }
  .header-bottom {
    display: none;
  }
}

#menuToggle a
{
  text-decoration: none;
  color: #cdcdcd;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: #8B8BC1;
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: 0;
  left: 20px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  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;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

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

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

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

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  display: initial;
  position: absolute;
  margin: -8px 0 0 -45px;
  padding: 50px;
  padding-top: 80px;
  padding-bottom: 18px;
  top: 0;
  left: 0;
  right: 0;
  
  background: #111120f6;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}