/* 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: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
/*    max-width: 1000px;
*/    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%);
    overflow: auto;
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: #fff8;
	-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: #000;
	background: #fff;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.md-content h3 {
	margin: 0;
	padding: 0.4em;
	text-align: center;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}
button.md-close {
    background: #ccc0;
    border: 1px solid #999;
    padding: 5px 15px;
    font-size: 17px;
}
.md-content > div {
	padding: 15px 40px 30px;
    margin: 0;
}

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

.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;
}

/* Individual modal styles with animations/transitions */


/* Effect 12:  Just me */
.md-effect-12 .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-12 ~ .md-overlay {
	background: #fff;
} 

.md-effect-12 .md-content h3,
.md-effect-12 .md-content {
	background: transparent;
}

.md-show.md-effect-12 .md-content {
/*	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);*/
	opacity: 1;
	max-height: 100vh;
}

@media only screen and (max-width:1000px) {
.md-content > div p,.md-content > div li {
    font-size: 1.9vw;
    line-height: initial;
    font-weight: 400;
}


.md-content > h3 {
    font-size: 3.3vw;
}
}
@media only screen and (max-width:600px) {
.md-modal {
	position: fixed;
	width: 100%;
	min-width: 290px;
	padding:0px 10%;
	max-height: 100%;
	
	/*webkit-transform: translateX(0%) translateY(0%);
	-moz-transform: translateX(0%) translateY(0%);
	-ms-transform: translateX(0%) translateY(0%);
	transform: translateX(0%) translateY(0%);
	left: 0;
	top: 0;*/
	display:none;
	visibility: visible;
	}  
	.md-show{display: block} 

	.md-content button{margin-bottom: 20px;}
} 