.lea-modal-container{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    animation: modal-fade 0.5s forwards; 
    .lea-modal{
        position: relative;
        float: left;
        left: 50%;
        top: 50%;
        background-color: $white;
        box-shadow: 4px -4px 8px rgba($color: $black, $alpha: 0.2);
        border-radius: $border-radius;
        animation: modal 0.5s forwards;
        transform-origin: top left;
        box-sizing: border-box;
        padding: 2rem;
        .lea-modal-header{
            position: relative;
            float: left;
            display: flex;
            width: 100%;
            padding: 0 0 0.5rem 0;
            margin-bottom: 1rem;
            border-bottom: 1px solid $accent;
            span{
                font-weight: bold;
                // font-size: 0.8rem;
                color: $accent;
                flex: 1;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                float: left;
                margin: 0.5rem 0;
            }
            button{
                float: right;
            }
        }
        .lea-modal-content{
            position: relative;
            float: left;
            width: 100%;
            max-height: 70vh;
            overflow: auto;
        }
        .lea-modal-footer{
            position: relative;
            float: left;
            width: 100%;
            padding-top: 1rem;
            div{
                display: flex;
                justify-content: space-between;
            }
        }
    }
}

@keyframes modal-fade{
    0%{
        background-color: rgba($color: $black, $alpha: 0);
    }
    100%{
        background-color: rgba($color: $black, $alpha: 0.5);
    }

}

@keyframes modal{
    0%{
        opacity: 0;
        transform: scale(0) translate(-50%, -50%);
    }
    100%{
        opacity: 1;
        transform: scale(1) translate(-50%, -50%);
    }

}

.dark-mode{
    .lea-modal-container{
        .lea-modal{
            background: lighten($color:$darkmode-bg, $amount: 7%);
            box-shadow: 4px -4px 8px rgba($color: darken($black, 10%), $alpha: 0.2);
        }
    }
}