
/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

/* 모달 컨테이너 */
.modal-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
}

/* 모달 */
.modal {
    display: none;
    position: relative;
    border-radius: 1.5em;
    padding: 10px 10px 20px 10px;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* ossian --------------------------------------------- */

/* 第一組 ---------------------------------------------- */
.modal.color-1{
    background-color: #ff8e7b;
    box-shadow: 0 -7px 2px #901313 inset;
}

.modal.color-1 .modal-bg {
    box-shadow: 0 -7px 2px #d2605c inset,
                0 3px 2px #901313;
}

/* End 第一組 ----------------------------------------- */

/* 第二組 ---------------------------------------------- */
.modal.color-2{
    background-color: #a0e365;
    box-shadow: 0 -7px 2px #1b6022 inset;
}

.modal.color-2 .modal-bg {
    box-shadow: 0 -7px 2px #9eda69 inset,
                0 3px 2px #1b6022;
}

/* End 第二組 ----------------------------------------- */

/* 第三組 ---------------------------------------------- */
.modal.color-3{
    background-color: #b071ff;
    box-shadow: 0 -7px 2px #331975 inset;
}

.modal.color-3 .modal-bg {
    box-shadow: 0 -7px 2px #bc84fb inset,
                0 3px 2px #331975;
}

/* End 第三組 ----------------------------------------- */

/* 第四組 ---------------------------------------------- */
.modal.color-4{
    background-color: #ffcb32;
    box-shadow: 0 -7px 2px #945c0c inset;
}

.modal.color-4 .modal-bg {
    box-shadow: 0 -7px 2px #ffe086 inset,
                0 3px 2px #945c0c;
}

/* End 第四組 ----------------------------------------- */

.modal-bg {
    position: relative;
    padding: 1rem 1rem 1.25rem 1rem;
    height: 100%;
    background-color: white;
    border-radius: 1.25em;
    -webkit-overflow-scrolling: touch;
}

/* End ossian ---------------------------------------- */





.modal.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* 모달 닫기 버튼 */
.modal-close {
    position: absolute;
    top: -5.25em;
    right: -1em;
    width: 68px;
    height: 68px;
    color: white;
    background-color: #ff683f;
    background-image: url(../images/modal/icon-close.png);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 7px solid #ff683f;
    cursor: pointer;
    z-index: 2;
    transition: all 1s ease-in-out;
}

.modal-close:hover {
    transform: rotate(360deg);
    border-color: white;
}

/* 트리거 버튼 래퍼 */
.trigger-wrap {
    position: fixed;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 1;
}
