/* Popup container */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 800;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.3);
}

/* Popup content */
.popup-content {
    background-color: rgba(255, 255, 255, 0.1); /* Glass effect background */
    backdrop-filter: blur(10px); /* Glass blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    width: 80vw; /* Responsive width */
    max-width: 500px; /* Max width for larger screens */
    min-width: 200px; /* Min width for smaller screens */
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    /* Animation properties */
    opacity: 0;
    transform: translateY(100px); /* Start position: below the viewport */
    animation: slideUp 0.5s ease-out forwards; /* Apply animation */
    pointer-events: auto;
}

/* Slide-up and fade-in animation */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0); /* End position: centered */
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: -15px; /* Adjusted to position above popup content */
    right: -15px; /* Adjusted to position right of popup content */
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background-color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
}

.close-btn:hover {
    background-color: #114C90;
    color: #fff;
}

/* Popup image */
.popup-content img {
    width: 100%; /* Responsive image width */
    max-width: 480px; /* Appropriate size */
    height: auto;
    margin-bottom: 10px;
    margin-top: 10px !important;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup-content {
        width: 90vw; /* Wider on smaller screens */
        padding: 10px;
        max-width: 350px;
    }

    .popup-content img{
        margin-bottom: auto;
        margin-top: auto !important;
    }

    .close-btn {
        font-size: 20px; /* Smaller close button on mobile */
        width: 25px;
        height: 25px;
        top: -12px; /* Adjusted for mobile */
        right: -12px; /* Adjusted for mobile */
    }

    .popup
    {
        left: 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .popup-content {
        width: 85vw; /* Slightly wider for tablets */
        /* max-width: 350px; */
    }
}


@media (min-width: 1200px) {
    .popup {
        justify-content: flex-end; /* Align to the right */
        padding-right: 10px; /* Add some padding from the right edge */
        pointer-events: none;
        background-color: rgba(0,0,0,0);

    }
    .popup-content {
        margin-right: 10px; /* Ensure some space from the right edge */
        margin-bottom: 15rem;
        width: 350px; /* Fixed width for larger screens */
        height: 400px; /* Fixed height for larger screens */
        padding: 0 5px;
    }

    .popup-content img {
        height:382px;
        margin-bottom: 0;

    }
}


