/* 
 * By Eduardo Fernandez (https://edufdez.es)
 * For Back Pain Games (https://backpain.fun) 
 * All right reserved.
 */

#hamburger-menu {
  display: none;
  width: 30px;
  height: 30px;
  border: none;
  padding: 0px;
  margin: 20px;
  background: linear-gradient(
    to bottom,
    #000,
    #000 20%,
    white 20%,
    white 40%,
    #000 40%,
    #000 60%,
    white 60%,
    white 80%,
    #000 80%,
    #000 100%
  );
}

#hamburger-menu #sidebar-menu {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: -250px;
  width: 200px;
  height: 100%;
  background-color: #fff;
  transition: 0.3s;
  padding: 0px 10px;
  box-sizing: border-box;
  z-index: 2;
}

#hamburger-menu #sidebar-menu img {
  padding: 0;
  margin: 0;
  rotate: -90deg;
  width: 20%;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  background: black;
  z-index: 1;
}

#main-menu {
  padding-top: 0.5vh;
  padding-bottom: 1.25vw;
}

#main-menu ul {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}

#main-menu li {
  list-style-type: none;
  font-size: 2rem;
}

#main-menu a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #000;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

#main-menu a:hover {
  text-decoration: underline;
}

#hamburger-menu ul {
  padding-left: 0px;
}

#hamburger-menu li {
  list-style-type: none;
  line-height: 3rem;
}

#hamburger-menu a {
  color: #000;
  font-size: 1.3rem;
  text-decoration: none;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

#hamburger-menu a:hover {
  text-decoration: underline;
}

#hamburger-input {
  display: none;
}

#hamburger-input:checked + #hamburger-menu #sidebar-menu {
  visibility: visible;
  right: 0;
}

#hamburger-input:checked ~ .overlay {
  visibility: visible;
  opacity: 0.4;
}

@media screen and (max-width: 750px) {
  #main-menu {
    display: none;
  }
  #hamburger-menu {
    display: inline;
  }
}
