.modal-background {

    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: scroll;
    transition: all .2s;
    background-color: rgba(0, 0, 0, 0.568);
    display: none;

    &.active{
        display: block;
        overflow: hidden;
    }

    .closeBtn {
        color: #ccc;
        float: right;
        font-size: 40px;
        padding: 0px 13px;
        font-weight: bold;
        margin-right: -20px;
        margin-top: -20px;

        &:hover {
            color: rgb(93, 93, 93);
            cursor: pointer;
        }
    }

    .modal-content {
        max-height: 78%;
        overflow-y: auto;
        border-color: #f4f4f4;
        margin: 6% auto;
        padding: 20px;
        width: 70%;
        box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2);
        animation-name: modalopen;
        animation-duration: 0.1s;

        &.xs {
            width: 25%;
            @include not-desktop { width: 98%; }
        }

        &.sm {
            // width: 36%;
            @include not-desktop { width: 98%; }
        }

        &.md {
            width: 55%;
            @include not-desktop { width: 98%; }
        }

        &.lg {
            width: 70%;
            @include not-desktop { width: 98%; }
        }

        &.xl {
            width: 90%;
            @include not-desktop { width: 98%; }
        }
    }

}

@keyframes modalopen {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
    &.in {
        display: block;
    }
} 

.loginModal {
    text-align:center;
    align-items: center;
}

.loginModal .modal-content {
    background-color: white;
    padding: 30px;
}

.loginModal.in {
    display: flex !important;
}

.loginModal.page-loading {
    display: flex !important;
}

.loginModal .modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    margin: 0 auto;
}