
/* https://codepen.io/designcouch/pen/hyFAD */

#hamburger {
  transition: .25s ease-in-out;
  box-sizing: border-box;
}


#menu-toggle #hamburger span {
  display: block;
  background: #ffffff;
  border-radius: 2px;
}

#menu-toggle {
    width: 50px;
    height: 50px;
    margin: 0;
    position: relative;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

#menu-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
}
#menu-toggle #hamburger {
  position: absolute;
  height: 100%;
  width: 100%;
}
#menu-toggle #hamburger span {
  width: 30px;
  height: 4px;
  position: relative;
  top: 10px;
  left: 10px;
  margin: 5px 0;
}
#menu-toggle #hamburger span:nth-child(1) {
  transition-delay: .5s;
}
#menu-toggle #hamburger span:nth-child(2) {
  transition-delay: .625s;
}
#menu-toggle #hamburger span:nth-child(3) {
  transition-delay: .75s;
}
#menu-toggle #cross {
  position: absolute;
  height: 100%;
  width: 100%;
  transform: rotate(45deg);
}
#menu-toggle #cross span:nth-child(1) {
  height: 0%;
  width: 4px;
  position: absolute;
  top: 10%;
  left: 23px;
  transition-delay: 0s;
    background: #ffffff;
}
#menu-toggle #cross span:nth-child(2) {
  width: 0%;
  height: 4px;
  position: absolute;
  left: 10%;
  top: 23px;
  transition-delay: .25s;
    background: #ffffff;
}

#menu-toggle.open #hamburger span {
  width: 0%;
}
#menu-toggle.open #hamburger span:nth-child(1) {
  transition-delay: 0s;
}
#menu-toggle.open #hamburger span:nth-child(2) {
  transition-delay: .125s;
}
#menu-toggle.open #hamburger span:nth-child(3) {
  transition-delay: .25s;
}
#menu-toggle.open #cross span:nth-child(1) {
  height: 80%;
  transition-delay: .625s;
}
#menu-toggle.open #cross span:nth-child(2) {
  width: 80%;
  transition-delay: .375s;
}
