.themodal-lock {
	/* when modal is opened we're removing scrollbars from the main content */
	overflow: hidden;
}

.themodal-overlay {
	/* overlay will stay fixed and will take all the space available */
	position: fixed;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
	z-index: 1000;

	/* if modal content doesn't fit inside the overlay, display scrollbars */
	overflow: auto;

	/* allow one-finger iPad scrolling */
	-webkit-overflow-scrolling: touch;

}

/* fix for iPad glitches */
.themodal-overlay > * {
	-webkit-transform: translateZ(0px);
}

.themodal-overlay {
	background: rgba(0, 0, 0, 0.5);
	/* IE6–IE8 */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = #7F000000, endColorstr = #7F000000);
	zoom: 1;
}

#modal_banner_block {
	background: #f0f0f0;
	width: 900px;
	margin: 20% auto;
	color: #797979;
	border: 3px solid #526895;
  -moz-border-radius: 4px 4px 0 0; /* Firefox */
  -webkit-border-radius: 4px 4px 0 0; /* Safari, Chrome */
  -khtml-border-radius: 4px 4px 0 0; /* KHTML */
  border-radius: 4px 4px 0 0; /* CSS3 */
  border-bottom:5px solid #3c5581;
  position: relative;
}
#modal_banner_block div.model-content {
	width: 860px;
	height: auto;
	display: block;
	padding: 20px;
	min-height: 100px;
	overflow: hidden;
}
#modal_banner_block div.model-content h1 {
width: 100%;
	font-size: 25px;
	color: #3c5581;
	border-bottom: 2px solid #979797;
	margin-bottom: 5px;
    padding-bottom: 5px;
}
#modal_banner_block div.bottom {
	width: 100%;
	height: 35px;
	display: block;
	background: #526895;
}
#modal_banner_block .close_modal_banner_block {
	display: block;
	float: right;
	text-decoration: none;
	font-size: 25px;
	cursor: pointer;
	color:  #526895;
	font-weight: 600;
	margin-right: 5px;
	position: absolute;
	right: 5px;
}
#modal_banner_block .errortext {
	color: #FF0000;
}