/* Semi-transparent blurred overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(6px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.25s ease-out;
}

/* Frosted glass popup container */
#popup {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    padding: 28px 32px;
    width: 480px;
    max-width: 90%;
    border-radius: 18px;
    position: relative;

    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1);

    animation: popupIn 0.3s cubic-bezier(.215, .61, .355, 1);
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

/* Close button */
#closeBtn {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 30px;
    cursor: pointer;
    font-weight: 300;
    color: #333;
    transition: 0.2s;
    opacity: 0.7;
}

#closeBtn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Optional: Info icon (automatically centered) */
#popup::before {
    content: "ℹ️";
    font-size: 42px;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

/* Popup text */
#popup .content {
    margin-top: 15px;
    font-size: 1.12rem;
    color: #222;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    white-space: pre-line;
}

/* Background fade */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup animation */
@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
