#alert_dialog {
    z-index: 999; 
    width: 100%;
    height: 100%;
    position: absolute;
}
 
/* Здесь для IE 7 и 8 лучше вставлять полупрозрачный PNG,
а opacity убрать, т.к. эти браузеры это свойство не понимают. */
 
#alert_fog {
    background: url("../images/alert_fog.png") repeat scroll 50% 50% #666666;
    opacity: 0.5;
    z-index: 1000; 
    width: 100%;
    height: 100%;
}
 
/* box-shadow и  border-radius IE 7 и 8 не понмиают,
но это не испортит общей картины. */
#alert_body {
    z-index: 1001; 
    width: 400px; 
    min-height: 25vh; 
    position: absolute;
    top: 25vh; 
    left:50%;
    background-color: #aaa;
    border-radius: 6px;
    margin-left:-200px;
    padding: 1px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.75);
    transition: 1s;
}
 
#alert_title {
    display: block;
    min-height: 40px;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    background-color: #ca372a;
    color: #fff;
    box-sizing: border-box;
    border-radius: 6px;
}
#alert_text {
    display: block;
    padding-top: 1vh;
    text-align: center;
    min-height: 80px;
    color: #000;
    padding-bottom: 5px;
    font-style: italic;
    font-size: 1.2em;
}

#alert_button {
    display: flex;
    position: absolute;
    padding-top: 5px;
    justify-content: center;
    align-items: center;
    min-height: 3vh;
    width: 60px;
    bottom: 1vh;
    right: 3vh;
    background-color: #e69a16;
    border: solid 1px white;
    border-radius: 6px;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, .8) inset;
    cursor: pointer;
}
#alert_button p {
    display: block;
    color:#000;
    font-weight: 700;
    margin-bottom: 2px;
}