/**
 * ==========================================================+
 * Layer-popup Center Box - http://http://webclub.tistory.com
 * Copyright © 2016 Jae Hee Kim 
 * All rights reserved.
 * ==========================================================+
 */


.layer-wrap {
    /*display: none;*/
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2000px);
    transition: transform .5s ease, height .2s ease;

}

.layer-wrap.active-popup {
    transform: translateY(0);

}

.layer-wrap .layer-close {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 2em;
    display: flex;
    justify-content: center;
    color: #929292;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 5em;
}

.layer-wrap .layer-close:hover {
    background-color: #8b8a8a;
    color: #FFFFFF;
}

.layer-close-btn {
    position: absolute;
    cursor: pointer;

}

.layer-wrap:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -.25em;
}

.pop-layer {
    position: relative;
    width: 900px;
    left: -450px;
    margin-left: 50%;
    top: -94vh;
    background-color: #fff;
    z-index: 10;
    min-height: 20vh;
    max-height: 80vh;
    border-radius: 15px;
}


.pop-layer-m {
    max-width: 500px;
    min-height: 40vh;
    left: -250px;
}

.pop-layer-lg {
    width: 70vw;
    height: 70vh;
    left: -35vw;
}

.pop-layer-full {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .4);
    z-index: 10;
    border-radius: 15px;

}

.pop-layer .layer-title {
    font-size: 1.54em;
}

.pop-layer .pop-container {
    padding: 10px;
    text-align: left;
}

.pop-container {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 30px 10px 10px 20px;
}

.pop-container .text-left {
    text-align: left;
}

.pop-container p {
    margin: 15px 0;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.8em;
}

.pop-container em {
    font-style: normal;
}

.pop-container img {
    display: inline;
    max-width: 15px;
    vertical-align: middle;
}

.pop-container ul, li {
    list-style: none;
    padding-left: 0;
}

.pop-container .btn-right-sm {
    background-color: #ff2893;
    border-radius: 25px;
    color: #fff;
    border: none;
    padding: 5px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    /*width: 19%;*/
    cursor: pointer;
    margin-right: 15px;
}

.pop-container .btn-right-sm:focus {
    outline: none;
}

.pop-container .notice_text {
    max-height: 75vh;
    overflow-y: auto;
    padding: 1em;
    width: 100%;
}

.pop-address-container .address-container {
    overflow-y: auto;
}

.pop-address-container .address-search {
    margin-bottom: 10%;
}

.pop-address-container .address-list {
    max-height: 47vh;
    overflow-y: auto;
    padding-bottom: 3vh;
}

.address-list .a_list {
    width: 97%;
    clear: both;
    text-align: left;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #c7c7c7;
}

.btn-layer-bottom {
    cursor: pointer;
    bottom: 0;
    width: 25%;
    background: linear-gradient(-45deg, #6cacf7, #29c3ea, #29eaba, #6cacf7);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    transition: all 0.5s;
    outline: none;
    border: none;
    line-height: 2.2em;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fdfdfd;
}

.btn-layer-bottom:hover {
    background: linear-gradient(90deg, #9198e5, #e66465);
}

.pop-block-layer {
    position: relative;
    width: 900px;
    left: -450px;
    margin-left: 50%;
    top: -65vh;
    z-index: 10;
    min-height: 20vh;
    max-height: 65vh;
}


.pop-bottom {
    position: absolute;
    width: 100%;
    bottom: 2%;
    text-align: center;

}

@media screen and (max-width: 850px) {
    .event-layer {
        width: 100%;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
    }


    .event-layer .btn-bottom {
        width: 100%;
        left: 0;
        margin-left: 0;
    }

    .pop-layer {
        width: 100%;
        top: -94vh;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
        height: 92vh;
        max-height: 95vh;
    }


    .pop-address-layer {
        width: 100%;
        top: -98vh;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
        min-height: 50vh;
        max-height: 95vh;
    }

    .pop-layer .notice_text {
        max-height: 85vh;
        font-size: .8rem;
    }

    .pop-layer .pop-container {
        padding: 10px 15px;
        overflow-y: auto;
    }

    .pop-layer .pop-container-full {
        padding: 10px 15px;
    }

    .pop-container img {
        max-width: 11px;
        display: inline;
        vertical-align: middle;
    }

    .btn-layer-bottom {
        line-height: 2em;
        font-size: 1.1rem;
    }

}