/*--------------------------------------------------------------
   Modal Popups
--------------------------------------------------------------*/
.johannes-modal{
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.johannes-modal.modal-open{
    display: flex;
    -webkit-animation: fadeInFromNoneFlex .15s ease-out;
    animation: fadeInFromNoneFlex .15s ease-out;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.johannes-modal-close{
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.4rem;
}
.search-alt{
    text-align: center;
    input[type=submit],
    button[type=submit]{
        margin: 20px auto 0;
        max-width: 140px;
        display: block;
        @include mq('md') {
            max-width: 180px;
        }
    }
    .search-field,
    input[type=text]{
        max-width: 350px;
        text-align: center;
    }
}

.johannes-modal .johannes-menu-social{
    font-size: 0;
    margin: 0;
    justify-content: center;
}
.johannes-modal .johannes-menu-social li,
.johannes-modal .johannes-menu-social li:last-child{
    margin:0 7px;
}

.johannes-modal .johannes-menu-social li > a{
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
}


// Header animation
@-webkit-keyframes fadeInFromNoneFlex {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
        transform: translateY(0px);
    }
}

@-moz-keyframes fadeInFromNoneFlex {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
        transform: translateY(0px);
    }
}

@-o-keyframes fadeInFromNoneFlex {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes fadeInFromNoneFlex {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
        transform: translateY(0px);
    }
}