#dialog-overlay {

	/* set it to fill the whil screen */
	width:100%; 
	/*height:100%;*/
	
	/* transparency for different browsers */
	filter:alpha(opacity=80); 
	-moz-opacity:0.8; 
	-khtml-opacity: 0.8; 
	opacity: 0.8; 
	background:#000; 

	/* make sure it appear behind the dialog box but above everything else */
	position:absolute; 
	top:0; left:0; 
	z-index:3000; 

	/* hide it by default */
	display:none;
}

#dialog-flex {
	position:fixed;
	top:0;
	left:0;
	z-index:4000;
	
	justify-content:center;
	align-items:center;
	/*flex-wrap: wrap;
	flex-direction : column;	*/
	
	/* hide it by default */
	display:none;
}

#dialog-box {
	margin:auto;
	
	width:600px; max-width:90%;
	height: 400px;
	margin:0px;
	top:0; left:0; 
	/*padding:10px;*/
	background-color:transparent;
	background-repeat: no-repeat;
	background-size:contain;
	
	/* make sure it has the highest z-index */
	position:relative;
	z-index:5000;
	/*border-radius: 25px;*/
}




div#dialog-close {
	/*font-family: Helvetica, Arial, sans-serif;*/
	font-family: Arial, sans-serif;
	font-size:12px;
	
	/* styles for button */
	position:absolute;
	top:20px;
	right:20px;
	text-align:center;
	display: block;
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	
	z-index:9999;
	
	margin-top:0px;
	margin-bottom:0px;
	padding:5px;
	background-color:#FFFFFF;
	
	/*border-radius:5px;*/
	
	-webkit-transition:all 0.2s linear;
	-moz-transition:all 0.2s linear;
	-o-transition:all 0.2s linear;
	transition:all 0.2s linear;	
	
}

div#dialog-close:hover {
	background-color:#c6ca45;
}


/** Responsive **/

@media screen and (max-width:699px) {

	#dialog-box {
		max-width:90%; position:static;
	}

}



