/* General styles for the modal */

/* 
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the 
perspective effects (not including the modals and the overlay).
*/


.md-modal {
	position: absolute;
	top: 20%;
	left: 50%;
	width: 50%;
	max-width: 630px;
	min-width: 300px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	margin: -50px 0 0 -300px;
	
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(0,0,0,0.8);
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	background: #ffffff;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}
.md-content header {background: #049eda; border-radius: 3px 3px 0 0; padding:5px  15px; color: #ffffff;}
.md-content header h3 { margin: 0; float: left; padding-top: 8px; font-size: 18px;}

.md-content header a { float: right; color: #ffffff; font-size: 30px;  -webkit-transition:none;transition:none;}

.md-content > .modal-content {
	padding: 15px;
	margin: 0;
	max-height: 400px; overflow: auto;
}

.md-content > .modal-content p {
	margin: 0;
	padding: 10px 0;
}

.md-content a {-webkit-transition:-webkit-transform 1s;}

@media (max-width: 991px) {
    .md-modal {
	
	margin: -50px 0 0 -200px;
	
}
}
@media (max-width: 767px) {
	.md-modal {
		max-width: 300px; 
		min-width: 300px;
		margin: -50px 0 0 -150px;	
	}
	.md-content > .modal-content {
		padding: 15px;
		margin: 0;
		max-height: none; overflow: visible;
	}
	.mob-height { display: none;}
	.mb-pad { padding-top: 0 !important;}
}