.overlay {
background-color: #000;
height: 100%;
left: 0;
opacity: 0.5;
position: absolute;
top: 0;
/*transition: all 200ms ease 0s;*/
width: 100%;
z-index: 1000;
display:none;
}

#wait-window {
display:none;
background-color: rgb(200, 200, 250);
border-radius: 10px;
padding: 10px;
width: 75%;
z-index: 1042;

/*
position: fixed;
left: 50%;
top: 25%;
margin-left: -290px;
*/

position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);

}

#wait-window h1 {
color: #000;
/*font-size: 400%;*/
}

#wait-window .loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
margin: auto;
animation: spin 2s linear infinite;
}
#wait-window .loader2 {
border-bottom: 16px solid #3498db;
border-top: 16px solid #3498db;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}


/* http://dbmast.ru/adaptivnoe-modalnoe-okno-strogo-po-centru */
.dm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.dm-table {
    display: table;
    width: 100%;
    height: 100%;
}

.dm-cell {
    display: table-cell;
    padding: 0 1em;
    vertical-align: middle;
    text-align: center;
}

.dm-modal {
    display: inline-block;

    max-width: 50em;

    /*background: #607d8b;*/
	background-color: rgb(200, 200, 250);
	border-radius: 10px;
	padding: 10px;
	width: 300px;
	z-index: 1042;

    -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);

    /*color: #cfd8dc;*/
	color: #000;
    text-align: left;
}

#win1 .loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
margin: auto;
animation: spin 2s linear infinite;
}
#win1 .loader2 {
border-bottom: 16px solid #3498db;
border-top: 16px solid #3498db;
}

