/* Dark background */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.60);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    opacity: 0;
    visibility: hidden;

    transition: opacity .45s ease;

    z-index: 99999;
}

/* Overlay fades in */

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup window */

.popup-box {

    width: 90%;
    max-width: 630px;

    margin-top: 25px;

    background: #fff;
    border-radius: 8px;

    box-shadow: 0 15px 40px rgba(0,0,0,.35);

    padding: 25px;

    font-family: Verdana, Arial, sans-serif;

    /* Starts above the screen */
    transform: translateY(-140%);
    opacity: 0;

    transition:
        transform .75s cubic-bezier(.22,1,.36,1),
        opacity .55s ease;
}

/* Slides into place */

.popup-box.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Button */

.popup-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;

    background: #6fbcff;
    color: #fff;

    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.popup-button:hover {
    background: #003f75;
}

.popup-close {
    display: block;
    margin-top: 18px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.popup-close:hover {
    color: #000;
}
