/* --- 1. OVERLAY & VISIBILITY --- */
.modal-overlay {
    /* Hide the overlay by default */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;

    /* Full-screen dark background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */

    /* Be on top all other elements */
    z-index: 1000;

    /* Center the card */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Show the modal when this class is applied */
.modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

/* Apply the animation when the overlay is shown */
.modal-overlay.is-visible .popup-card {
    transform: scale(1); /* Scale up to full size */
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- 2. THE CARD (PINK BOX) --- */
.popup-card {
    background-color: #ffb6c1; /* Light Pink Color */
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    transform: scale(0.8); /* Start smaller for the animation */
    transition: transform 0.3s ease-out; /* Add transition for smoothness */
}

/* Animation Keyframes */
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* actions (buttons) area */
.popup-card-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px;
}

#copy-text-area {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-sizing: border-box;
}

#popup-card-title {
    display: flex;
    justify-content: center;
}
