.ws-modal-background{
	width:100%;
	height:100%;
	position:fixed;
	top:0; 
	left:0;
	background:rgba(0,0,0,0.4);
	visibility:hidden;
	opacity:0;
	z-index: 100;
}
.ws-modal-background.open{
	visibility: visible;
	transition: opacity 0.3s ease-in-out;
	opacity: 1;
}
.ws-modal{
	display: block;
	margin: 50% 0 0 -300px;
	position: relative;
	top: 50%; 
	left: 50%;
	background: #fff;
	opacity: 0;
	box-shadow: 4px 4px 10px #7f7f7f;
}
.ws-modal-background.open .ws-modal{
	opacity: 1;
}

/* about the content of the modal alert */
.ws-head{
	width: 100%;
	overflow: hidden;
	box-shadow: 0 4px 7px -4px gray;
}
.ws-head b {
	float: left;
	padding: 5px 15px;
	vertical-align: baseline;
	font-size: 120%;
}
.ws-head i {
	float: right;
	color: lightgrey;
	padding: 10px 15px;
}
.ws-head i:hover{
	color: white;
	background-color: rgba(255,48,48,0.7);
}
.ws-content{
	margin-top: 5px;
	height: calc(100% - 36px - 59px - 20px);
}
.ws-content, .ws-footer {
	padding: 10px 15px;
}
.ws-footer {
	display: flex;
	float: right;
}
.ws-footer button {
	margin: 0 0 0 15px;
}

/* different modes: w1..w2 */
.ws-modal-w1 {
	width: 380px;
	height: 250px;
	margin: -125px 0 0 -190px;
}
.ws-modal-w2 {
	width: 600px;
	height: 450px;
	margin: -225px 0 0 -300px;
}
.ws-modal-w3 {
	width: 900px;
	height: 600px;
	margin: -300px 0 0 -450px;
}
.ws-modal-wmax {
	width: 80vw;
	height: 80vh;
	margin: -40vh 0 0 -40vw;
}
