h1model, h2model {
	font-size: 24px;
	display: block;
	direction: rtl;
	text-align: right;
	float: right
}

p-model {
	margin: 10px 0 10px 0;
	font-size: 16px;
	line-height: 1.32;
}

small {
	display: block;
	margin-top: 15px;
	padding-top: 15px;
	color: #333;
	font-size: 0.85em;
	border-top: 1px dashed #ccc;
	-webkit-text-size-adjust: none;
}

button {
	border: 0px;
	padding: 5px 7px;
	margin: 5px 0px;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px; 
	
	cursor: pointer;
	color: #fff;
	background: #87c62f;
	font: 16px arial;

	-webkit-transition: 0.15s background ease;
	-moz-transition: 0.15s background ease;
	-ms-transition: 0.15s background ease;
	-o-transition: 0.15s background ease;
	transition: 0.15s background ease;
}

button:hover {
	background: #87c62f;
}

button:active {
	background: #87c62f;
}
button+button {
	margin-left: 5px;
}

.sharing {
	margin-top: 50px;
}

.model-active body {
	-webkit-transform: scale( 1 );
	-moz-transform: scale( 1 );
    -ms-transform: scale( 1 );
	-o-transform: scale( 1 );
	transform: scale( 1 );
}

.model-cover {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	visibility: hidden;
	opacity: 0;
	background: rgba( 0, 0, 0, 0.5 );
}

.model-active .model-cover {
	visibility: visible;
	opacity: 1;
}

.model-contents {
	position: relative;
	padding: 20px;
	max-width: 400px;
	height: 100%;
	margin: auto;
}
	.model-active .model-contents {
		-webkit-filter: blur(2px);
		   -moz-filter: blur(2px);
		    -ms-filter: blur(2px);
		     -o-filter: blur(2px);
		        filter: blur(2px);
	}
	.no-blur.model-active .model-contents {
		-webkit-filter: none;
		   -moz-filter: none;
		    -ms-filter: none;
		     -o-filter: none;
		        filter: none;
	}

.model-popup {
	position: fixed;
	width: auto;
	height: auto;
	left: 30%;
	top: 20%;
	
	margin:-50px 0 0 -100px;
	visibility: hidden;
	opacity: 0;
	z-index: 2;
	padding: 20px;

	background: white;
	box-shadow: 0px 0px 20px rgba( 0, 0, 0, 0.6 );
	border-radius: 3px;

	-webkit-transform: scale( 1 );
	   -moz-transform: scale( 1 );
	    -ms-transform: scale( 1 );
	     -o-transform: scale( 1 );
	        transform: scale( 1 );
}
.model-active .model-popup {
	visibility: visible;
	opacity: 1;

	-webkit-transform: scale( 1 );
	-moz-transform: scale( 1 );
	-ms-transform: scale( 1 );
    -o-transform: scale( 1 );
    transform: scale( 1 );
}
.model-popup.stack {
	-webkit-transform: scale( 1 );
	-moz-transform: scale( 1 );
	-ms-transform: scale( 1 );
    -o-transform: scale( 1 );
    transform: scale( 1 );
}
.model-active .model-popup.stack {
	-webkit-transform: scale( 1 );
	-moz-transform: scale( 1 );
	-ms-transform: scale( 1 );
	-o-transform: scale( 1 );
	transform: scale( 1 );
}


.model-ready body,
.model-ready .model-contents,
.model-ready .model-popup,
.model-ready .model-cover {
	-webkit-transform-origin: 50% 50%;
	-moz-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	-o-transform-origin: 50% 50%;
	transform-origin: 50% 50%;

	-webkit-transition: 0.3s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	-moz-transition: 0.3s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	-ms-transition: 0.3s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	-o-transition: 0.3s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	transition: 0.3s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

.model-ready .model-popup.no-transition {
	-webkit-transition: none;
	-moz-transition: none;
	-ms-transition: none;
	-o-transition: none;
	transition: none;
}