/* 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%;
}

.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;
}

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

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

#page {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	
	.social-share {
		z-index: 1000;
		position: fixed;
		margin-top: 230px;
		margin-left: 30px;
		
		&.pie {
			display: block!important;
		}
	}
	
	#logo {
		display: block;
		z-index: 1000;
		position: fixed;
		width: 110px;
		height: 80px;
		margin-top: 100px;
		margin-left: 30px;
		background-size: cover;
		background-position: center center;
		background-image: url( ../images/logo.png );
	}
	
	.background {
		z-index: 5;
		position: fixed;
		top: 0%;
		left: 0%;
		width: 100%;
		height: 100%;
		
		.item {
			background-size: cover;
			background-position: center center;
			width: 100%;
			height: 100%;
			display: none;
			
			&.active {
				display: block;
			}
		}
	}
	
	.layer {
		z-index: 10;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 100%;
		.transition;
		
		&.active {
			top: 0%;
		}
		
		&.hidden {
			top: -100%;
		}
	
		.wrapper {
			width: 100%;
			height: 100%;
			position: relative;
		
			.container {
				width: 700px;
				height: 440px;
				position: absolute;
				left: 50%;
				top: 50%;
				margin-top: -220px;
				margin-left: -350px;
				.radius(20px);
				overflow: hidden;
				background-color: rgba( 255, 255, 255, 0.7 );
			}
		}
		
		&.start {
			.container {
				.ico {
					position: absolute;
					width: 110px;
					height: 110px;
					background-size: cover;
					background-position: center center;
					background-image: url( ../images/i/16.png );
					margin-top: 30px;
					margin-left: 90px;
				}
				
				.title {
					position: absolute;
					font-family: ProximaNova-Extrabld;
					font-size: 57px;
					line-height: 53px;
					color: #000000;
					width: 370px;
					margin-top: 30px;
					margin-left: 220px;
				}
				
				.lead {
					position: absolute;
					font-family: ProximaNova-Regular;
					font-size: 16px;
					line-height: 23px;
					color: #000000;
					width: 560px;
					margin-top: 170px;
					margin-left: 70px;
				}
				
				.go {
					position: absolute;
					background-color: rgba( 253, 251, 69, 0.8 );
					width: 100%;
					height: 80px;
					margin-top: 360px;
					text-align: center;
					font-family: ProximaNova-Regular;
					font-size: 30px;
					line-height: 80px;
					cursor: pointer;
					
					&:hover {
						background-color: rgba( 253, 251, 69, 1.0 );
					}
				}
			}
		}
		
		&.action {
			.counter {
				position: absolute;
				font-family: ProximaNova-Regular;
				font-size: 15px;
				color: #000000;
				margin-top: 20px;
				margin-left: 20px;
			}
			
			.image {
				position: absolute;
				width: 110px;
				height: 110px;
				background-size: cover;
				background-position: center center;
				background-image: url( ../images/i/1.png );
				margin-top: 60px;
				margin-left: 295px;
			}
			
			.question {
				position: absolute;
				width: 100%;
				padding: 0px 30px;
				.box-sizing;
				text-align: center;
				margin-top: 220px;
				font-family: ProximaNova-Regular;
				font-size: 30px;
				line-height: 36px;
			}
			
			.answers {
				position: absolute;
				width: 100%;
				height: 80px;
				margin-top: 360px;
				border-top: 1px solid #b1b1b3;
				
				.item {
					float: left;
					width: 50%;
					text-align: center;
					font-family: ProximaNova-Regular;
					font-size: 30px;
					line-height: 80px;
					cursor: pointer;
					.box-sizing;
					border-top: 1px solid #ffffff;
					
					&.yes {
						border-right: 1px solid #b1b1b3;
					
						&:hover {
							color: rgba(34, 181, 43, 10.0 );
						}
					}
					
					&.no {
						border-left: 1px solid #ffffff;
					
						&:hover {
							color: rgba(237, 32, 23, 10.0 );
						}
					}
				}
			}
		}
		
		&.finish {
			.result {
				position: absolute;
				font-family: ProximaNova-Regular;
				font-size: 30px;
				color: #000000;
				width: 100%;
				text-align: center;
				margin-top: 80px;
			}
			
			.description {
				position: absolute;
				font-family: ProximaNova-Regular;
				font-size: 30px;
				line-height: 36px;
				color: #000000;
				width: 100%;
				padding: 0px 50px;
				.box-sizing;
				text-align: center;
				margin-top: 160px;
			}
			
			.again {
				position: absolute;
				font-family: ProximaNova-Regular;
				font-size: 30px;
				color: #1f34f8;
				width: 250px;
				margin-left: 250px;
				margin-top: 300px;
				cursor: pointer;
				
				&:hover {
					text-decoration: underline;
				}
			}
			
			.socials {
				position: absolute;
				background-color: rgba( 253, 251, 69, 0.8 );
				width: 100%;
				height: 80px;
				margin-top: 360px;
				text-align: center;
				line-height: 80px;
				
				.item {
					display: inline-block;
					width: 145px;
					height: 35px;
					margin-top: 25px;
					cursor: pointer;
					
					&.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 );
						}
					}
				}
			}
		}
	}
}