/*
 * Made by Erik Terwan
 * 24th of November 2015
 * MIT License
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */

nav {
    position: relative;
    z-index: 1000;
    width: 100%;
    clear: none;
}
#menuToggle {
  display: block;
  top: 50px;
  left: 50px;
  text-align: left;
  -webkit-user-select: none;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  margin-left: 30px;
  margin-top: 6%;
}

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

/**STICKY**/
    header.sticky #menuToggle { margin-top: 1.4%; }
    header.sticky #menu { margin: -100px 0 0 -80px; padding: 130px 0 70px 75px;}

#menuToggle input {
  display: block;
  width: 50px;
  height: 50px;
  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;
  margin-left: 30px;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: rgba(12,49,60,1);
  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: rgba(12,49,60,1);
}

/*
 * 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 {
  position: absolute;
  width: 300px;
  margin: -100px 0 0 -40px;
  padding: 130px 0px 50px 75px;
  background: #208798;
  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, #menu li a {
  padding: 8px 0;
  line-height: 20pt;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 300;
  color: #fff;
  position: relative;
  font-size: 24px;
  letter-spacing: 0;
}
#menu li li {
  list-style-type: none;
  padding: 5px 0;
  line-height: 16pt;
  font-weight: 300;
  color: #b8c7c8;
}

#menu li:hover { color: rgba(12,49,60,1); cursor: pointer; transition: 0.5s ease;}
#menu li a:hover { color: rgba(12,49,60,1); cursor: auto;}
#menu li.active { color: #000; font-weight: 600;}

#menu li li:hover { color: rgba(12,49,60,1); cursor: pointer; transition: 0.5s ease;}

#menuToggle input:checked ~ ul {
  transform: none;
}


@media only screen and (min-width: 681px) {
    #menuToggle { margin-top: 3%; }
    #menu {
      width: 300px;
      margin: -100px 0 0 -40px;
      padding: 130px 0 70px 65px;
    }
    /**STICKY**/
    header.sticky #menuToggle { margin-top: 1.2%; }
    header.sticky #menu { margin: -100px 0 0 -80px; padding: 130px 0 70px 75px;}
}


@media only screen and (min-width: 1000px) {
    #menuToggle, header.sticky #menuToggle {
        margin-left: 0; margin-top: 22px;}
    header.sticky #menu { 
    right: 20px; margin: -150px 0 0 -80px;}
    
    #menuToggle span { display: none;}
    #menu {
      clear: both;
      float: left;
      display: block;
      width: 80%;
      margin: 0 0 0 18%;
      padding: 0;
      background: none;
      transform: none;
      list-style: none;
      transition: 0.5s ease;
      position: absolute;
      color: rgba(12,49,60,1);
      text-align: right;
    }

    #menu li, #menu a li, #menu li a { font-family: 'Google Sans Flex', sans-serif; display: inline-block; cursor: pointer; font-size: 15px; font-weight: 400; padding: 4px 9px 2.5px; color: rgba(12,49,60,1); text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s ease;}
    #menu li.active, #menu li a.active { color: rgba(12,49,60,1); font-weight: 700; text-decoration: none;}
    #menu li:hover { color:#FF5E78; cursor: pointer; transition: 0.3s ease; padding: 4px 9px 2.5px;}

    #menu li li {
        padding: 0px 10px;  
        font-weight: 400;
        color: rgba(12,49,60,1);
        width: 100%;
        text-align: left;
    }
    #menu li li:hover {
      color: #FF5E78;
      cursor: pointer;
      transition: 0.5s ease;
    }
  
}