.message-box-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 999999;
    transition: background-color .2s;
}

.message-box-screen.hide {
    background-color: rgba(0, 0, 0, 0);
}

.message-box {
    display: block;
    position: fixed;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 20%;
    max-width: 90%;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 6px;
    color: #212121;
    background-color: #fff;
    box-shadow: #000 0 0 30px 6px;
    opacity: 1;
    transition: top .3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity .3s ease-in-out;
    z-index: 999999;/* Just in case we want to display it without screen */
}

.message-box.hide {
    top: -20%;
    opacity: 0;
}

.message-box-header {
    font-size: 1.5em;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.message-box-icon {
    display: inline-block;
    margin-right: 10px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    font-weight: normal;
    vertical-align: middle;
}

.message-box.info .message-box-icon {
    background-color:#03A9F4;
}

.message-box.warning .message-box-icon {
    background-color: #FFEB3B;
}

.message-box.success .message-box-icon {
    background-color:#8BC34A;
}

.message-box.error .message-box-icon {
    background-color:#F44336;
}

.message-box.alert .message-box-icon {
    background-color:#FF9800;
}

.message-box-title {
    vertical-align: middle;
}

.message-box-body {
    padding: 10px;
    max-height: calc(100vh - 9em);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1.3em;
    line-height: 1.4;
    overflow: auto;
}

.message-box-footer {
    padding: 10px;
    margin: 0;
    border: none;
    border-top: solid 1px #9E9E9E;
    border-radius: 0 0 6px 6px;
    background-color: #bdbdbd;
    direction: rtl;
}

.message-box-footer button,
.message-box-footer button {
    padding: 8px 16px;
    margin-left: 15px;
    border: 2px solid;
    color: #fff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: box-shadow .2s;
}

.message-box-footer button:disabled{
    color: #BDBDBD;
}

.message-box-footer button:hover,
.message-box-footer button:focus {
    box-shadow: #000 0 0 10px;
}

.message-box-footer .message-box-confirm {
    background-color: #4CAF50;
}

.message-box-footer .message-box-cancel {
    background-color: #9E9E9E;
}
