.modal {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

.modal.shown {
    visibility: visible;
    opacity: 1.0;
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

.dialog-box {
    position: relative;
    top: 0;
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 10px 0 rgb(0 0 0 / 75%), 0 4px 20px 0 rgb(0 0 0 / 60%);
    transition: top 0.2s ease-in-out;
}

.modal.shown .dialog-box {
    top: 100px;
    transition: top 0.2s ease-in-out;
}

.modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}
.modal-header h2 {
    margin: 16px 0;
}

.modal-body {
    padding: 5px 16px;
}

.modal-footer {
    color: white;
    padding: 10px 16px 15px;
    text-align: right;
}

.modal-button {
    background-color: #5cb85c;
    display: inline-block;
    min-width: 35px;
    padding: 8px;
    text-align: center;
    margin: 0 4px;
    border: none;
    font: inherit;
    color: white;
}
.modal-button:hover,
.modal-button:focus {
    background-color: #68d368;
}
.modal-button:active {
    background-color: #49a449;
}