/* 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).
*/

/*source: http://tympanus.net/codrops/2013/06/25/nifty-modal-window-effects/
*/

.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}

button.md-trigger {
	border: none;
	padding: 0;
	background: transparent;
	color: #fff;
	font-size: 100%;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-block;
	border-radius: 2px;
}

button.md-trigger:before {
    content: "";
    width: 0;
    height: 0;
    position: relative;
    left: 0px;
	top: 13px;
	margin-right: 7px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #fff transparent;
}

button.md-trigger span{
	float: right;
	margin-left:7px;
}

button.md-trigger img{
	height: 21px;
	width: auto;
	float:right;
}

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

.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(0,0,0,0.8);
	-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: #fff;
	background: #fff;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.md-content > div {
	padding: 40px;
	margin: 0;
	font-weight: 300;
	font-size: 1.15em;
}

.md-content div.select-style{
	margin:0 0 1em 0;
	width:100%;
	background: #fff url("../images/arrow-01.png") no-repeat 95% 50%;
	background-size: 15px 20px;
}

.md-content div.select-style select{
	width:100%;
    font-size: 1em;

}

button.md-close{
	cursor:pointer;
	border: none;
	padding: 0;
	width:30px;
	height:30px;
	background: transparent;
	background-image: url(../images/close-icon-black.svg);
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: right top;
}

.md-content button {
	display: inline-block;
	font-size: 0.8em;
	position:absolute;
	right:20px;
	top:20px;
}

p.md-save{
	font-size:100%;
	margin-top:2em;
}

/* Individual modal styles with animations/transitions */


/* Effect 3: Slide from the bottom */
.md-effect-3 .md-content {
	-webkit-transform: translateY(20%);
	-moz-transform: translateY(20%);
	-ms-transform: translateY(20%);
	transform: translateY(20%);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

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