/* 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-content button.md-close{
	right: 0;
	display: block;
    position: absolute;
    overflow: hidden;
    margin: 10px 10px 0 0;
    padding: 0;
    width: 25px;
    height: 25px;
    z-index: 1001;
    font-size: 0;
    text-indent: -9999px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: none;
    border: none;
    cursor: pointer;
    -webkit-transition: background .3s;
    transition: background .3s;
	outline: none;
}
.md-content button span {
    display: block;
    position: absolute;
    top: 11px;
    left: 0px;
    right: 0px;
    height: 3px;
    background: #a1a1a1;
    transition: background 0s;
	    -webkit-transition-duration: .3s,.3s;
    transition-duration: .3s,.3s;
    -webkit-transition-delay: .3s,0s;
    transition-delay: .3s,0s;
	webkit-transition-property: bottom,-webkit-transform;
    transition-property: bottom,transform;
}
.md-content button span::after {
	content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0px;
    right: 0px;
    height: 3px;
    background: #a1a1a1;
    transition: background 0s;
	    -webkit-transition-duration: .3s,.3s;
    transition-duration: .3s,.3s;
    -webkit-transition-delay: .3s,0s;
    transition-delay: .3s,0s;
	webkit-transition-property: bottom,-webkit-transform;
    transition-property: bottom,transform;
}
.md-modal.md-show button span{
	    top: 11px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.md-modal.md-show span::after{
	    top: 0px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(90deg);
}

.md-content button span::before {
    top: 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.md-modal {
	visibility: hidden;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
    outline: 0;

}
.md-modal .modal-dialog{ position: fixed;
	z-index:2;
	width: 600px;
	margin: 30px auto;
	position: relative;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);  
	}
.md-overl{
	 background: rgba(58, 86, 95, 0.61);
	 position: absolute;
	 width: 100%;
	 height: 100%;
	top:0;
	left:0;
	z-index:1;
}
.md-show {
	visibility: visible;
}
.blure body {
    overflow: hidden;
}
 .md-overlay {

   

}

/* .md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}  */

/* Content styles */
.md-content {
	color: #3a565f;
	background: #dedede;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.md-content h3 {
	padding-top: 20px;
    font-size: 24px;
    color: #3a565f;
    line-height: 1.2;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.md-content > div {
	padding: 15px 40px 30px;
	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;
}



/* Individual modal styles with animations/transitions */

/* Effect 11: Super scaled */
.md-effect-11 .modal-dialog {
	-webkit-transform: scale(2);
	-moz-transform: scale(2);
	-ms-transform: scale(2);
	transform: scale(2);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}
.blure .md-modal {
    overflow-x: hidden;
    overflow-y: auto;
}
.md-show.md-effect-11 .modal-dialog {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}
.blure .header,
.blure .wrapper {
	-webkit-filter: blur(10px);
	-moz-filter: blur(10px);
	filter: blur(10px);
}
.blure  .header,
.blure .wrapper,
.md-effect-11 .modal-dialog {
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}
.md-modal .inner{
	padding-top: 30px;
}
@media screen and (max-width: 707px){
	.md-modal .modal-dialog{
		width: 300px;
	}
	.md-modal .inner {
		padding-top: 50px;
	}
	.md-content > div {
		padding: 15px 15px 30px;
		margin: 0;
		font-weight: 300;
		font-size: 1.15em;
	}
}