/* 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 ) {
	-webkit-transition: all @duration ease;
	-moz-transition: all @duration ease;
	-o-transition: all @duration ease;
	transition: all @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;
}

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

#page {
	.start {
		padding: 60px 0px;
		position: relative;
		width: 625px;
		height: 534px;
		.box-sizing;
		margin: 0 auto;
		background-image: url(../images/intro.png);
		
		.title {
			font-family: ProximaNova-Extrabld;
			font-size: 38px;
			line-height: 40px;
			text-align: center;
			width: 400px;
			margin: 0 auto;
			margin-bottom: 50px;
		}
		
		.lead {
			font-family: PTSerif-Regular;
			font-size: 20px;
			line-height: 24px;
			width: 400px;
			margin: 0 auto;
			margin-bottom: 50px;
		}
		
		.description {
			font-family: ProximaNova-Regular;
			font-size: 14px;
			line-height: 17px;
			width: 400px;
			margin: 0 auto;
		}
		
		.authors {
			position: absolute;
			top: 232px;
			left: 50%;
			margin-left: -480px;
			font-family: ProximaNova-Regular;
			font-size: 14px;
		}
	}
	
	.action {
		background-color: @yellow;
		padding: 30px 0px;
		overflow: hidden;
		width: 100%;
		
		.container {
			width: @width;
			margin: 0 auto;
			
			.section {
				margin-top: 50px;
			
				.section-title {
					font-family: ProximaNova-Regular;
					font-size: 42px;
					margin-bottom: 30px;
					position: relative;
					
					&:before {
						content: '';
						position: absolute;
						height: 4px;
						width: 1000px;
						left: -1000px;
						margin-left: -30px;
						top: 50%;
						margin-top: -2px;
						background-color: #000000;
					}
				}
				
				.books {
					.book {
						width: @bookWidth;
						padding: 15px;
						border: transparent 5px solid;
						float: left;
						cursor: pointer;
						position: relative;
					
						.book-image {
							width: @bookWidth;
							height: @bookWidth;
							background-size: cover;
							margin-bottom: 15px;
						}
						
						.book-title {
							font-family: ProximaNova-Regular;
							font-size: 16px;
							line-height: 19px;
							margin-bottom: 15px;
							height: 45px;
						}
						
						.book-rating {
							margin-bottom: 15px;
							border-top: #000000 4px solid;
							height: 0px;
							padding-bottom: 0px;
							overflow: hidden;
							.transition;
							position: relative;
							z-index: 2;
						
							.book-rating-bar {
								position: absolute;
								width: 4px;
								height: 100%;
								top: 0px;
								left: 50%;
								margin-left: -2px;
								z-index: 3;
								background-color: #000000;
							}
							
							.book-rating-bob {
								font-family: ProximaNova-Regular;
								font-size: 16px;
								position: absolute;
								z-index: 4;
								.radius;
								width: 40px;
								height: 40px;
								line-height: 40px;
								left: 50%;
								margin-left: -20px;
								top: 100%;
								margin-top: -40px;
								background-color: #000000;
								color: #ffffff;
								text-align: center;
							}
						}
						
						.book-description {
							font-family: PTSans-Caption, Helvetica, Arial;
							font-size: 11px;
							line-height: 14px;
							height: 225px;
							.transition;
							overflow: hidden;
							
							a {
								color: #000000;
							}
							
							&.hidden {
								height: 0px;
							}
						}
						
						&:hover {
							border-color: #000000;
							
							&:after {
								content: '';
								width: 16px;
								height: 49px;
								position: absolute;
								background-image: url(../images/arrow.png);
								top: 100%;
								margin-top: -25px;
								left: 50%;
								margin-left: -8px;
							}
						}
						
						&.voted {
							cursor: default;
						
							&:hover {
								border-color: transparent;
								
								&:after {
									display: none;
								}
							}
						}
					}
				}
			}
		}
	}

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

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

	.most-read {
		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 {
		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;
					}
				}
			}
		}
	}
}