.overlay {
  display: none;
  height: 500px;
  #width: 100%;
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 0;
  #left: 0;
  right: 0;
  #background-color: rgb(0,0,0);
  #background-color: rgba(0,0,0, 0.9);
  background-color: rgba(255, 255, 255, .55);
  #background: linear-gradient(135deg, #141e30, #243b55);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 15px;
}

.overlay-content {
  display: none;
  position: relative;
  top: 15%;
  width: 100%;
  height: 100%;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  gap: 5px;
}

.overlay a {
  padding: 5px;
  text-decoration: none;
  font-size: 34px;
  font-weight: bold;
  #color: #818181;
  color: darkblue;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  #color: #f1f1f1;
  #color: darkcyan;
  #color: cyan;
  #color: yellow;
  color: red;
  font-weight: bolder;
  font-size: 36px;
}


/*--- max-height: 450px; ---*/
@media screen and (max-height: 768px) {
  .overlay a {font-size: 25px}
  .overlay a:hover {font-size: 27px}
  .overlay .closebtn {
  font-size: 45px;
  top: 0;
  right: 28px;
  position: absolute;
  }
  .overlay .closebtn:hover {
    font-size: 45px;
    font-weight: bold;
    top: 0;
    right: 28px;
    position: absolute; 
  }
}