/* 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: 3%;
	left: 15%;
	width: 70%;
	max-width: 70%;
	min-width: 300px;
	height: auto;
	z-index: 10000;
	visibility: hidden;
	/*margin: -50px 0 0 -422px;*/
	
}

.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.6);
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	background: #ffffff;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}
.md-content headermd {background: #049eda; border-radius: 3px 3px 0 0; padding:5px  15px; color: #ffffff;}
.md-content headermd h3 { margin: 0; float: left; padding-top: 8px; font-size: 18px;}

.md-content headermd a { float: right; color: #ffffff; font-size: 30px;  -webkit-transition:none;transition:none;}

.md-content > .modal-content {
	padding: 24px;
	margin: 4px;
	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 -264px;
	
}
}
@media (max-width: 767px) {
	.md-modal {
		max-width: 95%; 
		min-width: 95%;
		margin: -50px 0 0 -168px;	
	}
	.md-content > .modal-content.auto-height {
		padding: 24px;
		margin: 4px;
		max-height: none; overflow: visible;
	}
}