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

body, html {
	padding:  0px;
	margin:  0px;
	width: 100%;
	height:  100%;
}

@containerWidth: 1200px;
@containerHeight: 500px;
@footerHeight: 100px;

.page {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	min-width: @containerWidth;
	min-height: @containerHeight + @footerHeight;
	-webkit-font-smoothing: antialiased;

	.first {
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: absolute;
		z-index: 100;
		
		.content {
			width: 100%;
			height: 100%;
			overflow: hidden;
			position: relative;
			background-color: #e55729;
			min-height: @containerHeight;
		
			.container {
				width: @containerWidth;
				height: @containerHeight;
				position: absolute;
				top: 50%;
				left: 50%;
				margin-left: -@containerWidth * 0.5;
				margin-top: -(@containerHeight + @footerHeight) * 0.5;
				
				.inner {
					width: 100%;
					height: 100%;
					position: relative;
					
					.social-share {
						position: absolute;
						top:  250px;
						left: 0px;
						
						&.pie {
							display: block;
						}
					}
				}
			}
			
			.footer {
				width: 100%;
				position: absolute;
				height: @footerHeight;
				top: 100%;
				margin-top: -@footerHeight;
				background-color: #14d3ff;
				text-align: center;
				
				.button {
					margin: 0 auto;
					background-image: url( ../images/start.png );
					opacity: 0.8;
					cursor: pointer;
					width: 173px;
					height: 87px;
					margin-top: 5px;
					
					&:hover {
						opacity: 1;
					}
				}
			}
		}
	}
	
	.action {
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: absolute;
		z-index: 20;
		
		.item {
			width: 100%;
			height: 100%;
			overflow: hidden;
			position: absolute;
		
			.content {
				width: 100%;
				height: 100%;
				overflow: hidden;
				position: relative;
				background-color: #e55729;
				min-height: @containerHeight;
			
				.container {
					width: @containerWidth;
					height: @containerHeight;
					position: absolute;
					top: 50%;
					left: 50%;
					margin-left: -@containerWidth * 0.5;
					margin-top: -(@containerHeight + @footerHeight) * 0.5;
					
					.inner {
						width: 100%;
						height: 100%;
						position: relative;
						
						.counter {
							position: absolute;
							width: 100px;
							height: 40px;
							line-height: 40px;
							font-size: 40px;
							top: 50%;
							margin-top: -20px;
							left: 0%;
							margin-left: 0px;
							font-family: Gothic725BlkBT;
						}
						
						.case {
							position: absolute;
							width: 427px;
							height: 373px;
							top: 50%;
							left: 50%;
							margin-top: -185px;
							margin-left: -313px;
							overflow: hidden;
							
							.under {
								position: absolute;
								width: 100%;
								height: 100%;
								background-image: url( ../images/back.png );
								z-index: 1;
							}
							
							.over {
								position: absolute;
								width: 100%;
								height: 100%;
								background-image: url( ../images/top.png );
								z-index: 4;
							}
							
							.face {
								position: absolute;
								width: 367px;
								height: 367px;
								z-index: 2;
								margin-left: 100%;
								margin-top: 4px;
							}
							
							.name {
								position: absolute;
								width: 367px;
								height: 367px;
								z-index: 3;
								margin-left: 56px;
								margin-top: 4px;
							}
						}
						
						.answerso {
							position: absolute;
							width: 400px;
							height: 240px;
							top: 50%;
							left: 100%;
							margin-top: -120px;
							margin-left: -400px;
						
							.answero {
								font-family: Gothic725BlkBT;
								font-size: 30px;
								line-height: 80px;
								cursor: pointer;
								opacity: 0.8;
								text-align: center;
								position: relative;
								
								&:hover:not(.disabled) {
									opacity: 1;
								}
								
								&.wrong {
									&:after {
										content: '';
										position: absolute;
										width: 100%;
										height: 4px;
										background-color: #000000;
										top: 38px;
										left: 0px;
									}
								}
								
								&.right {
									
								}
								
								&.disabled {
									cursor: default;
								}
								
								&.choosen {
									color: #ffffff;
								}
							}
						}
					}
				}
				
				.footer {
					width: 100%;
					position: absolute;
					height: @footerHeight;
					top: 100%;
					margin-top: -@footerHeight;
					background-color: #14d3ff;
					text-align: center;
					
					.button {
						margin: 0 auto;
						background-image: url( ../images/nextQuestion.png );
						opacity: 0.8;
						cursor: pointer;
						width: 394px;
						height: 78px;
						margin-top: 13px;
						
						&.disabled {
							opacity: 0.5;
							cursor: default;
						}
						
						&:hover:not(.disabled) {
							opacity: 1;
						}
					}
				}
			}
		}
	}
	
	.result {
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: absolute;
		z-index: 10;
		
		.content {
			width: 100%;
			height: 100%;
			overflow: hidden;
			position: relative;
			background-color: #000dff;
			min-height: @containerHeight + @footerHeight;
		
			.container {
				width: @containerWidth;
				height: @containerHeight + @footerHeight;
				position: absolute;
				top: 50%;
				left: 50%;
				margin-left: -@containerWidth * 0.5;
				margin-top: -(@containerHeight + @footerHeight) * 0.5;
				
				.inner {
					width: 100%;
					height: 100%;
					position: relative;
				}
			}
		}
	} 
}

/*************************************************/

@lightblue: #ECF0F1;
@blue: #2fdbfc;
@red: #fb74ab;
@white: #FFFFFF;

@octava: Gothic725BlkBT;
@futura: Gothic725BlkBT;

@font-size-huge: 60px;
@font-size-big: 40px;
@font-size-medium: 22px;
@font-size-normal: 16px;
@font-size-small: 14px;

