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

@width: 600px;
@height: 500px;
@yellow: #fdfb45;
@grey: #d8d8d8;

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

	.background {
		position: fixed;
		z-index: 10;
		width: 100%;
		height: 100%;
		overflow: hidden;
		
		.default {
			top: 0;
			left: 0;
			position: absolute;
			z-index: 12;
			width: 100%;
			height: 100%;
			opacity: 1;
			.transition;
			background-size: cover;
			background-position: center center;
			background-image: url( ../images/bg.jpg );
			
			&.hidden {
				opacity: 0;
			}
		}
		
		.blured {
			top: 0;
			left: 0;
			position: absolute;
			z-index: 11;
			width: 100%;
			height: 100%;
			background-size: cover;
			background-position: center center;
			background-image: url( ../images/bg_blur.jpg );
		}
	}

	.layer {
		position: absolute;
		z-index: 20;
		width: 100%;
		height: 100%;
		overflow: hidden;
		top: 100%;
		
		&.active {
			top: 0%;
		}
		
		&.hidden {
			top: -100%;
		}
		
		&.animated {
			.transition;
		}
		
		.wrapper {
			width: 100%;
			height: 100%;
			position: relative;
			
			.container {
				width: @width;
				height: @height;
				position: absolute;
				top: 50%;
				left: 50%;
				margin-top: -@height * 0.5;
				margin-left: -@width * 0.5;
				.box-sizing;
			}
		}
		
		&.start {
			.container {
				
				.title {
					width: 400px;
					position: absolute;
					font-family: PTSerif-Regular;
					font-size: 36px;
					line-height: 44px;
					text-align: center;
					color: #ffffff;
					margin-top: 0px;
					margin-left: 100px;
				}
				
				.lead {
					width: 400px;
					position: absolute;
					font-family: PTSansPro-Caption;
					font-size: 14px;
					line-height: 22px;
					text-align: center;
					color: #ffffff;
					margin-top: 130px;
					margin-left: 100px;
				
					a {
						color: @yellow;
					}
				}
				
				.go {
					width: 109px;
					height: 34px;
					position: absolute;
					font-family: PTSansPro-Caption;
					font-size: 14px;
					line-height: 50px;
					text-align: center;
					margin-top: 330px;
					margin-left: 245px;
					cursor: pointer;
					background-image: url( ../images/button1.png );
					
					&:hover {
						background-image: url( ../images/button1_hover.png );
					}
				}
			}
		}
		
		&.action {
			.container {
				overflow: hidden;
			
				background-color: @grey;
				padding: 60px 30px;
				
				.sex {
					margin-bottom: 40px;
				
					.title {
						float: left;
						font-family: ProximaNovaT-Thin;
						font-size: 20px;
						height: 63px;
						line-height: 63px;
					}
					
					.options {
						float: left;
						margin-left: 100px;
						
						.item {
							float: left;
							cursor: pointer;
							width: 63px;
							height: 63px;
							
							&.male {
								background-image: url( ../images/man.png );
								margin-right: 20px;
								
								&.active {
									background-image: url( ../images/man_hover.png );
								}
								
								&:hover {
									background-image: url( ../images/man_hover.png );
								}
							}
							
							&.female {
								background-image: url( ../images/woman.png );
								
								&.active {
									background-image: url( ../images/woman_hover.png );
								}
								
								&:hover {
									background-image: url( ../images/woman_hover.png );
								}
							}
							
							&.active {
								cursor: default;
							}
						}
					}
				}
				
				.namesurname {
					margin-bottom: 70px;
				
					.title {
						font-family: ProximaNovaT-Thin;
						font-size: 20px;
						line-height: 24px;
						margin-bottom: 15px;
					}
					
					input {
						display: block;
						outline: none!important;
						width: 500px;
						height: 63px;
						font-family: ProximaNovaT-Thin;
						font-size: 20px;
						line-height: 63px;
						border: none;
						border-bottom: #000000 2px solid;
						background-color: transparent;
					}
				}
				
				.make {
					margin: 0 auto;
					width: 256px;
					height: 36px;
					background-image: url( ../images/button2.png );
					cursor: pointer;
					
					&:hover {
						background-image: url( ../images/button2_hover.png );
					}
					
					&.disabled {
						opacity: 0.5;
						cursor: default;
						
						&:hover {
							background-image: url( ../images/button2.png );
						}
					}
				}
			}
		}
		
		&.result {
			&.active {
				overflow: visible;
			}
		
			.container {
				height: auto;
				background-color: @grey;
			
				.header {
					height: 250px;
				
					.left {
						float: left;
						width: 220px;
						height: 250px;
						
						.photo {
							width: 220px;
							height: 250px;
						}
					}
					
					.right {
						float: left;
						width: 380px;
						height: 250px;
						.box-sizing;
						padding-top: 30px;
						padding-left: 30px;
						
						.label {
							font-family: ProximaNova-Regular;
							font-size: 14px;
							line-height: 17px;
							margin-bottom: 90px;
						}
						
						.name {
							font-family: PTSerif-Regular;
							font-size: 36px;
							line-height: 43px;
							margin-bottom: 10px;
						}
						
						.about {
							font-family: PTSerif-Italic;
							font-size: 14px;
							line-height: 17px;
						}
					}
				}
				
				.info {
					.box-sizing;
					padding: 30px 60px;
				
					.label {
						font-family: ProximaNova-Regular;
						font-size: 14px;
						line-height: 17px;
						margin-bottom: 30px;
					}
					
					.youth {
						font-family: PTSerif-Regular;
						font-size: 16px;
						line-height: 26px;
						margin-bottom: 30px;
					}
					
					.middle {
						font-family: PTSerif-Regular;
						font-size: 16px;
						line-height: 26px;
						margin-bottom: 30px;
					}
					
					.old {
						font-family: PTSerif-Regular;
						font-size: 16px;
						line-height: 26px;
					}
				}
				
				.footer {
					width: 100%;
					height: 100px;
					background-color: #000000;
				}
				
				.end {
					width: 480px;
					border: #000000 1px solid;
					height: 100px;
					margin: 30px auto 60px auto;
					
					.make {
						width: 342px;
						height: 43px;
						margin:  30px auto;
						background-image: url( ../images/endbutton.png );
						display: none;
						cursor: pointer;
						
						&:hover {
							background-image: url( ../images/end_hover.png );
						}
						
						&.active {
							display: block;
						}
					}
					
					.socials {
						display: none;
					
						&.active {
							display: block;
						}
					
						.title {
							width: 382px;
							height: 29px;
							background-image: url( ../images/share.png );
							margin: 12px auto;
						}
						
						.buttons {
							width: 450px;
							margin: 0 auto;
						
							.item {
								display: inline-block;
								width: 145px;
								height: 35px;
								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 );
									}
								}
							}
						}
					}
				}
			}
		}
	}
}