/* 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-close {
position: relative;
right: -45%;
top: 0px;
}


.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;  COLOR SALMON*/
	background: #5b1918;
	min-height: 100%;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 630px;
	min-width: 280px;
	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: #000;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

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

/* Content styles */
.md-content {

	color: #fff;
	background: #5b1918;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.md-content h3 {
	margin: 0;
	padding: 0.4em;
	text-align: center;
	font-size: 1.700em;
	font-weight: 300;
	/*background: rgba(0,0,0,0.1);*/
	border-radius: 3px 3px 0 0;
	color: #ebb565;
}

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

.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: 1.8em;
}

/* Individual modal styles with animations/transitions */

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}


/*@media (min-width: 1280px) and (max-width: 980px){
	.md-modal {
    top: 30%;}
}*/


@media (width: 1280px){

.md-modal {
    top: 38%;}
	
}

@media (width: 980px){
.md-modal {
    top: 25%;}	
}


@media (width: 800px){
	
	.md-modal {
    top: 24%;}
	
}

@media (width: 768px){
	.md-modal {top: 30%;}
	
	.md-close {right: -42%;}
	
	
}


@media (width: 600px){
	.md-modal {top: 24%;}
	.md-content > div {padding: 15px 15px 30px;
	}

}



@media (min-width: 601px) and (max-width: 760px){
	.md-modal {
		width: 530px;
		
		
	}
	
	.md-content > div {
		padding:0;
		font-size: 1em;
		
	}
	
	.md-show.md-effect-1 .md-content {
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	transform: scale(0.9);
	
}

.md-content h3{
	padding:0;
}



@media (width: 480px){
.md-close{
	right: -44%;
	top: 16px;}

.md-content h3{
	padding:0;
	font-size: 1.3em;
	
}

.md-content > div{
	font-size: 0.9em;
	padding:0;
	
}

.md-content button {

font-size: 1.3em;
	
}

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

}






@media screen and (max-width: 32em) {
	body { font-size: 75%; }
}

@media (min-width: 320px) and (max-width: 360px){
	
	.md-content h3{
		font-size: 1.5em;
		padding:0;
		
	}
	
	.md-content button {
	font-size: 1.3em;	
	}
	
	.md-close {
	right: -42%;
	}
	
	.md-content > div{
	font-size: 1.1em;
	padding: 15px 10px 30px;
		
	}
	
}