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

html, body {
}

.page {
	position: relative;
	background-color: #4ba7f0;
	color: #fff;
	font-family: 'trivia-grotesk';
	overflow: hidden;
	
	.container {
		position: absolute;
		width: 100%;
		height: 450px;
		top: 50%;
		margin-top: -450px / 2;
		
		.inner {
			position: relative;
			z-index: 5;
			width: 800px;
			margin: 0 auto;
			height: 100%;
		}
	}
	
	.deco {
		position: absolute;
		z-index: 2;
		top: 50%;
	
		&--1 {
			width: 500px;
			height: 500px;
			background-image: url(../images/1_500.png);
			right: -150px;
			margin-top: -250px;
			.transition(@duration: 300ms, @target: opacity);
		}
		
		&--2 {
			width: 800px;
			height: 800px;
			background-image: url(../images/2_800.png);
			left: -810px;
			margin-top: -400px;
			.transition(@duration: 350ms, @target: left);
		}
	}
	
	.intro {
		position: absolute;
		width: 100%;
		height: 320px;
		left: 0;
		top: 0;
		
		.title {
			position: absolute;
			width: 500px;
			text-align: center;
			font-size: 60px;
			font-weight: 700;
			line-height: 1;
			top: 0;
			left: 150px;
			font-family: 'oukwat-regular';
		}
		
		.subtitle {
			position: absolute;
			width: 500px;
			text-align: center;
			font-size: 24px;
			font-weight: 700;
			line-height: 1;
			top: 70px;
			left: 150px;
			font-family: 'oukwat-regular';
		}
		
		.about {
			position: absolute;
			width: 400px;
			font-size: 14px;
			line-height: 1.3;
			top: 140px;
			left: 0px;
		}
		
		.description {
			position: absolute;
			width: 500px;
			font-size: 14px;
			line-height: 1.3;
			top: 190px;
			left: 0px;
			
			a {
				text-decoration: underline;
			}
		}
		
		.author {
			position: absolute;
			width: 400px;
			font-size: 14px;
			line-height: 1.3;
			top: 140px;
			left: 450px;
			
			a {
				text-decoration: underline;
			}
		}
	}
	
	.answer {
		display: none;
		position: absolute;
		left: 0;
		top: 0;
		padding-top: 50px;
		
		.question {
			font-size: 30px;
			line-height: 1;
			width: 100%;
			height: 30px;
		}
		
		.text {
			font-size: 40px;
			line-height: 1.3;
			left: 0;
			margin-top: 20px;
		}
		
		.shares {
			margin-top: 30px;
		
			&__item {
				float: left;
				width: 150px;
				height: 45px;
				background-image: url(../images/shrs.png);
				margin-right: 20px;
				cursor: pointer;
				
				&--fb {
					background-position: 0px 0px;
					
					&:hover {
						background-position: 0px -46px;
					}
				}
				
				&--tw {
					background-position: -170px 0px;
					
					&:hover {
						background-position: -170px -46px;
					}
				}
				
				&--vk {
					background-position: -330px 0px;
					
					&:hover {
						background-position: -330px -46px;
					}
				}
			}
		}
	}
	
	.ask {
		@h: 75px;
	
		position: absolute;
		width: 100%;
		height: @h;
		left: 0;
		bottom: 0;
		
		.label {
			position: absolute;
			left: 0;
			top: -30px;
			height: 20px;
			line-height: 20px;
			font-size: 14px;
		
			&--1 {
			}
			
			&--2 {
				display: none;
			}
		}
		
		.text {
			float: left;
			width: 800px - 150px;
			height: @h;
			line-height: @h - 2px;
			.box-sizing;
			padding: 0 20px;
			border: 1px solid #fff;
			border-right: none;
			outline: none !important;
			background-color: transparent;
			color: #fff;
			font-size: 30px;
			.transition(@duration: 1000ms, @target: border-color);
			
			&.wrong {
				border-color: #FF0017;
				.transition(@duration: 0ms, @target: border-color);
			}
		}
		
		.button {
			float: left;
			width: 150px;
			height: @h;
			line-height: @h;
			font-size: 18px;
			text-align: center;
			background-color: #fff;
			color: #00338B;
			text-transform: lowercase;
			cursor: pointer;
			
			&:hover {
				background-color: #B2CBF5;
				color: #3565A8;
			}
		}
	}
	
	&.actioned {
		.intro {
			display: none;
		}
		
		.answer {
			display: block;
		}
		
		.ask {
			.label {
				&--1 {
					display: none;
				}
				
				&--2 {
					display: block;
				}
			}
		}
	
		.deco {
			&--1 {
				opacity: 0;
			}
			
			&--2 {
				left: -450px;
			}
		}
	}
}