﻿.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Start with a larger width for smaller screens */
    max-width: 80%; /* Cap at 80% of the screen width */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 80vh; /* Ensure popup doesn’t exceed 80% of viewport height */
    padding: 60px;
}

/* Additional media query to optimize for larger screens */
@media (min-width: 768px) {
    .popup {
        width: 70%; /* Adjust to 70% for medium screens */
    }
}

@media (min-width: 1200px) {
    .popup {
        width: 50%; /* For large screens, adjust to 50% */
        max-width: 800px; /* Limit max-width for very large displays */
    }
}


/* Overlay for the background when popup is visible */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Close button styling */
.close-btn {
    display: block;
    margin-top: 10px;
    text-align: right;
    cursor: pointer;
    color: #222222;
}