#menuBackg {
  top: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none; 
}

#menu {
  position: relative; 
  margin-left: 5%;
  top: 0.5vw;
  overflow: visible; 
  z-index: 100;    
}

#hamburger {
  position: relative;
  display: block;
  width: 10%;
  z-index: 1;
  left: 6px;
  top: 19px;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
}
#hamburger input {
  display: block;
  width: 100%;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;

}

#hamburger span {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 5px;
  background: white;
  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;
}

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

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

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

#hamburger input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0, 2);
}

#hamburger input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu_items {
  position: absolute;
  width: 310px;
  height: 220px;
  margin: -100px -1000px;
  padding: 40px;  
  padding-top: 125px;
  background: rgba(12, 11, 11, 0.7); /*transparent background for the popups*/
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
 
}

#menu_items li {
  width: 14vw;
  list-style-type: none;
  color: white;
  padding: 2% 0;
  font-size: 1.1vw;
  font-family: "Titillium Web";
  cursor: pointer;
  border-bottom: 1px solid white;
}
#menu_items a {
  text-decoration: none;
  color: white;
}

#hamburger input:checked ~ #menu_items {
  transform: translateX(1000px);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}


@media screen and (max-width: 700px) {
  #menu_items li {
    width: 23vw;
    font-size: 2vw;
  }
  #menu_items {
    left: -80%;
  }
  #hamburger span {
    width: 21px;
    height: 1px;
  }
}
@media screen and (max-width: 600px) {
  #hamburger {
    margin-top:-2%;
  }
}
@media screen and (max-width: 300px) {
  #menu_items {
    top: 30%;
    left: -50%;
  }
}
