@import "library.less";

body, html {
	height: 100%;
}

body {
	min-width: 1200px;
}

.page {
	
}

.routes {
	position: relative;
	background-color: #000000;
	height: 100%;
	font-family: flounder, Arial;
	
	.header {
		position: absolute;
		z-index: 2;
		left: 0;
		top: 0;
		width: 100%;
		height: 60px;
		background-color: @orange;
		
		p {
			font-size: 18px;
			line-height: 60px;
			text-align: center;
			letter-spacing: 6px;
		}
	}
	
	.routes-container {
		position: relative;
		height: 100%;
		padding-top: 60px;
		.box-sizing;
	}
	
	.route {
		color: #ffffff;
		text-decoration: none;
		display: block;
		position: relative;
		height: 50%;
		float: left;
		overflow: hidden;
		
		&.three {
			width: 33%;
		}
		
		&.three-b {
			width: 34%;
		}
		
		&.two {
			width: 50%;
		}
		
		.background {
			position: absolute;
			z-index: 1;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			pointer-events: none;
			.transition(@duration: 400ms);
			.scale(1);
			.cover;
		}
		
		.mount {
			position: absolute;
			z-index: 2;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			pointer-events: none;
			background-color: #FF9C1C;
			opacity: 0;
			.transition(@duration: 200ms);
		}
		
		.name {
			position: relative;
			z-index: 3;
			display: table;
			width: 100%;
			height: 100%;
			
			p {
				display: table-cell;
				vertical-align: middle;
				text-align: center;
				font-size: 86px;
				line-height: 30px;
				text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
				
				span {
					font-family: 'trivia-grotesk';
					font-size: 20px;
					line-height: 10px;
				}
				
				.soon {
					display: none;
					line-height: 78px;
					font-size: 14px;
					text-transform: uppercase;
					letter-spacing: 8px;
				}
			}
		}
		
		&:hover {
			.background {
				.transition(@duration: 7000ms, @type: linear);
				.scale(1.2);
			}
		
			.mount {
				opacity: 0.4;
			}
		}
		
		&.disabled {
			opacity: 0.5;
			pointer-events: none;
			
			.soon {
				display: block!important;
			}
		}
		
		&.active {
			pointer-events: none;
		
			.mount {
				opacity: 0.4;
			}
		}
	}
}

