.dialog-mask {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: fixed;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 205;
    transition: opacity 150ms linear;
    z-index: 800;
}

.dialog-wrapper-body {
    height: 100%;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    z-index: 800;
}

.dialog-wrapper-body:after {
    width: 0;
    height: 100%;
    content: "";
    display: inline-block;
    vertical-align: middle;
}

.dialog-wrapper-content {
    height: 100%;
    outline: 0;
    text-align: center;
    z-index: 800;
}

.dialog-contents {
    padding: 20px;
}

.dialog-contents-content {
    overflow-y: auto;
    height: 80vh;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}

.dialog {
    max-width: 800px;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    margin: 32px;
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
    z-index: 900;
    padding: 0;
}

.dialog-title {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
}

.dialog-title h2 {
    margin-top: 0;
    width: 90%;
}

.dialog-title span {
    display: flex;
    justify-content: flex-end;
    width: 10%;
    cursor: pointer;
    color: #e05d22;
}

.dialog-action {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    padding: 8px;
}

@media screen and (max-width: 767px) {
    .dialog {
        width: 95%;
        margin: 16px auto;
    }
    .dialog-title {
        display: flex;
        justify-content: space-between;
        padding: 10px 10px 0 10px;
    }

    .dialog-contents {
        padding: 10px;
    }
}
