/* Important styles */
.menu-rel {
  position: relative;
}
.menu-pos {
  position: absolute;
  right: 330px;
  top: -19px;
  z-index: 999;
}
.menu-container {
 position: fixed;
}
#toggle {
  display: block;
    width: 42px;
    height: 30px;
    margin: 30px auto 10px;
    margin-left: 274px;
    padding: 17px 8px 23px 8px;
    background: rgb(108, 187, 184);
    border-radius: 2px;
}

#toggle span:after,
#toggle span:before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
}
#toggle span:after{
  top: 9px;
}
#toggle span {
  position: relative;
  display: block;
}

#toggle span,
#toggle span:after,
#toggle span:before {
  width: 100%;
  height: 5px;
  background-color: rgb(224, 255, 254);
  transition: all 0.3s;
  backface-visibility: hidden;
  border-radius: 2px;
}

/* on activation */
#toggle.on span {
  background-color: transparent;
}
#toggle.on span:before {
  transform: rotate(45deg) translate(5px, 5px);
}
#toggle.on span:after {
  transform: rotate(-45deg) translate(7px, -8px);
}
#toggle.on + #menu {
  opacity: 1;
  height: auto;
  visibility: visible;
}

/* menu appearance*/
#menu {
  position: relative;
  color: #999;
  width: 328px;
  height: 0px;
  margin: auto;
  text-align: center;
  background: var(--head);
  box-shadow: 0 1px 8px rgba(0,0,0,0.24);
  /* just for this demo */
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s;
}
#menu:after {
  position: absolute;
  top: -16px;
  right: 21px;
    content: "";
    display: block;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid var(--head);
}
#menu ul {
  margin-left: 0;
  margin-bottom: 0;
}
#menu li {
  margin-bottom: 0;
  padding: 0;
}
ul, li, li a {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0;
}
#menu li a, #menu li a:visited {
      padding: 11px 5px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 116%;
    font-weight: bold;
    transition: all .2s;
}
#menu li a {
  border-bottom: 1px dotted rgba(191, 250, 254, 0.38);
}
#menu li a:hover,
#menu li a:focus {
  background: var(--button-hover);
  color: #fff;
}