.place-card {
	@dur: 300ms;

	position: relative;
	width: 300px;
	background-color: #ffffff;
	z-index: 1;

	.header {
		@h: 30px;
		
		height: @h;
		background-color: @orange;
		
		.flag {
			height: @h;
			width: 40px;
			float: left;
			.cover;
		}
		
		.tag {
			display: block;
			float: left;
			color: #ffffff;
			position: relative;
			height: @h;
			line-height: @h;
			padding: 0px 20px;
			font-size: 14px;
			text-decoration: none;
			font-family: 'trivia-grotesk';
			
			/*&:hover {
				text-decoration: underline;
			}*/
			
			/*&:after {
				content: '';
				position: absolute;
				height: 14px;
				width: 1px;
				right: 0px;
				top: ( @h - 14px ) / 2;
				background-color: #ffffff;
			}*/
		}
		
		.admin-panel {
			display: none;
			float: right;
			height: @h;
			line-height: @h;
			padding-right: 20px;
			
			a, span {
				color: #ffffff;
				text-decoration: none;
				cursor: pointer;
				
				&:hover {
					text-decoration: underline;
				}
			}
		}
	}
	
	.image {
		height: 164px;
		.cover;
	}
	
	.content {
		padding: 20px 0px;
		text-align: center;
		color: #000000;
		font-size: 18px;
		line-height: 24px;
		
		.name {
			font-family: 'garamond-premier-pro-caption';
			font-style: italic;
		}
		
		.country {
			font-family: 'trivia-grotesk';
			font-style: normal;
		}
	}
	
	.info {
		padding: 20px 20px;
		border-top: 1px solid @orange;
		
		.description {
			color: #000000;
			font-family: 'trivia-grotesk';
			font-size: 14px;
			line-height: 17px;
			word-wrap: break-word;
		}
		
		.how-to, .how-to-not {
			display: inline-block;
			cursor: pointer;
			color: @orange;
			border-bottom: 1px dashed @orange;
			font-family: 'trivia-grotesk';
			font-size: 14px;
			margin-top: 20px;
			
			&:hover {
			}
		}
		
		.how-to-not {
			display: none;
		}
	}
	
	.voting {
		font-family: flounder, Arial;
		color: @orange;
		padding: 0px 20px 20px 20px;
		
		.rounded {
			padding: 5px 15px;
			border: 2px solid @orange;
			text-align: center;
			.border-radius(12px);
		}
			
		.counter {
			.rounded;
			float: left;
			
		}
		
		.button {
			.rounded;
			float: left;
			margin-left: 10px;
			cursor: pointer;
			
			&:hover {
				background-color: @orange;
				color: #ffffff;
			}
		}
	}
	
	.card {
		position: relative;
		z-index: 3;
		width: 100%;
		left: 0px;
		top: 0px;
		background-color: #ffffff;
	}
	
	.mount {
		position: absolute;
		z-index: 2;
		left: 0px;
		top: 0px;
		width: 100%;
		height: 100%;
		background-color: @orange;
		padding: 0px 0px;
		.transition(@duration: @dur);
		font-family: 'trivia-grotesk';
		
		.close {
			position: absolute;
			right: 0px;
			top: 0px;
			background-image: url(../images/contest/cross.png);
			background-size: 15px 15px;
			background-position: center center;
			background-repeat: no-repeat;
			cursor: pointer;
			width: 40px;
			height: 30px;
		}
		
		.label {
			color: #ffffff;
			margin-top: 30px;
			font-size: 14px;
			line-height: 17px;
		}
		
		.instruction {
			color: #000000;
			margin: 20px 0px;
			font-size: 20px;
			line-height: 25px;
			word-wrap: break-word;
		}
		
		.shares {
			padding-top: 15px;
			@s: 40px;
		
			/*position: absolute;
			top: 136px;
			left: 50%;
			margin-left: -560px;
			width: 60px;
			color: @white;
			font-size: 12px;
			line-height: 16px;*/
			
			padding-bottom: 40px;
			color: #fff;
			font-size: 12px;
			line-height: 16px;
			
			.label {
				margin-bottom: 10px;
				text-align: center;
			}
			
			.buttons {
				
			}
			
			.reset {
				position: static !important;
				float: none !important;
				margin: 0 !important;
				padding: 0 !important;
				display: block !important;
				border: none !important;
				.border-radius(0px) !important;
			}
			
			.b-share {
				.reset;
			}
			
			.b-share-btn__wrap {
				.reset;
				/*margin: @s / 2 0 0 0 !important;*/
				margin: 0 10px 0px 0px !important;
				width: @s;
				float: left!important;
				
				a {
					.reset;
					height: @s !important;
					background-color: transparent !important;
					
					&:after {
						content: '' !important;
						display: none !important;
					}
				}
				
				&:last-of-type {
					margin-right: 0!important;
				}
			}
			
			.b-share-icon {
				.reset;
				width: 40px !important;
				height: 40px !important;
				cursor: pointer;
				background-image: url(../images/index/shares-image.png);
				
				&.b-share-icon_vkontakte {
					background-position: -56px 0px !important;
				}
				
				&.b-share-icon_facebook {
					background-position: 0px 0px !important;
				}
				
				&.b-share-icon_twitter {
					background-position: -112px 0px !important;
				}
			}
			
			.b-share-counter {
				.reset;
				display: none !important;
			}
		}
		
	}
	
	.shadow {
		position: absolute;
		z-index: 1;
		height: 30px;
		width: 80%;
		bottom: 8px;
		left: 10%;
		.box-shadow(0px 2px 25px rgba(0, 0, 0, 0.7));
		.transition(@duration: @dur);
	}
	
	&.simple {
		.info, .voting, .mount {
			display: none;
		}
	}
	
	&.open {
		.mount {
			padding: 0px 15px;
			margin-left: -30px;
			.translate(@x: 100%);
		}
		
		.shadow {
			width: 195%;
			left: 10%;
			bottom: 0px;
		}
		
		.how-to {
			display: none;
		}
		
		.how-to-not {
			display: inline-block;
		}
	}
	
	&.right {
		/*.close {
			right: auto;
			left: 0;
		}*/
	
		&.open {
			.mount {
				margin-left: 0px;
				.translate(@x: -100%);
			}
			
			.shadow {
				left: -105%;
			}
		}
	}
	
	&.voted {
		.voting .button {
			pointer-events: none;
			opacity: 0.6;
			background-color: @orange;
			color: #ffffff;
		}
	}
	
	&.admin {
		.admin-panel {
			display: block;
		}
	}
}

.big-button {
	font-family: flounder, Arial;
	font-size: 42px;
	background-color: @orange;
	height: 100px;
	line-height: 100px;
	color: #ffffff;
	.border-radius(50px);
	text-align: center;
	display: block;
	cursor: pointer;
	text-decoration: none;
	
	&:hover {
		background-color: darken(@orange, 5%);
	}
	
	&.disabled {
		opacity: 0.7;
		pointer-events: none;
	}
}