/* 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: 95%;
	max-width: 800px;
	min-width:300px;
	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%);
	margin:0 auto;
	max-height: calc(90vh - 100px);
}

.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(30,35,39,0.9);
	-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: #ffffff;
	background: #76102d;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
	width:100%;
	max-height: calc(80vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

}

/*scrollbar*/
::-webkit-scrollbar {-webkit-appearance: none;}
::-webkit-scrollbar:vertical {width: 8px;}
::-webkit-scrollbar:horizontal {height: 12px;}
::-webkit-scrollbar-thumb {background-color: rgba(255, 255, 255, .9);border-radius: 10px;border: 0px solid #ffffff;}
::-webkit-scrollbar-track {border-radius: 10px;  background-color: #76102d; }

.md-content h3 {
	margin: 0;
	padding: 1%;
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	opacity: 0.8;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}

.md-content > div {
	padding: 10px 5% 10px 6%;
	margin: 0;
	font-size:15px;
}

.md-content > div p {
	margin: 0;
	padding: 10px 0;
}!important


.md-content > div ol  { 
	margin: 0;
	padding: 0 0 0% 1.2%;
}

.md-content > div ol li {
	padding: 5px 0;
	height: calc(90% + 1px);
	font-weight: 300;
	font-size: 14px;
}

.md-content > ul,ol { list-style:outside; }

.md-content button {
	display: block;
	margin: 0 auto;
	font-size: 13px;
	text-align:center;
}

.md-close {background-color:#76102d;border:none;text-align:left;margin:10px auto;}
.md-close img {background-color:#76102d;border:none;text-align:left;}

/* 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;
}

.md-close {background-color:#76102d;border:none;text-align:left;margin:5px auto;cursor:pointer;float:left;padding:0;}
.md-close img {background-color:#76102d;border:none;text-align:left;max-width:40px;max-height:40px;cursor:pointer;padding:20px 5px  10px 15px;}
@media (max-width: 768px){ 

.md-content h3 {
	font-size: 20px;
}

.md-content > div ol li {
	font-size: 15px;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 95%;
	max-width: 800px;
	min-width:300px;}

.md-content {
	color: #ffffff;
	background: #76102d;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
	width:90%;
	padding:0 5%;
	max-height: calc(90vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;


}
.md-close img {background-color:#76102d;border:none;text-align:left;max-width:30px;max-height:30px;cursor:pointer;padding:10px 5px  10px 0px;}
}
