/* 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: #e74c3c;
	min-height: 100%;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
/* 	width: 100%; */
/*
	width: 50%;
 */
	max-width: 630px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-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: 1000;
	opacity: 0;
	background: rgba(143,27,15,0.8);
	-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: #6558FE;
		background: -moz-linear-gradient(rgba(255,255,255,0.6), rgba(184,184,184,0.2));
		background: -webkit-linear-gradient(rgba(255,255,255,0.6), rgba(184,184,184,0.2));
		background: -o-linear-gradient(rgba(255,255,255,0.6), rgba(184,184,184,0.2));
	background: #E6E6E6;
	position: relative;
	border: 2px outset #F9A209;
	border-radius: 3px;
	margin: 0 auto;
	overflow: auto;
}

.md-content p {
    font: 50% 'Calibri', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
/* 	font-weight: 300; */
}
.md-content h3 {
	margin: 0;
	padding: 0.4em;
	text-align: center;
/* 	font-size: 2.4em; */
    font-size: 110%;
    margin-bottom: 0.5em;
    text-decoration: underline;
/* 	font-weight: 300; */
	opacity: 0.8;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}
.md-content h4 {
    font-family: Calibri, Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
    font-size: 120%;
    font-weight: bold;
}

.md-content > div {
	padding: 15px 40px 30px;
	margin: 0;
	font-weight: 300;
	font-size: 0.85em;
}

.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 1: Fade in and scale up */
* Effect 13: 3D slit */
.md-effect-13.md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.md-effect-13 .md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(-3000px) rotateY(90deg);
	-moz-transform: translateZ(-3000px) rotateY(90deg);
	-ms-transform: translateZ(-3000px) rotateY(90deg);
	transform: translateZ(-3000px) rotateY(90deg);
	opacity: 0;
}

.md-show.md-effect-13 .md-content {
	-webkit-animation: slit .7s forwards ease-out;
	-moz-animation: slit .7s forwards ease-out;
	animation: slit .7s forwards ease-out;
}

@-webkit-keyframes slit {
	50% { -webkit-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -webkit-animation-timing-function: ease-out;}
	100% { -webkit-transform: translateZ(0) rotateY(0deg); opacity: 1; }
}

@-moz-keyframes slit {
	50% { -moz-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -moz-animation-timing-function: ease-out;}
	100% { -moz-transform: translateZ(0) rotateY(0deg); opacity: 1; }
}

@keyframes slit {
	50% { transform: translateZ(-250px) rotateY(89deg); opacity: 1; animation-timing-function: ease-in;}
	100% { transform: translateZ(0) rotateY(0deg); opacity: 1; }
}


@media screen and (max-width: 32em) {
	body {
	font-size: 55%;
	overflow-y: scroll;
	}
button {
	border: none;
	padding: 0.6em 1.2em;
	background: #c0392b;
	color: #E6E6E6;
/* 	fff; */
	font-family: Calibri, Arial, sans-serif;
	font-size: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-block;
	margin: 1px 1px;
	border-radius: 2px;
}
	.md-content h3 {
	margin: 0;
	padding: 0em;
	text-align: center;
/* 	font-size: 2.4em; */
    font-size: 70%;
    margin-bottom: 0em;
    text-decoration: underline;
/* 	font-weight: 300; */
	opacity: 0.8;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}
.md-content h4 {
    font-family: Calibri, Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
    font-size: 60%;
    font-weight: bold;
}
.md-content > div ul {
	margin: 0;
	padding: 0 0 3px 2px;
}

.md-content > div ul li {
	padding: 2px 0;
	box-sizing: border-box;
}
}