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

html, body {
}

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

.page {
	@red: #D21300;
	
	.start, .action {
		&.shown {
			display: block;
		}
	}

	.start {
		color: @red;
		display: none;
		
		a {
			text-decoration: underline;
			
			&:hover {
				color: #000000;
			}
		}
	
		.container {
			width: 600px;
			margin: 0 auto;
			padding: 50px 0;
		}
		
		.title {
			margin: 0 auto;
			text-align: center;
			width: 400px;
			font-family: 'oukwat-regular';
			font-size: 32px;
			line-height: 1.1;
			margin-bottom: 40px;
		}
		
		.image {
			margin: 0 auto;
			width: 506px;
			height: 600px;
			background-image: url(../images/start.png);
			.contain;
			margin-bottom: 40px;
		}
		
		.subtitle {
			margin: 0 auto;
			text-align: center;
			font-family: 'oukwat-regular';
			font-size: 22px;
			line-height: 1.3;
			margin-bottom: 40px;
		}
		
		.text {
			margin: 0 auto;
			text-align: center;
			font-family: 'trivia-grotesk';
			font-size: 14px;
			line-height: 1.3;
			margin-bottom: 40px;
		}
		
		.button {
			margin: 0 auto;
			text-align: center;
			font-family: 'oukwat-regular';
			background-color: @red;
			color: #ffffff;
			width: 360px;
			padding: 20px;
			font-size: 32px;
			line-height: 1.1;
			cursor: pointer;
			
			&:hover {
				background-color: #000000;
			}
		}
	}
	
	.action {
		@h: 600px;
		
		@ww: 500px;
		@hh: 200px;
	
		position: relative;
		display: none;
		height: @h;
		.cover;
		
		.dark {
			background-color: rgba(0, 0, 0, 0.3);
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			z-index: 1;
		}
		
		.result {
			position: absolute;
			background-color: #fff;
			z-index: 2;
			width: @ww;
			height: @hh;
			left: 50%;
			margin-left: -@ww / 2;
			top: 100% * 0.35;
			margin-top: -(@hh + 15px * 2) * 0.35;
			color: @red;
			padding: 15px 0;
			
			.text {
				padding: 15px 30px;
				text-align: center;
				font-family: 'trivia-grotesk';
				font-size: 20px;
				line-height: 1.3;
				color: @red;
			}
			
			.shares {
				position: absolute;
				left: 50%;
				margin-left: -100px;
				bottom: 20px;
				height: 44px;
				width: 200px;
				text-align: center;
				
				.label {
					position: absolute;
					line-height: 44px;
					height: 44px;
					color: @red;
					font-family: 'trivia-grotesk';
					font-size: 14px;
					left: -100px;
					top: 0;
				}
			
				.share {
					cursor: pointer;
					width: 44px;
					height: 44px;
					background-image: url(../images/share.png);
					display: inline-block;
					margin-left: 10px;
				}
				
				.vk {
					background-position: 0px 0px;
					margin-left: 0;
					
					&:hover {
						background-position: 0px 44px;
					}
				}
				
				.tw {
					background-position: 44px 0px;
					
					&:hover {
						background-position: 44px 44px;
					}
				}
				
				.fb {
					background-position: 88px 0px;
					
					&:hover {
						background-position: 88px 44px;
					}
				}
			}
		}
		
		.more {
			@s: 110px;
			
			position: absolute;
			z-index: 2;
			bottom: 50px;
			left: 50%;
			margin-left: -@s / 2;
			width: @s;
			height: @s;
			text-align: center;
			line-height: @s;
			color: #fff;
			background-color: @red;
			cursor: pointer;
			.border-radius;
			font-family: 'oukwat-regular';
			font-size: 24px;
			
			&:hover {
				background-color: #000;
			}
		}
	}
}