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

.transition( @duration:400ms, @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;
}

@yellow: #fdfb45;
@width: 900px;
@bookWidth: 140px;
@red: #fb2219;

#page {
	min-width: 900px;
	width: 100%;
	background-color: rgba(0, 0, 0, 1);

	.start {
		position: relative;
		width: 100%;
		height: 1100px;
		color: #ffffff;
		
		.frame {
			position: absolute;
			z-index: 2;
			width: 100%;
			height: 670px;
			background-image: url(../images/ramka.png);
			left: 0px;
			top: 0px;
			background-size: 100% 100%;
		}
		
		.oscars {
			position: absolute;
			z-index: 1;
			width: 209px;
			height: 600px;
			background-image: url(../images/a1.jpg);
			left: 50%;
			margin-left: -140px;
			background-size: cover;
		}
		
		.title {
			position: absolute;
			z-index: 3;
			font-family: ProximaNova-Extrabld;
			font-size: 30px;
			line-height: 36px;
			left: 50%;
			margin-left: -400px;
			margin-top: 150px;
			width: 160px;
			height: 290px;
			background-image: url(../images/arrow.png);
			background-repeat: no-repeat;
			padding-top: 70px;
			.box-sizing;
		}
		
		.lead {
			position: absolute;
			z-index: 3;
			font-family: ProximaNova-Extrabld;
			font-size: 30px;
			line-height: 36px;
			text-transform: uppercase;
			width: 680px;
			height: 50px;
			left: 50%;
			margin-left: -400px;
			top: 1020px;
		}
		
		.description {
			position: absolute;
			z-index: 3;
			font-family: ProximaNova-Extrabld;
			font-size: 18px;
			line-height: 28px;
			width: 680px;
			height: 300px;
			text-transform: uppercase;
			top: 700px;
			left: 50%;
			margin-left: -400px;
			
			span {
				color: @red;
			}
		}
		
		.authors {
			position: absolute;
			z-index: 3;
		}
	}
	
	.action {
		background-color: #000000;
		padding: 30px 0px;
		overflow: hidden;
		width: 100%;
		
		.container {
			.section {
				width: 100%;
				margin-bottom: 50px;
			
				.section-title {
					font-family: ProximaNova-Extrabld;
					font-size: 30px;
					line-height: 36px;
					color: @yellow;
					width: 800px;
					margin: 0 auto;
					margin-bottom: 50px;
				}
				
				.section-items {
					width: 800px;
					margin: 0 auto;
				
					.item {
						float: left;
						width: 150px;
						height: 250px;
						margin-right: 10px;
						cursor: pointer;
						position: relative;
					
						.item-image {
							width: 150px;
							height: 150px;
							background-size: cover;
							margin-bottom: 20px;
						
							&.grey {
								filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
							    filter: gray;
							    -webkit-filter: grayscale(100%);
							}
						}
						
						.item-title {
							font-family: ProximaNova-Extrabld;
							font-size: 14px;
							line-height: 17px;
							color: #ffffff;
							text-align: center;
						}
						
						.item-rating {
							position: absolute;
							.box-scale(0);
							left: 75px;
							top: 75px;
							text-align: center;
							font-family: ProximaNova-Extrabld;
							font-size: 14px;
							line-height: 17px;
							background-color: @yellow;
							.radius;
							.transform-origin( 50%, 50% );
							
							&.shown {
								.transition;
								.box-scale(1);
							}
						}
						
						&.voted {
							cursor: default;
							
							.grey {
								opacity: 0.8;
							}
						}
					}
				}
				
				.section-share {
					padding: 0px 0px;
					background-color: @yellow;
					height: 0px;
					.box-sizing;
					.transition;
					overflow: hidden;
					
					.section-share-title {
						width: 800px;
						margin: 0 auto;
						font-family: ProximaNova-Extrabld;
						font-size: 30px;
						line-height: 36px;
						text-transform: uppercase;
						margin-bottom: 30px;
					}
					
					.section-share-buttons {
						width: 800px;
						margin: 0 auto;
						
						.button {
							display: inline-block;
							cursor: pointer;
							width: 145px;
							height: 35px;
							
							&.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);
								}
							}
						}
					}
					
					&.shown {
						padding: 30px 0px;
						height: auto;
					}
				}
			}
		}
	}

	.footer {
		padding-top: 0px;
		padding-bottom: 100px;
	}
}

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

	.most-read {
		color: #ffffff!important;
	
		a {
			color: #ffffff!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: #ffffff!important;
	
		a {
			color: #ffffff!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;
					}
				}
			}
		}
	}
}