@keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
#overlay-button {
  position: absolute;
  right: 1em;
  top: 1em;
  padding: 26px 11px;
  z-index: 105;
  cursor: pointer;
  user-select: none;
}
#overlay-button span {
  height: 4px;
  width: 35px;
  border-radius: 2px;
  background-color: #245e97;
  position: relative;
  display: block;
  transition: all .2s ease-in-out;
}
#overlay-button span:before {
  top: -10px;
  visibility: visible;
}
#overlay-button span:after {
  top: 10px;
}
#overlay-button span:before, #overlay-button span:after {
  height: 4px;
  width: 35px;
  border-radius: 2px;
  background-color: #245e97;
  position: absolute;
  content: "";
  transition: all .2s ease-in-out;
}
#overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
  background: #245e97;
}

input[type=checkbox] {
  display: none; ;
    transition: 2s;
  
}

input[type=checkbox]:checked ~ #overlay {
  visibility: visible; 
}

input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
  background: transparent;
  
  
}
input[type=checkbox]:checked ~ #overlay-button span:before {
  transform: rotate(45deg) translate(7px, 7px);
  background: #fff;

}
input[type=checkbox]:checked ~ #overlay-button span:after {
  transform: rotate(-45deg) translate(7px, -7px);
  background: #fff;


}

#overlay {
  height: 100vh;
  width: 100vw;
  background: #245e97;
  z-index: 101;
  visibility: hidden;
  position: fixed;
  /*font-family: "Kosugi Maru", serif*/
}
#overlay.active {

}
#overlay ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 100vh;
  padding-left: 0;
  list-style-type: none;
}
#overlay ul li {
  /*padding: 1em;*/
  padding: .4em;
}
#overlay ul li a {
  color: #fff;
  text-decoration: none;
  /*font-size: 1.5em;*/
  font-size: 1.1em;
    font-weight: normal;
}
#overlay ul li a:hover {
  color: #ccc!important;
}



@media screen and (min-width: 1001px) {
#overlay-button {
    display: none;
}

#overlay {
  visibility:inherit; 
  position: absolute;
  right: 2em;
  top: 1em;
  height: auto;
  width: auto;
    display: inline-block;
  background: none;
}
    
#overlay ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction:row;
  text-align: center;
  height: auto;
  padding-left: 0;
  list-style-type: none;
} 
    
#overlay ul li {
  /*padding: 1em;*/
  padding:0 .6em;
}

#overlay ul li a {
  color: #333;
  text-decoration: none;
  font-size: .8em;
}
    
    
    
    
    
}
    
    
    