/* 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-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}

.container {
	background: #fff;
	min-height: 100%;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	opacity:0;
	-webkit-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
	transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
}

.md-show {
	opacity: 1;
	visibility:visible;
	-webkit-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
	transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0);
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(255,255,255,0.8);
	-webkit-transition: all 0.8s;
	-moz-transition: all 0.8s;
	transition: all 0.8s;
}

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

/* Content styles */

.md-content {
	color: #fff;
	background: #fff;
	position: relative;
	margin: 0 auto;
	overflow:hidden;
	height: 100%;
	width: 100%;
}

.md-content h3 {
	margin: 0;
	padding: 0.4em;
	text-align: center;
	font-size: 2.4em;
	font-weight: 300;
	opacity: 0.8;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}

.md-content > div {
	margin: 0;
	font-weight: 300;
	font-size: 1.15em;
}

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

.md-content > div ul {
	margin: 0;
	padding: 0 0 30px 20px;
}

.md-content > div ul li {
	padding: 5px 0;
}

.md-content button {
	display: block;
	margin: 0 auto;
	font-size: 0.8em;
}

/* Individual modal styles with animations/transitions */


/* Effect 12:  Just me */

.md-show.md-effect-12 ~ .md-overlay {
	background: #fff;
} 

.md-effect-12 .md-content h3,
.md-effect-12 .md-content {
	background: transparent;
}
.md-effect-12 .md-content {
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
}

.md-show.md-effect-12 .md-content {
	opacity: 3;
	height: 100%;
	-webkit-transition: opacity 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	-moz-transition: opacity 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	transition: opacity 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	overflow-y: scroll;
}



.md-effect-12 .modal-content{
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
}
	
.md-show.md-effect-12 .modal-content{
	opacity: 1;
	-webkit-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	-moz-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	transition: all 0.3s cubic-bezier(0.0, 0.0, 0.58, 1.0) ;
	
}

.md-effect-12 .modal-text{
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	
}
	
.md-show.md-effect-12 .modal-text{
	opacity: 1;
	-webkit-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	-moz-transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
	transition: all 0.3s cubic-bezier(0.42, 0.0, 1.0, 1.0);
}