@transition: 0.5s;
@animation: 2.0s;

.round {
	-webkit-border-radius: 1000px; 
	-moz-border-radius: 1000px; 
	border-radius: 1000px;
}

.transition {
	-webkit-transition: all @transition ease;
	-moz-transition: all @transition ease;
	-ms-transition: all @transition ease;
	-o-transition: all @transition ease;
	transition: all @transition ease;
}

.animation {
	-webkit-transition: all @animation ease;
	-moz-transition: all @animation ease;
	-ms-transition: all @animation ease;
	-o-transition: all @animation ease;
	transition: all @animation ease;
}

.transition(@transition: all 0.5s ease) {
	-webkit-transition: @transition;
	-moz-transition: @transition;
	-ms-transition: @transition;
	-o-transition: @transition;
	transition: @transition;
}

#result {
	background-color: transparent;
	width: 1000px;
	min-height: 600px;
	margin: 0 auto;
	color: #ffffff;
	
	.left {
		float: left;
	}
	
	.right {
		float: right;
	}
	
	.spacer {
		clear: both;
	}

	.hor {
		height: 2px;
	}

	.ver {
		width: 2px;
	}
	
	#youyouyou {
		font-family: @octava;
		font-size: @font-size-normal;
		position: absolute;
		width: 400px;
		text-align: center;
		top: 60px;
		 a {
		 	color: #ffffff;
		 }
	}

	#results {
		position: relative;
		width: 1000px;
		margin: 0 auto;
		/*-moz-box-shadow: 0px 0px 3px 1px @blue;
		-webkit-box-shadow: 0px 0px 3px 1px @blue;
		box-shadow: 0px 0px 3px 1px @blue;*/

		.firstCol {
			width: 400px;
		}

		.secondCol {
			width: 600px;
		}

		#again {
			cursor: pointer;
			text-align: center;
			font-size: @font-size-normal;
			font-style: oblique;
			color: @blue;
			
			span {
				border-bottom: @blue 1px dashed;
			}
		}

		.firstRow {
			line-height: 90px;
			margin-bottom: 60px;
			font-family: @octava;

			#answerQuantity {
				font-size: @font-size-medium;
				text-align: center;

				span {
					color: @blue;
				}
			}

			#answerPercentageRunner {
				font-size: @font-size-small;

				padding-top: 44px;

				.hor {
					width: 500px;
					margin-left: 50px;
					background: @blue;
					z-index: 10;
				}

				.round {
					z-index: 30;
					text-align: center;
					width: 40px;
					height: 40px;
					line-height: 40px;
					border: @blue 2px solid;
					margin-top: -22px;
					background: @white;
					color: @blue;
				}

				#startCircle {
					margin-left: 50px;
				}

				#middleCircle {
					margin-left: 279px;
				}

				#endCircle {
					margin-left: 506px;
				}

				.runner {
					z-index: 20;
					width: 70px;
					color: @blue;
					text-align: center;
					margin-left: 45px;
					font-size: @font-size-normal;
					padding-bottom: -30px;

					.ver {
						height: 40px;
						background: @blue;
						margin-left: 26px;
					}

					.label {
						margin-top: -35px;
					}
				}
			}
		}

		.secondRow {
			font-size: @font-size-medium;
			margin-bottom: 30px;
			text-align: center;

			.firstCol {
				font-family: @octava;
			}

			.secondCol {
				font-family: @futura;

				span {
					font-family: @octava;
					font-style: oblique;
					font-size: @font-size-small;

					span:first-child {
						color: @blue;
					}

					span:last-child {
						color: @red;
					}
				}
			}
		}

		.thirdRow {
			font-size: @font-size-normal;

			#peopleQuantity {
				width: 200px;
				color: @blue;
				text-align: center;
				font-family: @octava;

				#peopleQuantityWrapper {
					width: 100px;
					height: 100px;
					margin: 0 auto;
					padding: 20px 0px;

					#peopleQuantityCircle {
						width: 100px;
						height: 100px;
						border: @blue 2px solid;
						-webkit-transform: scale( 0, 0 );
					}

					#peopleQuantityLabel {
						width: 100px;
						line-height: 100px;
						position: absolute;
						margin-top: -100px;
					}
				}
			}

			#peoplePercentageRunner {
				width: 200px;

				.ver {
					height: 240px;
					margin-left: 25px;
					z-index: 15;
				}

				.round {
					z-index: 20;
					border: @red 2px solid;
					width: 30px;
					height: 30px;
					line-height: 30px;
					text-align: center;
					color: @red;
					margin-left: 9px;
					background: @white;
					margin-top: 210px;
					font-family: @octava;
					font-size: @font-size-small;
				}

				#peoplePercentageUp {
					z-index: 15;
					background: @blue;
				}

				#peoplePercentageDown {
					height: 0px;
					margin-top: 240px;
					z-index: 18;
					background: @red;
				}

				.text {
					font-family: @futura;
					width: 100px;
					margin-left: 75px;
					text-align: left;
					font-size: @font-size-normal;
				}

				#upText {
					color: @blue;

				}

				#downText {
					color: @red;
					margin-top: 180px;
				}
			}

			#answerDistribution {
				width: 600px;
				height: 280px;
			}
		}
	}

	#share {
		font-family: @octava;
		color: @white;
		height: 60px;
		background: @blue;

		.left {
			width: 160px;
			text-align: center;
			font-size: @font-size-normal;
			padding: 12px 0px;
		}

		img {
			margin-top: 12px;
			margin-left: 80px;
			cursor: pointer;
		}
	}
}

svg {
	z-index: 50;
	font-family: @octava;
}

.draw {
	position: absolute;
}