
#menuToggle {
  display: block;
  position: fixed;
  top: 50px;
  right: 50px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

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

#menuToggle a:hover {
  color: skyblue;
}


#menuToggle input {
  display: block;
  width: 40px;
  height: 36px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0;
  z-index: 2;
  
  -webkit-touch-callout: none;
}


#menuToggle .menu-line {
  display: block;
  width: 35px;
  height: 4px;
  margin-bottom: 6px;
  position: relative;
  
  background: #fff;
  border-radius: 10px;
  
  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 .menu-line:first-child {
  transform-origin: 0% 0%;
}

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

#menuToggle input:checked ~ .menu-line {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
}

#menuToggle input:checked ~ .menu-line:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

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

#menu {
  position: fixed;
  width: 200px;
  margin: -100px 0px 0 200px;
  padding: 50px;
  padding-top: 125px;
  right: 0;
  height:  100% !important;
  background-color: rgba(160, 180, 200, .4);  
  backdrop-filter: blur(5px);
  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);
}

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

#menu li {
  padding: 10px 0;
  font-size: 22px;
  color: white;
  text-shadow: 1px 1px 1px black;
}
p {
  font-size: 22px;
}

@media screen and (orientation: portrait) {
  #menuToggle .menu-line {
    width: 67px;
    height: 8px;
    margin-bottom: 12px;
  }
  #menuToggle input {
    width: 80px;
    height: 72px;
  }
  #menu li {
    padding: 20px 0;
    font-size: 40px !important;
  }
  #menu {
    width:  300px;
    margin-top: -110px;
  }
  p {
    font-size: 34px;
  }
}