/**
 * The modal styles
 * 
 * @since 1.0.0
 */

/*--------------------------------------------------------------
1.0 General
--------------------------------------------------------------*/

.modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	overflow: auto;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	-webkit-backface-visibility: hidden;
	                 visibility: hidden;
	z-index: 1000;
}

.modal .modal-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 3, 67, 142, 0.6 );
	cursor: pointer;
	z-index: 1050;
}

.modal .modal-frame {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: rgb( 248, 248, 246 ) url(../images/modals/background-pattern.svg) right top no-repeat;
	background-size: 364px 378px;
	-webkit-transform: scale( 0.7 );
	    -ms-transform: scale( 0.7 );
	        transform: scale( 0.7 );
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	z-index: 1100;
}

.modal .modal-frame .modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
	color: rgb( 128, 128, 128 );
}
.modal .modal-frame .modal-close span {
	display: none;
}
.modal .modal-frame .modal-close:hover {
	color: rgb( 0, 0, 0 );
	text-decoration: none;
}

.modal .modal-header .modal-title {
	margin-bottom: 0.5em;
	font-family: 'lust-script-display', serif;
	font-size: 4.0rem;
	line-height: 1;
	text-align: center;
	text-transform: lowercase;
}

.modal .modal-content {
	margin: 0 0 30px 0;
	text-align: center;
}
.modal .modal-content h2 {
	margin-bottom: 20px;
	color: rgb( 64, 64, 64 );
	font-size: 2.8rem;
	font-weight: 900;
	letter-spacing: 0.5rem;
	line-height: 1;
	text-transform: uppercase;
}

.modal .modal-footer {
	padding: 40px 64px 0;
	font-size: 1.4rem;
	font-style: italic;
	text-align: center;
	background: url(../images/modals/footer-divider.svg) center top no-repeat;
}

/* Animation */

.modal.modal-show {
	visibility: visible;
	opacity: 1;
}
.modal.modal-show .modal-frame {
	-webkit-transform: scale( 1 );
	    -ms-transform: scale( 1 );
	        transform: scale( 1 );
}

@media screen and ( min-width: 600px ) {
	
	.modal .modal-frame {
		top: 40px;
		right: 40px;
		left: 40px;
		width: auto;
		padding: 40px;
		border-radius: 40px;
	}
	
}

@media screen and ( min-width: 800px ) {
	
	.modal .modal-frame {
		top: 40px;
		right: auto;
		bottom: auto;
		left: 50%;
		width: 580px;
		margin-left: -290px;
	}
	
}

/* Forms */

.modal .modal-content form a[role="button"],
.modal .modal-content form button {
	color: rgb( 255, 255, 255 );
	background: rgb( 195, 154, 100 );
	border: none;
}
.modal .modal-content form a[role="button"]:hover,
.modal .modal-content form button:hover {
	background: rgb( 0, 0, 0 );
}

.modal .modal-content form a[role="button"].asada-icon-loading,
.modal .modal-content form button.asada-icon-loading {
	padding-right: 14px;
}
.modal .modal-content form a[role="button"].asada-icon-loading::before,
.modal .modal-content form button.asada-icon-loading::before {
	float: right;
	margin: 0 0 0 10px;
}

.modal .modal-content form .message {
	margin: 10px 0;
	padding: 10px;
	color: rgb( 255, 255, 255 );
	font-size: 1.6rem;
	font-weight: 300;
	background: rgb( 30, 133, 190 );
	border-radius: 500px;
}
.modal .modal-content form .message.success {
	background-color: rgb( 143, 174, 27 );
}
.modal .modal-content form .message.error {
	background-color: rgb( 184, 28, 35 );
}


/*--------------------------------------------------------------
2.0 Subscribe
--------------------------------------------------------------*/

/* Social Links */

.modal-subscribe .social-links {
	float: left;
	padding-top: 8px;
}

.modal-subscribe .subscribe-submit {
	display: block;
	float: right;
}


/*--------------------------------------------------------------
3.0 Login
--------------------------------------------------------------*/

/* Form */

.modal-login label[for="login-remember"] {
	display: block;
	float: left;
}
.modal-login .login-submit {
	display: block;
	float: right;
}


/*--------------------------------------------------------------
3.0 Restricted
--------------------------------------------------------------*/

/* Close Button */

.modal-restricted .modal-close {
	display: none;
}

/* Buy Button */

.modal-restricted .buy-button {
	margin: 0 auto 40px;
}

/* Form */

.modal-restricted label[for="login-remember"] {
	display: block;
	float: left;
}
.modal-restricted .login-submit {
	display: block;
	float: right;
}
