/* Container styling */
.popup-container {
    position: relative;
    text-align: center;
}

.popup {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.modal-container {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease; /* Fade-in effect */
}

.modal-content {
    background-color: #ffffffde;
    border: 1px solid #ff0040;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.5s ease; /* Slide-in effect */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align all child elements */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: rgb(0, 0, 0);
}

.popup h2 {
    font-size: 18px;
    margin: 0;
}

.popup p {
    font-size: 14px;
}

.popup img {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }
    .popup h2 {
        font-size: 16px;
    }
    .popup p {
        font-size: 12px;
    }
}