/* mail-overlay.css */

#mailOverlay {
    display: none; /* Hidden by default — opened with display:flex via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Style for the content inside the overlay */
  .mailOverlay-content {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
  }
  
 /* Close button styles (if you have one) */
#mailOverlay .closebtn {
    cursor: pointer;
    position: absolute;
    top: 220px; /* Adjust as necessary to position correctly */
    left: 22px; /* Adjust as necessary to position correctly */
    width: 25px;
    height: 25px;
    z-index: 103; /* Ensure it is above the infoButton */
    opacity: 0; /* Make the button invisible but still functional */
}

/* Adjust for small screens if needed */
@media screen and (max-height: 450px) {
  .overlay .closebtn {
    top: 220px; /* Adjust as necessary */
    left: 22px; /* Adjust as necessary */
    opacity: 0; /* Keep it invisible on small screens */
  }
}


  /* Additional styles specific to the infoOverlay */

  
  /* The navigation links inside the overlay */
  .mail-overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: inline;
    /* Display block instead of inline */
    transition: 0.3s;
    /* Transition effects on hover (color) */
  }
  .overlay a:hover,
  .overlay a:focus {
    color: #f1f1f1;
  }

  