.DialogOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.Dialog {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 240px;

    @media screen and (min-width: 768px) {
        width: 360px;
    }
}

.DialogHeader {
    margin-bottom: 1rem;
    color: var(--text-color1);
    margin-top: auto;
}

.DialogBody {
    margin-bottom: auto;
    width: 100%;
    color: var(--text-color2);
    font-size: 0.8rem;

}

.DialogFooter {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;


    button {
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: center;

        &:not(:last-child) {
            margin-right: 1rem;
        }
    }

    @media screen and (min-width: 768px) {
        justify-content: space-around;

        button {
            width: auto;
            padding: 0.5rem 2rem;

            &:not(:last-child) {
                margin-right: 0rem;
            }

        }
    }
}