/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px; /* Add padding to prevent content from touching edges */
  box-sizing: border-box; /* Ensure padding is included in width/height */
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Content */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Allow scrolling if content is too tall */
  max-height: 90vh; /* Limit height to 90% of the viewport height */
}

.popup-content img {
  max-width: 100px;
  margin-bottom: 20px;
}

.popup-content button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.popup-content button:hover {
  background: #0056b3;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments for Small Screens */
@media (max-width: 600px) {
  /* Center the notification on small screens */
  .notification {
    right: 50%;
    transform: translateX(50%); /* Center horizontally */
    bottom: 10px; /* Adjust position */
    width: 90%; /* Make it wider */
    text-align: center; /* Center text */
  }

  /* Adjust popup padding for small screens */
  .popup-overlay {
    padding: 10px;
  }

  .popup-content {
    padding: 15px;
    max-height: 80vh; /* Reduce max height for small screens */
  }
}