/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

body, html {
	padding:  0px;
	margin:  0px;
	width: 100%;
	height:  100%;
	overflow: hidden;
}

.clear {
	clear: both;
}

.social-share {
	margin-top:  50px;
	margin-left: 20px;
	position: fixed;
	z-index: 1000;
	
	&.pie {
		display: block;
	}
}

.transition( @target: all, @duration: 400ms, @type: ease ) {
	-webkit-transition: @target @duration @type;
	-moz-transition: @target @duration @type;
	-o-transition: @target @duration @type;
	transition: @target @duration @type;
}

.box-sizing {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.radius( @value: 1000px ) {
	-webkit-border-radius: @value;
	border-radius: @value;
    background-clip: padding-box;
}

@width: 1200px;
@height: 600px;
@blue: #1900FF;

#page {
	width: 100%;
	height: 100%;
	overflow: hidden;

	.layer {
		position: absolute;
		z-index: 10;
		width: 100%;
		height: 100%;
		overflow: hidden;
		left: 0%;
		top: 100%;
		.transition;

		&.active {
			top: 0%;
		}

		&.hidden {
			top: -100%;
		}

		.container {
			position: relative;
			width: 100%;
			height: 100%;

			.inner {
				width: @width;
				height: @height;
				position: absolute;
				z-index: 20;
				top: 50%;
				left: 50%;
				margin-top: -@height * 0.5;
				margin-left: -@width * 0.5;
			}
		}

		&.start {
			.container {
		
			/*	background-position: center center;
				background-image: url( ../images/zahod.jpg );
				background-repeat: no-repeat;*/
			}

			.title {
				font-family: ProximaNova-Regular;
				font-size: 33px;
				line-height: 39px;
				color: @blue;
				position: absolute;
				margin-left: 200px;
				margin-top: 50px;
				width: 250px;
			}

			.lead {
				font-family: ProximaNova-Regular;
				font-size: 14px;
				line-height: 23px;
				color: #000000;
				position: absolute;
				margin-left: 200px;
				margin-top: 200px;
				width: 250px;
			}

			.go {
				font-family: ProximaNovaT-Thin;
				font-size: 20px;
				line-height: 60px;
				color: @blue;
				border: @blue 1px solid;
				position: absolute;
				margin-left: 200px;
				margin-top: 400px;
				width: 150px;
				height: 60px;
				.radius(5px);
				text-align: center;
				cursor: pointer;
				background-color: #ffffff;
				text-transform: uppercase;

				&:hover {
					color: #FF0000;
					border-color: #FF0000;
				}
			}

			.authors {
				font-family: ProximaNova-Regular;
				font-size: 13px;
				line-height: 16px;
				color: rgba( 0, 0, 0, 0.6 );
				position: absolute;
				margin-left: 0px;
				margin-top: 500px;
				width: 200px;
			}

			.logo {
				display: block;
				width: 110px;
				height: 110px;
				margin-left: 15px;
				margin-top: 370px;
				background-image: url( ../images/logo.jpg );
			}
		}

		&.action {
			.backgrounds {
				position: absolute;
				width: 100%;
				height: 100%;
				z-index: 11;

				.background {
					display: none;

					&.active {
						display: block;
					}

					.item {
						width: 100%;
						height: 100%;
						position: absolute;
						display: none;
						background-size: cover;
						background-position: center center;

						&.active {
							display: block;
						}
					}
				}
			}

			.ask {
				width: 200px;
				margin-left: @width - 300px;
				margin-top: 100px;
				position: absolute;

				.question {
					font-family: ProximaNova-Regular;
					font-size: 28px;
					line-height: 34px;
					color: #000000;
					border-bottom: #000000 1px solid;
					padding-bottom: 30px;
					margin-bottom: 15px;
				}

				.answers {
					.item {
						font-family: ProximaNova-Regular;
						font-size: 20px;
						padding: 15px 0px;
						cursor: pointer;
						color: rgba( 0, 0, 0, 0.8 );

						&:hover {
							color: rgba( 0, 0, 0, 1.0 );
						}

						&.wrong {
							color: #FF0000;
						}

						&.right {
							color: #00D237;
						}
					}
				}
			}

			.info {
				display: none;
				width: 250px;
				margin-left: @width - 300px;
				margin-top: 100px;
				position: absolute;

				.title {
					font-family: ProximaNova-Regular;
					font-size: 20px;
					margin-bottom: 30px;
				}

				.text {
					font-family: ProximaNova-Regular;
					font-size: 12px;
					line-height: 14px;
				}
			}

			.next {
				display: none;
				width: 160px;
				margin-left: @width - 300px;
				margin-top: 400px;
				position: absolute;
				font-family: ProximaNovaT-Thin;
				font-size: 20px;
				line-height: 60px;
				color: @blue;
				border: @blue 1px solid;
				.radius(5px);
				text-align: center;
				cursor: pointer;
				background-color: #ffffff;
				text-transform: uppercase;

				&:hover {
					color: #FF0000;
					border-color: #FF0000;
				}
			}

			.photo {
				display: none;
				position: absolute;
				z-index: 12;
				width: 30%;
				height: 100%;
				left: 0%;
				top: 0%;
				background-size: cover;
				background-position: center center;
			}
		}

		&.finish {
			.container {
				background-size: cover;
				background-position: center center;
				background-image: url( ../images/zahod.jpg );
			}

			.result {
				width:600px;
				margin: 0 auto;
				margin-top: 100px;
				.radius(5px);

				.title {
					height: 150px;
					padding-top: 100px;
					background-color: rgba( 255, 255, 255, 0.8 );
					font-family: ProximaNova-Regular;
					font-size: 24px;
					line-height: 26px;
					text-align: center;

					.blue-text {
						color: @blue;
					}
				}

				.buttons {
					padding: 0px 75px;
					width: 450px;
					height: 80px;
					background-color: rgba( 250, 249, 120, 0.8 );
				
					.item {
						display: inline-block;
						width: 145px;
						height: 30px;
						cursor: pointer;
						margin-top: 30px;
						
						&.vk {
							background-image: url( ../images/vk.png );
							
							&:hover {
								background-image: url( ../images/vk_hover.png );
							}
						}
						
						&.tw {
							background-image: url( ../images/twitter.png );
							
							&:hover {
								background-image: url( ../images/twitter_hover.png );
							}
						}
						
						&.fb {
							background-image: url( ../images/fb.png );
							
							&:hover {
								background-image: url( ../images/fb_hover.png );
							}
						}
					}
				}
			}
		}
	}
}