/* 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;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1002;
	opacity: 0;
	background: rgba(0,0,0,0.8);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	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%);

	-webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

/* Content styles */
.md-content {
	color: #3a2f2f;
	/*background: #fff;*/
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
	max-height: 80vh;
 	min-height: 50px;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	word-break: break-word;
}
.md-scroll-container {
	position: relative;
	max-height: 70vh;
 	min-height: 50px; 
	background-repeat: no-repeat !important;
	background-size: contain !important;
	margin: 0 auto;
}

@media only screen and (max-width: 1281px) and (min-width: 320px) {

	.md-scroll-container {
	    overflow-x: hidden;
    	overflow-y: scroll;
	}
}

.md-modal-content {
	width: 100%;
	padding: 0 20px;
}

.md-modal-content img {
	width: calc(100% + 40px);
	margin-left: -20px;
}

.md-content h3 {
	text-align: center;
}

.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 * {

}
.md-content { 
    /*padding: 5px 20px 20px 20px;*/
}
/* 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;
}

/* Effect 2:  Just me */

.md-effect-2 .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-full-overlay {
	background: #fff;
} 

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

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

/* Effect 3: Slide from the right */
.md-effect-3 {
    position: fixed;
    top: 50%;
    left: 15px;
    height: auto;
    z-index: 2000;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateX(0%) translateY(-50%);
    -moz-transform: translateX(0%) translateY(-50%);
    -ms-transform: translateX(0%) translateY(-50%);
    transform: translateX(0%) translateY(-50%);
}
.md-effect-3 .md-content {
	-webkit-transform: translateX(-20%);
	-moz-transform: translateX(-20%);
	-ms-transform: translateX(-20%);
	transform: translateX(-20%);
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	-moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}

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

/* Effect 4: Slide from the right */
.md-effect-4 {
    position: fixed;
    top: 50%;
    left: auto;
    right: 15px;
    height: auto;
    z-index: 2000;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateX(0%) translateY(-50%);
    -moz-transform: translateX(0%) translateY(-50%);
    -ms-transform: translateX(0%) translateY(-50%);
    transform: translateX(0%) translateY(-50%);
}
.md-effect-4 .md-content {
	-webkit-transform: translateX(20%);
	-moz-transform: translateX(20%);
	-ms-transform: translateX(20%);
	transform: translateX(20%);
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	-moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}

.md-show.md-effect-4 .md-content {
	-webkit-transform: translateX(0);
	-moz-transform: translateX(0);
	-ms-transform: translateX(0);
	transform: translateX(0);
	opacity: 1;
}
/* Show and Hide effect */
.md-show {
	visibility: visible;
}
.md-show-overlay {
	opacity: 1;
	visibility: visible;
}
.md-modal input, .md-modal keygen, .md-modal select, .md-modal button {
    text-rendering: auto;
    color: initial;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    /*text-align: start;*/
    margin: 0em 0em 0em 0em;
    /*font: 13.3333px Arial;*/
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    /*width: 100%;*/
}
a.md-close {
	text-align: center;
    font-size: 20px;
    color: #000;
    font-weight: 500;
    top: 0;
    position: absolute;
    right: 0;
    background-color: rgba(255,255,255,1);
    width: 30px;
    height: 30px;
}

.md-effect-4 a.md-close {
    font-size: 20px;
    color: #000;
    font-weight: 500;
    top: 0px;
    position: absolute;
    left: 0;
    background-color: rgba(255,255,255,1);
    width: 30px;
    height: 30px;
}
.md-effect-2 a.md-close {
    font-size: 20px;
    color: #000;
    font-weight: 500;
    top: 0px;
    position: absolute;
    right: 0px;
    background-color: rgba(255,255,255,1);
    width: 30px;
    height: 30px;
}

@media screen and (max-device-width: 40em) {
	
	.md-content {
		width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
	}

	.md-scroll-container {
		width: 100% !important;
		max-height: 100% !important;
	}

	.md-modal {
		width: 100% !important;
		height: 100% !important;
	}

	a.md-close { 
		width: 50px !important;
    	height: 50px !important;
    	font-size: 31px !important;
	}

	.md-effect-4 {
		right: 0;
	}
	.md-effect-3 {
		left: 0;
	}

	.md-effect-1 a.md-close, .md-effect-3 a.md-close {
		right: 0 !important;
	}

	.md-effect-4 a.md-close {
		left: 0 !important;
	}
}

/* Tooltip */
.tooltipster-content {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}