/* ========= INFORMATION ============================

- document:  active Modals - HTML5 and CSS3 powered modal popups
- author:    Capelle @ Codecanyon
- profile:   http://codecanyon.net/user/Capelle
- version:   3.0

==================================================== */

/* ========================
   Reset and basics
   ======================== */

/* Main wrapper */
.activeModal{
	margin: 0;
	padding: 10px;
	border: 0;
	outline: 0;
	background: rgba(0, 0, 0, 0.66);
	font-weight: normal;
	font-style: normal;
	font-size: 100%;
	vertical-align: baseline;
	line-height: normal;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.activeModal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	visibility: hidden;
	opacity: 0;
}
.isActive {
	visibility: visible;
	opacity: 1;
	z-index: 99999;
}
.activeModal.isActive,
.isActive .overlay {
	-webkit-transition-delay: 0s;
	-moz-transition-delay: 0s;
	-ms-transition-delay: 0s;
	transition-delay: 0s;
}
.activeModal,
.activeModal.isActive .window {
	-webkit-transition-delay: 0.2s;
	-moz-transition-delay: 0.2s;
	-ms-transition-delay: 0.2s;
	transition-delay: 0.2s;
}
.activeModal.isActive .window {
	-webkit-transform: rotate(0deg) scale(1);
	-moz-transform: rotate(0deg) scale(1);
	-ms-transform: rotate(0deg) scale(1);
	transform: rotate(0deg) scale(1);
}
.activeModal.isActive .overlay,
.activeModal.isActive .window {
	opacity: 1;
}

/* Overlay defaults */
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	display: block;
	opacity: 0;
	z-index: 1;
	background: rgba(0,0,0,0.8);
}

/* Window defaults */
.window {
	display: inline-block;
	width: 500px;
	height: 300px;
	padding: 40px;
	position: absolute;
	margin: auto;
	background: #fff;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	z-index: 2;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	opacity: 0;
	-webkit-transition-property: rotate, transform, opacity, scale, perspective;
	-moz-transition-property: rotate, transform, opacity, scale, perspective;
	-ms-transition-property: rotate, transform, opacity, scale, perspective;
	transition-property: rotate, transform, opacity, scale, perspective;
}

/* ========================
   Background defaults
   ======================== */

/* Blur */
.blurred {
	-webkit-filter: blur(2px);
	-moz-filter: blur(2px);
	-ms-filter: blur(2px);
	filter: blur(2px);
}
/* Scale */
.scaled {
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	transform: scale(0.9);
}

/* ========================
   Modal window positions
   ======================== */

