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

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

.transition( @target: all, @duration: 400ms, @type: ease, @delay: 0s ) {
	-webkit-transition: @target @duration @type @delay;
	-moz-transition: @target @duration @type @delay;
	-ms-transition: @target @duration @type @delay;
	-o-transition: @target @duration @type @delay;
	transition: @target @duration @type @delay;
}

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

.contain {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.rotate( @value: 0deg ) {
	-webkit-transform: rotate( @value );
	-moz-transform: rotate( @value );
	-ms-transform: rotate( @value );
	-o-transform: rotate( @value );
	transform: rotate( @value );
}

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

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

.no-select {
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
}

/*================================*/

@width_1: 230px;
@width_2: 630px;
@width_3: 100px;
@width: @width_1 + @width_2 + @width_3 + 60px;

.comm {
	margin-top: 100px;
}

.page {
	padding: 100px 0;
	background-image: url(../images/bg.png);
	background-repeat: repeat-x;
	background-size: auto 100%;
	
	&.show-intro {
		.center {
			background-image: none !important;
		}
	
		.intro {
			display: block !important;
		}
		
		.film {
			display: none;
		}
		
		.button.next {
			display: none;
		}
	}

	.container {
		width: @width;
		margin: 0 auto;
		
		.left {
			float: left;
			width: @width_1;
		}
		
		.center {
			float: left;
			width: @width_2;
			background-image: url(../images/wait.gif);
			background-repeat: no-repeat;
			background-position: center 100px;
		}
		
		.right {
			float: right;
			width: @width_3;
			margin-left: 50px;
		}
		
		.menu {
			background-color: #FEF9FA;
			font-family: 'trivia-grotesk';
			text-transform: uppercase;
		
			.header {
				padding: 15px 30px;
			
				.title {
					background-image: url(../images/title.png);
					background-repeat: no-repeat;
					background-position: left center;
					padding: 15px 0;
				}
				
				.subtitle {
					padding: 10px 0;
					font-size: 10px;
					letter-spacing: 2px;
					color: #D9D6D7;
				}
			}
			
			.content {
				padding-bottom: 30px;
			
				.items {
					.item {
						color: #8D8B8C;
						font-size: 12px;
						padding: 15px 30px;
						cursor: pointer;
						letter-spacing: 2px;
						
						&.active, &:hover {
							background-color: #DADCDC;
						}
					}
				}
			}
		}
		
		.intro {
			display: none;
			font-family: 'trivia-grotesk';
			color: #ffffff;
			padding-left: 50px;
		
			.title {
				font-size: 44px;
				line-height: 72px;
				margin-bottom: 20px;
			}
			
			.text {
				font-size: 16px;
				line-height: 26px;
				margin-bottom: 40px;
			}
			
			.authors {
				a {
					color: #ffffff;
					text-decoration: underline;
					
					&:hover {
						color: #AD7BE6;
					}
				}
			}
		}
		
		.film {
			background-color: #FFFAFB;
			margin-left: 3px;
			.transition(@duration: 250ms, @target: opacity);
			
			&.hidden {
				opacity: 0;
			}
		
			.header {
				.title {
					padding: 25px 50px;
					background-color: #AD7BE6;
					color: #ffffff;
					font-family: 'trivia-grotesk';
					font-size: 20px;
				}
			}
			
			.content {
				padding: 50px;
				padding-bottom: 25px;
			
				.image {
					display: block;
					width: @width_2 - 100px;
					margin-bottom: 25px;
				}
				
				.text {
					font-family: 'trivia-grotesk';
					font-size: 16px;
					line-height: 1.4;
					color: #333333;
				}
			}
			
			.footer {
				padding: 25px 50px;
				border-top: 2px solid #AD7BE6;
				
				.more, .item {
					font-family: 'trivia-grotesk';
					font-size: 14px;
					color: #AF79E7;
					text-decoration: underline;
					cursor: pointer;
					text-transform: lowercase;
				}
				
				.tags {
					float: left;
				
					.item {
						display: inline;
					}
				}
				
				.more {
					float: right;
				}
			}
		}
		
		.panel {
			.button {
				cursor: pointer;
				width: 101px;
				background-position: 0px 0px;
				background-repeat: no-repeat;
			
				&.next {
					height: 140px;
					background-image: url(../images/nextMovie.png);
					margin-bottom: 50px;
					
					&:hover {
						background-position: 0px -141px;
					}
				}
				
				&.random {
					height: 133px;
					background-image: url(../images/randomMovie.png);
					margin-bottom: 50px;
					
					&:hover {
						background-position: 0px -134px;
					}
				}
			}
		}
	}
}