/* popup.css */

/* Popup container */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* Popup content */
.popup-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Popup image */
.popup-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    margin-bottom: 20px; /* Space for the close button */
}

/* Close button */
.close-btn {
    position: absolute;
    bottom: 10px; /* Position from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for center alignment */
    font-size: 24px;
    font-weight: bold;
    color: #ff9933;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0px 20px; /* Add padding for a button-like appearance */
    border-radius: 5px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #ffe6cc; /* Light background on hover for better UX */
}

/* Show popup */
.popup-container.show {
    display: flex;
}

/* Fade-out animation for auto-close */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.popup-container.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}