/************************************************************
//
//	MODAL
//
************************************************************/

/* MODAL */

#modalContainer {
	
	visibility: hidden;
	
}

body.modalOpen #modalContainer {

	visibility: visible;
	
}

#modalVeil {

	position: fixed;
	
	left: 0;
	right: 0;
	
	top: -20%;
	bottom: -20%;
	
	background: rgba(0, 0, 0, .5);
	
	cursor: pointer;
	
	-webkit-transition: all 600ms;
	-moz-transition: all 600ms;
	-o-transition: all 600ms;
	transition: all 600ms;
	
	opacity: 0;
	
}

body.modalOpen #modalVeil {

	opacity: 1;
	
}

#modal {

	position: fixed;
	
	margin: auto;
	
	left: 15px;
	right: 15px;
	
	top: 15px;
	bottom: 15px;
	
	max-width: 480px;
	max-height: 417px;
	
	border: 10px solid white;
	
	background: white;
	
	-webkit-box-shadow: 0 6px 9px 0 #222222;
	-moz-box-shadow: 0 6px 9px 0 #222222;
	-ms-box-shadow: 0 6px 9px 0 #222222;
	-o-box-shadow: 0 6px 9px 0 #222222;
	box-shadow: 0 6px 9px 0 #222222;
	
	-webkit-transition: all 300ms;
	-moz-transition: all 300ms;
	-o-transition: all 300ms;
	transition: all 300ms;
	
	-webkit-transform: scale(.8);
	-moz-transform: scale(.8);
	-ms-transform: scale(.8);
	-o-transform: scale(.8);
	transform: scale(.8);
	
	opacity: 0;
	
}

body.modalOpen #modal {

	opacity: 1;
	
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
	
}

#modalBody {

	width: 100%;
	height: 100%;
	
	overflow-x: hidden;
	overflow-y: auto;
	
	background: white;
	
}

/* MODAL LOAD SCREEN */

#modalLoadScreen {

	position: absolute;
	
	visibility: hidden;
	
	left: 0;
	top: 0;
	
	width: 100%;
	height: 100%;
	
	overflow: hidden;
	
	background: black;
	
	-webkit-transition: all 300ms;
	-moz-transition: all 300ms;
	-o-transition: all 300ms;
	transition: all 300ms;
	
	opacity: 0;
	
}

#modalLoadScreen.visible {
	
	visibility: visible;
	
	opacity: 1;
	
}

#modalLoadScreenCenter {

	position: absolute;
	
	left: 50%;
	top: 50%;
	
	width: 0;
	height: 0;
	
	background: red;
	
}

#modalLoadScreenGif {
	
	position: absolute;
	
	left: -125px;
	top: -125px;
	
	width: 250px;
	height: 250px;
	
}

/* MODAL BUTTONS */

.modalButton {
	
	position: absolute;
	
	width: 20px;
	height: 20px;

	border: 5px solid white;
	
	border-radius: 50%;
	
	cursor: pointer;
	
	background: black;
	
}

.modalButton:before {
	
	display: inline-block;
	
	width: 20px;
	line-height: 20px;
	
	font-family: "qis_icons";
	
	color: white;
	
	text-align: center;
	
	speak: none;
	
}

#modalCloseButton:before {	content: '\e80D';	}
#modalPrevButton:before {	content: '\e80E';	}
#modalNextButton:before {	content: '\e80F';	}

#modalCloseButton {
	
	right: -20px;
	top: -20px;
	
}

#modalPrevButton {
	
	display: none;
	
	left: -20px;
	bottom: -20px;
	
}

#modalNextButton {
	
	display: none;
	
	right: -20px;
	bottom: -20px;
	
}

#modal.modalPic #modalPrevButton, #modal.modalPic #modalNextButton {
	display: block;
}

/* MODAL PIC */

#modalPic {
	
	display: none;
	
	margin: auto;
	
	width: auto;
	height: 100%;
	
}

#modal.modalPic #modalPic {
	
	display: block;
	
}

/* MODAL CONTACT */

#modalContact {
	
	display: none;
	
}

#modal.modalContact #modalContact {
	
	display: block;
	
}

#cf {
	
	display: block;
	
	margin: 0;
	padding: 0;
	padding: 10px;
	
	width: 100%;
	
	border: 0;
	
	overflow: hidden;
	
	color: black;
	
	/**/
	
	background: #DDDDDD;
	
	padding: 10px;
	
}

#cf_header {

	position: relative;
	
	padding-left: 10px;
	
	height: 40px;
	line-height: 40px;
	
	color: white;
	
}

#cf_subject_container {
	
	margin-bottom: 10px;
	padding: 8px 0;
	
	width: 100%;
	
	border: 1px solid #CCCCCC;
	
	font-weight: normal;
	
}

#cf_subject_label {

	display: inline-block;
	
	margin-left: 5px;
	
	font-weight: bold;
	
}

#cf_subject {
	
	display: inline-block;
	
	margin-left: 5px;
	
	white-space: nowrap;
	
}

#cf label {
	
	display: block;
	
	padding: 0;
	
	width: 100%;
	
	font-weight: bold;
	
}

#cf label span {
	
	display: block;
	
	margin-bottom: 5px;
	
}

#cf input {
	
	display: block;
	
	width: 100%;
	height: 32px;
	height: 3.2rem;
	
	margin-bottom: 10px;
	padding: 0 5px;
	
	border: 0;
	
	font-size: 16px;
	font-size: 1.6rem;
	
	color: #666;
	
}

#cf textarea {
	
	display: block;
	
	width: 100%;
	height:100px;
	
	margin: 0;
	padding: 5px;
	
	border: 0;
	
	resize: none;
	
	font-size: 16px;
	font-size: 1.6rem;
	
	color: #666;
	
}

#cf_submit {
	
	display: block;
	
	margin: 5px 0 0 auto;
	
	width: 25%;
	height: 25px;
	
	border: 0;
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	
	background: #F8F8F8;
	
	color: #0A0A0A;
	
	font-weight: bold;
	
	cursor: pointer;
	
}

#cf_close_button {
	
	right: -20px;
	top: -20px;
	
}

.cf_success {
	margin: auto;
	margin-bottom: 10px;
	padding: 10px 0;
	border: 2px solid #88CC88;
	border-radius: 5px;
	width: 100%;
	font-weight: bold;
	text-align: center;
	-moz-align: center;
}

.cf_error {
	margin: auto;
	margin-bottom: 10px;
	padding: 10px 0;
	border: 2px solid #FF0000;
	border-radius: 5px;
	width: 100%;
	font-weight: bold;
	text-align: center;
	-moz-align: center;
}
