/* Popup Overlay */
.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Ensure the popup is on top */
  /* Removed flex properties from here to be controlled by JS */
}

/* Popup Window */
.popup {
  background-color: white;
  padding: 20px;
  width: 90%; /* Make it more responsive */
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 80vh; /* Limit height to 80% of viewport height */
  overflow-y: auto; /* Enable vertical scrolling */
  position: relative; /* Needed for absolute positioning of close button */
}

/* Close Button */
.close-btn {
  background-color: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  position: absolute; /* Position relative to the popup */
  top: 10px;
  right: 15px;
  color: #333;
}

/* Popup Title */
.popup h1 {
  font-size: 24px;
  color: #333;
  margin-top: 0; /* Adjust margin for title */
}

/* Popup Content */
.popup p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .popup {
    width: 95%; /* Slightly wider on smaller screens */
    margin: 5% auto; /* Adjust margin for better fit */
  }
}

@media (max-width: 480px) {
  .popup {
    width: 98%; /* Almost full width on very small screens */
    padding: 15px; /* Reduce padding */
  }
  .popup h1 {
    font-size: 20px; /* Smaller title on small screens */
  }
  .popup p {
    font-size: 14px; /* Smaller text on small screens */
  }
}

/* Styling for the new button that acts as a link */
.footer-links-list button.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #d1d5db; /* Match footer-link color */
  font-size: 16px; /* Match footer-link font size */
  text-align: left; /* Align text to the left */
  width: 100%; /* Take full width of its container */
  display: block; /* Ensure it behaves like a block element for width */
}

.footer-links-list button.footer-link-button:hover {
  color: #ff7810; /* Match footer-link hover color */
}
