/* Header **/
#main-header {
  padding-top: 20px;
  min-height: 70px;
  border-bottom: rgb(52, 86, 185) 3px solid;
  background: rgba(255, 255, 255, 0.507);
}

#main-header a {
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
}

#main-header li {
  display: inline;
  padding: 0 20px 0 20px;
}

#main-header #header-image {
  float: left;
}

#main-header #header-image img {
  padding-top: 8px;
  margin: -19px 0 0 0;
  height: 70px;
}

#main-header #navbar {
  float: right;
  font-weight: 600;
}

#navbar a:visited {
  color: #333;
}

#navbar a:hover {
  color: royalblue;
  font-weight: 750;
  transition: all 0.2s ease-in-out;
}

#menuToggle {
  position: relative;
  top: 50px;
  left: 40px;
  display: block;
  width: 33px;

  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;

  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: #868686;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

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

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

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
   * 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 - create 'X'
   */
#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 {
  position: absolute;
  width: 300px;
  max-width: 250px;
  margin: -48px 0 0 -50px;
  padding: 50px;
  padding-top: 60px;

  background: #ededed;
  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);
}

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

#menu a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  padding-right: 15px;
}

#menu a:visited {
  color: #333;
}

#menu a:hover {
  color: royalblue;
  font-weight: 800;
  transition: all 0.2s ease-in-out;
}

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

@media only screen and (min-width: 768px) {
  #menuToggle {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  #navbar {
    display: none;
  }
}
