.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 15000;
  top: 0;
  left: 0;
  background-color: #f5f5f5;
  opacity: 0.9;
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

 
.overlay-content ul{ list-style: none;}
.overlay-content ul li{ height: 14rem;}
.overlay-content ul li a, .overlay-content ul li a img, .overlay-content ul li a{ display: inline;vertical-align: middle;}
 
 
.overlay-content ul li a img{ margin: 3rem; height: 150px;}
.overlay ul li a {
  padding: 6rem 2rem;
  text-decoration: none;
  font-size: 6rem;
  color: #000;
  transition: 0.3s;
  cursor: pointer;
}

.overlay a:hover, .overlay a:focus {
  color: #aaa;
  cursor: pointer;
}

.overlay .closebtn {
  position: absolute;
  top: 40px;
  right: 90px;
  font-size: 120px;
  cursor: pointer;
}




/*
@media screen and (max-height: 450px) {
  .overlay a {font-size: 36px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
 */