/* Center */
.window.center {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

/* Top */
.window.topLeft {
	top: 0;
	left: 0;
}
.window.topCenter {
	top: 0;
	left: 0;
	right: 0;
}
.window.topRight {
	top: 0;
	right: 0;
}

/* Bottom */
.window.bottomLeft {
	bottom: 0;
	left: 0;
}
.window.bottomCenter {
	bottom: 0;
	left: 0;
	right: 0;
}
.window.bottomRight {
	bottom: 0;
	right: 0;
}

/* On side */
.window.right {
	top: 0;
	right: 0;
	bottom: 0;
}
.window.left {
	top: 0;
	left: 0;
	bottom: 0;
}

/* ========================
   Modal window transitions
   ======================== */

/* Fade */
.window.fade {
	opacity: 0;
}

/* Zoom */
.window.zoomIn {
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
}
.window.zoomOut {
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-ms-transform: scale(1.2);
	transform: scale(1.2);
}

/* Slide */
.window.slideTop {
	-webkit-transform: translateY(-25%);
	-moz-transform: translateY(-25%);
	-ms-transform: translateY(-25%);
	transform: translateY(-25%);
}
.window.slideBottom {
	-webkit-transform: translateY(25%);
	-moz-transform: translateY(25%);
	-ms-transform: translateY(25%);
	transform: translateY(25%);
}
.window.slideLeft {
	-webkit-transform: translateX(-25%);
	-moz-transform: translateX(-25%);
	-ms-transform: translateX(-25%);
	transform: translateX(-25%);
}
.window.slideRight {
	-webkit-transform: translateX(25%);
	-moz-transform: translateX(25%);
	-ms-transform: translateX(25%);
	transform: translateX(25%);
}

/* Rotate */
.window.rotateIn {
	-webkit-transform: rotate(720deg) scale(0);
	-moz-transform: rotate(720deg) scale(0);
	-ms-transform: rotate(720deg) scale(0);
	transform: rotate(720deg) scale(0);
}
.window.rotateOut {
	-webkit-transform: rotate(720deg) scale(1.5);
	-moz-transform: rotate(720deg) scale(1.5);
	-ms-transform: rotate(720deg) scale(1.5);
	transform: rotate(720deg) scale(1.5);
}

/* Flip */
.window.flipHorizontal {
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	-ms-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
}
.window.flipVertical {
	-webkit-transform: rotateX(-90deg);
	-moz-transform: rotateX(-90deg);
	-ms-transform: rotateX(-90deg);
	transform: rotateX(-90deg);
}

/* Perpective */
.window.perspectiveTop {
	-webkit-transform: perspective(300px) rotateX(-90deg);
	-moz-transform: perspective(300px) rotateX(-90deg);
	-ms-transform: perspective(300px) rotateX(-90deg);
	transform: perspective(300px) rotateX(-90deg);
	-webkit-transform-origin: top center;
	-moz-transform-origin: top center;
	-ms-transform-origin: top center;
	transform-origin: top center;
}
.window.perspectiveBottom {
	-webkit-transform: perspective(300px) rotateX(90deg);
	-moz-transform: perspective(300px) rotateX(90deg);
	-ms-transform: perspective(300px) rotateX(90deg);
	transform: perspective(300px) rotateX(90deg);
	-webkit-transform-origin: bottom center;
	-moz-transform-origin: bottom center;
	-ms-transform-origin: bottom center;
	transform-origin: bottom center;
}
.window.perspectiveLeft {
	-webkit-transform: perspective(200px) rotateY(90deg);
	-moz-transform: perspective(200px) rotateY(90deg);
	-ms-transform: perspective(200px) rotateY(90deg);
	transform: perspective(200px) rotateY(90deg);
	-webkit-transform-origin: center left;
	-moz-transform-origin: center left;
	-ms-transform-origin: center left;
	transform-origin: center left;
}
.window.perspectiveRight {
	-webkit-transform: perspective(200px) rotateY(-90deg);
	-moz-transform: perspective(200px) rotateY(-90deg);
	-ms-transform: perspective(200px) rotateY(-90deg);
	transform: perspective(200px) rotateY(-90deg);
	-webkit-transform-origin: center right;
	-moz-transform-origin: center right;
	-ms-transform-origin: center right;
	transform-origin: center right;
}

/* ========================
   Transition timing defaults
   ======================== */

.activeModal .linear {
	-webkit-transition-timing-function: linear;
	-moz-transition-timing-function: linear;
	-ms-transition-timing-function: linear;
	transition-timing-function: linear;
}
.activeModal .ease {
	-webkit-transition-timing-function: ease;
	-moz-transition-timing-function: ease;
	-ms-transition-timing-function: ease;
	transition-timing-function: ease;
}
.activeModal .ease-in {
	-webkit-transition-timing-function: ease-in;
	-moz-transition-timing-function: ease-in;
	-ms-transition-timing-function: ease-in;
	transition-timing-function: ease-in;
}
.activeModal .ease-out {
	-webkit-transition-timing-function: ease-out;
	-moz-transition-timing-function: ease-out;
	-ms-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.activeModal .ease-in-out {
	-webkit-transition-timing-function: ease-in-out;
	-moz-transition-timing-function: ease-in-out;
	-ms-transition-timing-function: ease-in-out;
	transition-timing-function: ease-in-out;
}

/* ========================
   Close buttons
   ======================== */

/* Basics */
.closeModal,
.openModal {
	cursor: pointer;
}
.activeModal .close {
	position: absolute;
	top: -20px;
	right: 0;
	z-index: 10;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: 700;
	transition: all 0.1s ease;
}
.activeModal .close:before {
	white-space: nowrap;
	display: block;
	position: relative;
	transition: all 0.1s ease;
}

/* Labeled button */
.activeModal .close.labeled:before {
	color: #fff;
	content: "close";
	font-size: 8px;
	text-transform: uppercase;
	background: linear-gradient(to right, #fff 50%, #000 50%);
	background-size: 200% 100%;
	background-position: right bottom;
	padding: 6px 12px;
	margin-top: -10px;
}
.activeModal .close.labeled:hover:before {
	background-position: left bottom;
	color: #000;
}

/* Text button */
.activeModal .close.text:before {
	color: #fff;
	content: "Close";
	font-size: 9px;
	text-transform: uppercase;
}

/* Tag button */
.activeModal .close.tag:before {
	color: #fff;
	content: "\00d7";
	background: #000;
	text-align: center;
	font-size: 15px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	margin-top: 20px;
	opacity: 0.2;
}
.activeModal .close.tag:hover:before {
	opacity: 1;
}

/* Icon button */
.activeModal .close.icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	top: 5px !important;
	overflow: hidden;
	margin: 30px 20px 0 0;
	opacity: 0.6;
}
.activeModal .close.icon.no2{
    opacity: 1 !important;
}
.activeModal .close.icon.no3{
    top: -15px !important;
    margin: 30px 25px 0 0;
    opacity: 0.4;
}
.activeModal .close.icon:hover:before {
	color: #000;
}
.activeModal .close.icon.no2:hover:before {
	color: #fff !important;
}
.activeModal .close.icon:before,
.activeModal .close.icon:after {
	content: "";
	position: absolute;
	height: 1px;
	width: 100%;
	top: 50%;
	left: 0;
	margin-top: -1px;
	background: #000;
}
.activeModal .close.icon.no2:before,
.activeModal .close.icon.no2:after {
	background: #fff !important;
}
.activeModal .close.icon:before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.activeModal .close.icon:after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.activeModal .close.icon:hover {
	opacity: 1;
}