.imodal{
    position: fixed;
    height: 100%;
    overflow-y: auto;
    left:0;
    right:0;
    top:0;
    bottom: 0px;
    z-index: 20;
    display: none;
}

.imodal.on{
    display: block;
}
.imodal-bg{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    left:0;right:0;top:0;bottom:0;
    z-index: 10;
}

.imodal-box{
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    /* height: 100%; */
    height: 100%;
    overflow: hidden;
    max-height: 100%;
    margin:0 auto;
    position: relative;
    z-index: 21;
}
.imodal-content{
    width:750px;
    margin-bottom: 100px;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
}
.imodal-head{
    padding:0.5em;
}
.imodal-body{
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding:0.5em;
}
.imodal-close{
    display: inline-block;
    height:2.8em; width: 2.8em;
    margin:0.2em;
    background-image: url("imodal/close.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.imodal-body::-webkit-scrollbar {
    width: 12px; /*스크롤바의 너비*/
}

.imodal-body::-webkit-scrollbar-thumb {
    background-color: #FFF; /*스크롤바의 색상*/
    background-clip: padding-box;
    border: 3px solid transparent;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.imodal-body::-webkit-scrollbar-track {
    background-color: #BBB; /*스크롤바 트랙 색상*/
}
/* for ios */
/* @supports (-webkit-touch-callout: none) {
    .imodal{
        height: -webkit-fill-available;
    }
    .imodal-box{
        height: -webkit-fill-available;
    }
} */
