/* Popup */

#page-wrapper {
    -moz-transition: -moz-filter 0.25s ease;
    -webkit-transition: -webkit-filter 0.25s ease;
    -ms-transition: -ms-filter 0.25s ease;
    transition: filter 0.25s ease;
}

.popup {
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    pointer-events: none;
    -moz-transition: opacity 0.35s ease, visibility 0.35s;
    -webkit-transition: opacity 0.35s ease, visibility 0.35s;
    -ms-transition: opacity 0.35s ease, visibility 0.35s;
    transition: opacity 0.35s ease, visibility 0.35s;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background: rgba(46, 49, 65, 0.8);
    cursor: default;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    text-align: center;
    top: 0;
    visibility: hidden;
    width: 100%;
}

    .popup .inner {
        padding: 2.5em 1.5em 0.5em 1.5em ;
        -moz-transform: translateY(0.5em);
        -webkit-transform: translateY(0.5em);
        -ms-transform: translateY(0.5em);
        transform: translateY(0.5em);
        -moz-transition: opacity 0.35s ease, -moz-transform 0.35s ease;
        -webkit-transition: opacity 0.35s ease, -webkit-transform 0.35s ease;
        -ms-transition: opacity 0.35s ease, -ms-transform 0.35s ease;
        transition: opacity 0.35s ease, transform 0.35s ease;
        -webkit-overflow-scrolling: touch;
        background: #4c5c96;
        border-radius: 5px;
        display: block;
        max-width: 100%;
        opacity: 0;
        position: relative;
        width: 30em;
    }
    
    .popup > * {
        text-align: left;
    }

    .popup h2 {
        border-bottom: solid 2px rgba(255, 255, 255, 0.125);
        padding-bottom: 1em;
        text-align: center;
    }


    .popup .close {
        background-image: url("images/close.svg");
        background-position: 75% 25%;
        background-repeat: no-repeat;
        background-size: 2em 2em;
        border: 0;
        content: '';
        display: block;
        height: 4em;
        overflow: hidden;
        position: absolute;
        right: 0;
        text-align: center;
        text-indent: 4em;
        top: 0;
        width: 4em;
    }

    .popup .links {
        list-style: none;
        margin-bottom: 1.5em;
        padding: 0;
    }

        .popup .links li {
            padding: 0;
        }

            .popup .links li a {
                border-radius: 5px;
                border: 0;
                display: block;
                font-family: Raleway, Helvetica, sans-serif;
                font-size: 0.8em;
                font-weight: 200;
                letter-spacing: 0.1em;
                line-height: 1.85em;
                padding: 0.75em 0;
                text-transform: uppercase;
            }

                .popup .links li a:hover {
                    background: #45558d;
                }

    @media screen and (max-width: 736px) {

        .popup .inner {
            max-height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .popup .inner .close {
                background-size: 1.5em 1.5em;
            }

    }

body.is-popup-visible #page-wrapper {
    -moz-filter: blur(1.5px);
    -webkit-filter: blur(1.5px);
    -ms-filter: blur(1.5px);
    filter: blur(1.5px);
}

body.is-popup-visible .popup.is-popup-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

    body.is-popup-visible .popup.is-popup-visible .inner {
        -moz-transform: translateY(0);
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }