/* General styles for the modal */

.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #fff;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 550px;
	min-width: 320px;
	height: auto;
	z-index: 9999999;
	visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 9999995;
	opacity: 0;
	background: rgba(1,1,1,0.6);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	color: #5b5b5b;
	background: #fff;
	position: relative;
	border-radius: 0px;
	margin: 0 auto;
	text-align: center;
}
.md-content h3 {
	font-weight: 600;
	margin: 0;
	padding-top: 20px;
	border-radius: 0;
	color: #797979;
}

.md-content img{
	width: 100%;
	margin-bottom: 20px;
}
.md-content button {
	margin-top: 20px;
}

.md-content > div {
	margin: 0;
	font-weight: 300;
	font-size: 14px;
	padding: 30px;
}

.md-content > div p {
	margin: 0;
	padding: 10px 0;
	font-size: 16px;
}


/* Individual modal styles with animations/transitions */
.md-effect .md-content {
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show.md-effect ~ .md-overlay {
	background: rgba(255,255,255,1);
} 

.md-effect.md-content h3,
.md-effect .md-content {
	background: transparent;
}

.md-show.md-effect .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

@media only screen and (max-width: 479px) {
	.md-content h3 {
		padding-top: 0px;
	}
	.md-content > div p {
		font-size: 12px;
	}
}