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

.clear {
	clear: both;
}

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

@font-face {
    font-family: 'w4';
    src: url('waldemar_4f-black_italic-webfont.eot');
    src: url('waldemar_4f-black_italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('waldemar_4f-black_italic-webfont.woff') format('woff'),
         url('waldemar_4f-black_italic-webfont.ttf') format('truetype'),
         url('waldemar_4f-black_italic-webfont.svg#waldemar_4fblack_italic') format('svg');
    font-weight: normal;
    font-style: normal;

}




@font-face {
    font-family: 'w4i';
    src: url('waldemar_4f-black-webfont.eot');
    src: url('waldemar_4f-black-webfont.eot?#iefix') format('embedded-opentype'),
         url('waldemar_4f-black-webfont.woff') format('woff'),
         url('waldemar_4f-black-webfont.ttf') format('truetype'),
         url('waldemar_4f-black-webfont.svg#waldemar_4fblack') format('svg');
    font-weight: normal;
    font-style: normal;

}

.cover {
	background-size: cover;
	background-position: center center;
}

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

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

.box-scale(@value) {
  -webkit-transform: scale(@value);
     -moz-transform: scale(@value);
      -ms-transform: scale(@value); 
       -o-transform: scale(@value);
          transform: scale(@value);
}

.transform-origin( @x, @y ) {
	transform-origin: @x @y;
	-ms-transform-origin: @x @y;
	-webkit-transform-origin: @x @y;
}

html, body {
	width: 100%;
	height: 100%;
}

@red: #c1000f;
@green: #00b739;
@blue: #0620f4;

#page {
	width: 100%;
	height: 100%;
	min-width: 1200px;
	background-color: #f2f1f1;
	
	.start {
		position: relative;
		width: 100%;
		margin: 0 auto;
		padding-bottom: 50px;
		background-color: #ffffff;
		
		.title {
			width: 630px;
			height: 390px;
			margin: 0 auto;
			background-image: url(../images/1.jpg);
		}
		
		.description {
			font-family: ProximaNova-Regular;
			font-size: 14px;
			line-height: 20px;
			position: absolute;
			width: 350px;
			top: 230px;
			left: 50%;
			margin-left: -115px;
		}
	}
	
	.action {
		background-color: #f2f1f1;
		padding: 50px 0px;
		position: relative;
		.transition;
		
		.container {
			@height: 400px;
			@ml: 120px;
			.transition;
		
			width: 900px;
			height: @height;
			overflow: hidden;
			margin: 0 auto;
			
			.question {
				height: @height;
				overflow: hidden;
				opacity: 0;
				position: relative;
				.transition;
				
				.counter {
					font-family: 'w4';
					font-size: 34px;
					height: 50px;
					line-height: 50px;
					text-align: center;
					width: 120px;
					border: 5px solid #000000;
					margin-left: @ml;
					margin-bottom: 10px;
				}
				
				.proverb {
					margin-left: @ml;
					height: 100px;
					line-height: 100px;
					padding-left: 15px;
					font-family: 'w4i';
					font-size: 44px;
				}
				
				.answers {
					margin-left: @ml + 15px;
					margin-top: 0px;
				
					.answer {
						cursor: pointer;
						font-family: 'w4';
						font-size: 28px;
						line-height: 50px;
						opacity: 0.8;
					
						&.answered {
							cursor: default;
							opacity: 1!important;
						}
					
						&.wrong {
							color: @red;
						}
						
						&.right {
							color: @green;
						}
						
						&:hover {
							opacity: 1;
						}
					}
				}
				
				.icon {
					width: 100px;
					height: 100px;
					position: absolute;
					left: 0px;
					top: 70px;
				}
				
				&.hidden {
					height: 0px;
				}
				
				&.shown {
					opacity: 1;
				}
			}
		}
		
		&.hidden {
			height: 0px;
			padding: 0px;
			
			.container {
				height: 0px;
			}
		}
	}
	
	.finish {
		overflow: hidden;
		height: 0;
		padding: 0px 0px;
		text-align: center;
		background-color: #f2f1f1;
		
		.result {
			padding: 50px 0px 70px 0px;
			width: 800px;
			margin: 0 auto;
			text-align: left;
			
			.text {
				font-family: 'w4';
				font-size: 42px;
				line-height: 50px;
				margin-bottom: 30px;
			
				span {
					color: @blue;
				}
			}
		}
		
		.buttons {
			height: 35px;
			text-align: left;
			
			.button {
				width: 145px;
				height: 35px;
				display: inline-block;
				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);
					}
				}
			}
		}
		
		&.shown {
			height: auto;
			padding: 30px 0px 0px 0px;
		}
	}
	
	.footer {
		padding-top: 30px;
		padding-bottom: 100px;
	}
}

