/* Style for the popup container */
.popup-container {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Style for the popup content */
.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Close button style (Cross symbol) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 50px; /* Increased size */
    color: #f00; /* Red color */
    cursor: pointer;
    font-weight: bold;
    animation: flip-flop 2s infinite; /* Flip-flop animation */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

/* Animation for the close button */
@keyframes flip-flop {
    0% { transform: rotate(0); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Hover effect to change color */
.close-btn:hover {
    color: #00f; /* Change color to blue on hover */
}

/* Popup image style */
.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps the image aspect ratio */
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .popup-content {
        max-width: 95%;
        max-height: 80%;
        padding: 5px;
    }

    .close-btn {
        font-size: 40px; /* Slightly smaller for mobile */
    }
}
