/* stylesheet for tuesday demo page */
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900i&display=swap');

@red: #f05a67;
@red-l1: #f69c97;
@red-d1: #d3505a;
@red-d2: darken(@red-d1,10%);

@blue: #30a4dc;
@blue-l1: lighten(@blue,10%);
@blue-l2: lighten(@blue,20%);
@blue-d1: darken(@blue,10%);
@blue-d2: darken(@blue,20%);

@green: #b2cf65;
@green-l1: lighten(@green,10%);
@green-d1: darken(@green,10%);
@green-d2: darken(@green,10%);
@green-d3: darken(@green,20%);

.font-default { 
	font-family: 'Lato', 'Helvetica Neue', 'Helvetica', sans-serif; 
}

input, select, button, textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	.font-default;
}

h1,h2,h3,h4,h5,h6,p {
	margin: 0;
	padding: 0;
}

a {
	color: @green-d2;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-size: 85%;
}

body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	.font-default;
	display: table;
	overflow: hidden;
}

/* main style start */
#page {
	width: 100%;
	text-align: center;
	position: relative;
	padding: 20px 0;
	vertical-align: middle;
	display: table-cell;
}

h1 {
	font-size: 4em;
	font-weight: 900;
	margin: 30px 0 0 0;
	font-style: italic;
	animation-duration: 0.5s !important;
}

p.subheader {
	font-size: 1.2rem;
	margin: 10px 0 30px 0;
	color: #666;
}

h2 { 
	margin: 0 0 15px 0;
}

.container {
	position: relative;
	display: inline-block;
	width: 400px;
	height: 240px;
	padding: 20px 30px 40px 30px;
	margin: 0 auto 10px auto;
	text-align: center;
	border: 1px solid #ddd;
}

.button-row {
	width: 100%;
	height: 50px;
	margin: 0 auto;
	text-align: center;
}

select.animationlist {
	width: 200px;
	display: inline-block;
	height: 40px;
	padding: 10px 15px;
	margin: 0 5px 0 0;
	
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='24'><path fill='%23aaa' d='M8 11l4 4 4-4z'/></svg>");
	background-repeat: no-repeat;
	background-position: right center;

	border: none;
	box-shadow: 0 0 0 1px #aaa inset;
	line-height: 22px;
	vertical-align: top;
	font-size: 16px;
	border-radius: 0;
	cursor: pointer;
	outline: none; 

	&:hover {
		box-shadow: 0 0 0 1px #999 inset;
	}

	&:focus {
		box-shadow: 0 0 0 2px @green inset;
		text-decoration: none;
		outline: none;
	}

	optgroup {
		.font-default;
		padding: 5px 0;
		text-indent: 5px;
		border-bottom: 1px solid #aaa;
		&:last-child {
			border: none;
		}
	}
	option {
		.font-default;
		padding: 5px;
		text-indent: 12px;
	}
}

button {
	display: inline-block;
	vertical-align: top;
	width: 150px;
	height: 40px;
	padding: 6px 15px;
	margin: 0 5px 10px 0;
	border: 2px solid transparent;
	background: @green;
	font-size: 1rem;
	font-weight: bold;
	line-height: 22px;
	text-align: center;
	color: #fff;
	text-decoration: none !important;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 2px;
	box-shadow: 0 0 0 2px rgba(255,255,255,0) inset;
	border-radius: 0;
	transition-property: background, border-color, color, box-shadow, opacity;
	transition-duration: .15s;
	white-space: pre;

	&:hover {
		text-decoration: none;
		box-shadow: 0 2px 4px -2px rgba(0,0,0,.2);
		color: #fff;
		background-color: @green-l1;
		border-color: @green-d1;
	}

	&:active {
		text-decoration: none;
		box-shadow: 0 0px 1px rgba(0,0,0,.2);
		background-color: @green-d1;
		border-color: @green-d2;
		color: #fff;
		transition-duration: 0s;
	}

	&:focus {
		text-decoration: none;
		outline: none;
		color: #fff;
	}

	&.disabled {
		background: #aaa;
		color: #fff;
		pointer-events: none;

		&:hover, &:active, &:focus {
			background: #666;
			box-shadow: none;
			border: none;
		}
	}

}

.target {
	position: absolute;
	bottom: 50px;
	background: #eee;
	width: 400px;
	height: 100px;
	box-sizing: border-box;
	padding: 15px 20px;
	border-radius: 3px;
	margin: 0;
	text-align: center;
	font-size: 1rem;
	color: #333;
}

.guide {
	.target;
	opacity: 0.2;
	border: 1px solid red;
}

.hidden {
	display: none;
}

.credits {
	color: #999;
	margin: 10px 0;

	.shakr-logo {
		display: block;
		width: 48px;
		height: 48px;
		margin: 0 auto;
		
		svg {
			width: 100%;
			height: 100%;
		}
	}

}

.container.entrances .target {
	opacity: 0;
}
.container.exits .target.animated {
	opacity: 0;
}

/* set animations */
.guide {
	 display: none !important;
}


@media screen and (max-width: 460px) {
	html {
		font-size: 70%;
	}
	h1 {
		font-size: 4em;
	}

	p.subheader {
		padding: 0 10px;
	}
	.container {
		width: 100%;
		height: 230px;
		display: block;
		box-sizing: border-box;
		padding: 20px 20px;
		border: none;
		border-top: 1px solid #ddd;

		&.exits {
			border-bottom: 1px solid #ddd;
		}
	}
	select.animationlist {
		width: 150px;
	}
	button {
		width: 120px;
		margin: 0;
	}
	.target {
		width: ~'calc(100% - 40px)';
		left: inherit;
		height: auto;
		bottom: 10px;
	}
}
