/* modal */
.overlay{
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:0;
    background:var(--bg-overlay);
    overflow-y: auto;
    z-index:999;
    -webkit-animation: fadeIn .3s;
    animation: fadeIn .3s;
    display: flex;
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-sm{
    width: 360px;
    height: fit-content;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    position: absolute;
    top:0;
    left:50%;
    transform: translateX(-50%);
    z-index: 999;
}
.modal-md{
    width: 560px;
    height: fit-content;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    position: absolute;
    top:0;
    left:50%;
    transform: translateX(-50%);
    z-index: 999;
}
.modal-lg{
    width: 1000px;
    height: fit-content;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}
.modal-header{
    width: 100%;
    padding: 10px 16px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}
.modal-body{
    width: 100%;
    position: relative;
    overflow-y: auto;
}
.modal-footer{
    width: 100%;
    padding: 16px;
    position: relative;
    display: inline-table;
}
.match-height{
    height: 90%;
    margin: 0;
}
.match-height .modal-body{
    height: 100%;
}
.fixed-center{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
}
.absolute-center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
}
/* end modal */

/* @media screen and (max-width: 800px){
    .modal-md, .modal-lg, .modal-md{
        width: 90%;
    }

} */