.visual-data {
	width: 800px;
	margin: 0 auto;

	.place-container {
		
		.place {
			position: relative;
			height: 150px;
		
			.bar {
				@height: 50px;
			
				position: relative;
				height: @height;
				background-color: @blue;
			
				.runner {
					width: 0px;
					height: 100%;
					position: relative;
					background-color: #000000;
					.transition;
				
					.you {
						position: absolute;
						height: @height;
						top: -@height;
						line-height: @height;
						left: 100%;
						width: 100px;
						margin-left: -50px;
						color: @blue;
						font-family: 'w4';
						font-size: 24px;
					}
				}
				
				.worse-percent {
					position: absolute;
					line-height: @height;
					height: @height;
					width: 100px;
					top: 0px;
					left: 0px;
					color: #ffffff;
					font-family: 'w4i';
					font-size: 34px;
				}
				
				.better-percent {
					position: absolute;
					line-height: @height;
					height: @height;
					width: 100px;
					top: 0px;
					left: 100%;
					margin-left: -100px;
					color: #ffffff;
					font-family: 'w4i';
					font-size: 34px;
				}
			}
			
			.worse-count {
				position: absolute;
				width: 200px;
				top: 70px;
				left: 0px;
				text-align: left;
				font-family: ProximaNova-Extrabld;
				font-size: 16px;
				line-height: 20px;
			}
			
			.better-count {
				position: absolute;
				width: 200px;
				top: 70px;
				left: 100%;
				margin-left: -200px;
				text-align: right;
				font-family: ProximaNova-Extrabld;
				font-size: 16px;
				line-height: 20px;
			}
		}
	}
	
	.distribution-container {
		position: relative;
		
		.text-two {
			font-family: 'w4';
			font-size: 42px;
			line-height: 50px;
			margin-bottom: 15px;
			text-align: left;
		}
	
		.distribution {
			@height: 250px;
		
			width: 100%;
			padding-bottom: 30px;
			position: relative;
			height: @height + 50px;
			
			.field {
				height: @height;
				position: relative;
				background-color: #ffffff;
			}
			
			.bars {
				position: relative;
				text-align: center;
				height: @height;
				top: -@height;
				cursor: pointer;
			
				.bar {
					position: relative;
					background-color: #000000;
					display: inline-block;
					margin-right: 15px;
					opacity: 0.8;
					
					&:last-of-type {
						margin-right: 0px;
					}
					
					.value {
						width: 100%;
						position: absolute;
						height: 22px;
						top: -22px;
						font-family: 'w4i';
						font-size: 18px;
						text-align: center;
					}
					
					.number {
						font-family: 'w4i';
						font-size: 18px;
						position: absolute;
						width: 100%;
						height: 22px;
						top: 100%;
						text-align: center;
					}
					
					.hint {
						overflow: hidden;
						padding: 0px;
						background-color: fadeout(@green, 0.6);
						color: #ffffff;
						font-family: ProximaNova-Extrabld;
						font-size: 14px;
						line-height: 20px;
						width: 130px;
						position: absolute;
						top: 0px;
						left: 0px;
						padding: 10px;
						display: none;
						z-index: 100;
					}
					
					&:hover {
						opacity: 1;
					
						.hint {
							display: block;
						}
					}
				}
			}
		}
	}
}

.comm {
	width: 920px;
	margin: 0 auto;
	
	@active_color: #ffca24;

	.most-read {
		color: #000000!important;
	
		a {
			color: #000000!important;
		}
		margin-bottom: 30px;
	
		.container {
			width: 920px;
			margin: 0 auto;
		
			.label {
				padding: 30px 0px;
				font-family: PTSansPro-Caption;
				font-size: 19px;
			}
		
			.item {
				width: 200px;
				float: left;
				margin-left: 40px;
			
				.image {
					display: block;
					width: 200px;
					height: 200px;
					background-size: cover;
					background-position: 50% 50%;
				}
				
				.title {
					display: block;
					padding: 10px 0px;
					font-family: PTSerif-Regular;
					font-size: 18px;
					line-height: 20px;
					color: #000000;
					text-decoration: none;
				}
				
				.lead {
					font-family: PTSansPro-Caption;
					font-size: 12px;
					line-height: 13px;
				}
				
				&:nth-child(2) {
					margin: 0px;
				}
				
				&:hover {
					.title {
						color: @active_color;
					}
				}
			}
		}
	}
	
	.same-read {
		color: #000000!important;
	
		a {
			color: #000000!important;
		}
		margin-bottom: 30px;
		
		.container {
			width: 920px;
			margin: 0 auto;
			
			.label {
				padding: 30px 0px;
				font-family: PTSansPro-Caption;
				font-size: 19px;
			}
			
			.item {
				width: 300px;
				height: 100px;
				margin-bottom: 30px;
				float: left;
				
				.image {
					display: block;
					width: 100px;
					height: 100px;
					float: left;
					background-size: cover;
					background-position: 50% 50%;
					.transition;
				}
				
				.info {
					float: left;
					width: 170px;
					padding: 0px 15px;
					
					.rubrics {
						margin-bottom: 15px;
						
						 a {
						 	color: #000000;
						 	text-decoration: none;
						 	font-family: MonoCondensed-Bold;
							font-size: 11px;
							line-height: 13px;
						 	
						 	&:hover {
						 		color: @active_color;
						 	}
						 }
					}
					
					.title {
						margin-bottom: 20px;
						display: block;
						font-family: PTSerif-Regular;
						font-size: 20px;
						line-height: 21px;
						color: #000000;
						text-decoration: none;
						
						&:hover {
							color: @active_color;
						}
					}
				}
				
				&:hover {
					.title {
						color: @active_color;
					}
				}
			}
		}
	}
}