
body {
  padding: 0px;
  margin: 0px;
  font-size: 20px;
  min-height: 200vh;
  
}

.overlay{
    position: block;
    top: 0;
    left: 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 {
  display: flex;
  height: 60px;
  width: 40%;
  background: rgb(102, 160, 204);
  margin: 0px;  
  z-index: 9;
}

#main-menu ul {
  max-width: 800px;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  display: right;
  justify-content: space-evenly;
  align-items: center;
  z-index: 9;
}

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

#main-menu a {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
}

#main-menu a:hover {
    background: #98ba15;
    color: #ffffff;
}

#hamburger-input{
  display: none;
}

#hamburger-menu {
    position: fixed;
    float: right;
    top: 20px;
    left: 300px;
    width: 50px;
    height: 50px;
    display: none;
    border: none;
    padding: 0px;
    margin: 0px;
    background: linear-gradient(
      to bottom, 
      #98ba15, #98ba15 20%, 
      rgb(102,160,204) 20%, rgb(102,160,204) 40%, 
      #98ba15 40%, #98ba15 60%, 
      rgb(102,160,204) 60%, rgb(102,160,204) 80%, 
      #98ba15 80%, #98ba15 100%
    );
}

#hamburger-menu #sidebar-menu {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: -250px;
    width: 110px;
    height: 100%;
    background-color: rgb(102,160,204);
    transition: 0.3s;
    padding: 0px 10px;
    box-sizing: border-box;
}

#hamburger-menu h3 {
  color: #B9FAF8;
  font-size: 2.2rem;
}

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

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

#hamburger-menu a {
  color: #ffffff;
  font-size: 1.3rem;
  text-decoration: none;
}

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

#hamburger-input:checked + #hamburger-menu #sidebar-menu {
    visibility: visible;
    left: 0;
}
#hamburger-input:checked ~ .overlay{
   visibility: visible;
  opacity: 0.4;
}


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

