/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
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, 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;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block; }

body {
  line-height: 1em; }

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; }

/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

/* End of reset */

/* Main site styling */
body {
	background-color: black;
	font-family: "OpenSans","Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #efefef;
	margin: 0px;
	padding: 0px;
	line-height: 1.44em;
	text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: white; }
a:hover, a.focus { text-decoration: underline; }
p { word-wrap: break-word; line-height: normal; }
	
#main { background-color: rgba(36, 43, 45, 1); margin-top: 82px; }
#main .holder { max-width: 800px; margin: auto;}
.holder { padding: 20px 40px; position: relative; }
h1, h2, .title { color: #ffffff; font-style: normal; }
h1 { font-size: 32px; display: inline; font-family: 'Rambla-Bold', 'Rambla Bold', 'Rambla'; font-weight: 700; }
h2 { font-size: 18px; font-family: "OpenSans","Open Sans", Helvetica, Arial, sans-serif; font-weight: 400; line-height: 40px; }

header, footer { background-color: #000000; }
header { font-size: 28px; color: #ffffff; line-height: 42px; text-transform: uppercase; position: fixed; z-index: 1001; top: 0px; width:100%; }
header .messages { display: block; background: #169BD5; color: black; }
header .title { line-height: 0.7em; vertical-align: bottom; display: inline; font-family: 'Rambla-Bold', 'Rambla Bold', 'Rambla';font-weight: 700; }
header .holder:first-child { line-height: 0px; }
header img { height: 42px; margin-right: 16px; }
header .logo-tiny { display: none; }
header .right { font-size: 18px; float: right; line-height: 42px; vertical-align: baseline; }
header .right a:hover, header .right a:focus { border-bottom: 1px solid #169BD5; text-decoration: none; }
.area-header { display:none; line-height: 0px; padding-top: 10px; padding-bottom: 0px; background: rgba(36, 43, 45, 1); }
body.scroll header .holder:first-child { padding: 8px 40px; }
body.scroll header img { height: 30px; margin-right: 8px; }
body.scroll header .title { vertical-align: bottom; display: none; }
body.scroll header { line-height: 30px; }
body.scroll header .logo-full { display: none; }
body.scroll header .logo-tiny { display: inline-block; }
header .head { position: relative; }
header .right { line-height: 1em; position: absolute; right: 0px; bottom: 0px; }
body.show-header .area-header { display: block; }
.heading { display: block; margin: 20px 0; }
.heading:after, #main:after, #areas .buttons:after { content:""; clear: both; }
.scroll-right { position: fixed; display: none; right: 0px; top: 50%; height: 125px; width: 30px; transform: translate3d(0,-50%,0); background: #169BD5; z-index: 1001; padding: 10px; cursor: pointer; }
.scroll-right.on { display: block; }
.scroll-right img { height: 25px; position: absolute; left: 50%; top: 50%; transform: translate3d(-50%,-50%,0); }

footer { display: block; width: 100%; }
footer img { width:80px; }
footer .panel { display: inline-block; width: 25%; margin-bottom: 20px; min-height: 90px; vertical-align: top; }
footer .panel, footer p { line-height: 2.2em; }
footer .panel:first-child .logo { display: inline-block; text-align: center; }
footer .panel:first-child h3 { font-weight: bold; line-height: 1em; }
footer h3 { text-transform: uppercase; font-size: 1.4em; margin-bottom: 0px; }
footer .social { list-style:none; }
footer .social li { display: inline-block; }
footer .social img { width: 36px; height: 36px; padding: 6px; }
footer .social .twitter:hover img { background-color: #1da1f2; }
footer .social .linkedin:hover img { background-color: #0077b5; }
footer .social .facebook:hover img { background-color: #3b5998; }

#options { display: inline; }
#options .opt { display: inline-block; margin-top:0.5em; }
select, input {
	border: 1px solid #778287;
	color: #778287;
	line-height: 25px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type=checkbox] {
	width: 18px;
	height: 18px;
	vertical-align: top;
	margin-right: 0.5em;
	margin-left: 2em;
	cursor: pointer;
}
input[type=checkbox]:checked {
	background: url('cross.svg') no-repeat right transparent;
	background-size: contain;
}
label { margin-right: 1em; }
.dropdown { margin-left: 1em; display: inline-block; }
.dropdown label { margin-right: 0.5em; }


html,body.register-page {
	height: 100%;
	min-height: 100%;
	width: 100%;
}
body .registration, body .signin-options {
	font-size: 14px;	
}
body .registration {
	width: 100%;
	height: 100%;
}
body .registration img { height: 42px; }
body .signin-options { position: absolute; top: 50%; right: 0px; display: inline-block; text-transform: none; }
body .registration .useroptions { position: absolute; top: 100%; margin-top: 20px; right: 0%; width: 250px; background: white; text-align: left; color: black; padding: 20px; }
body .registration .useroptions a { color: inherit; display: inline-block; background: rgba(0,0,0,0.1); }
body .registration .btn { color: black; background: rgba(255,255,255,0.8); padding: 0.5em 0.75em; cursor: pointer; line-height: 25px; }
body .registration .btn:hover, body .registration .btn:focus { background: #169bd5; color: black; text-decoration: none; }
body .registration h1 { font-size: 20px; }
body .registration .wrapper {
	text-transform: none;
	position: relative;
	left: 50%;
	top: 50%;
	width: 400px;
	max-width: 100%;
	transform: translate3d(-50%,-50%,0);
	padding: 20px;
	background: rgba(36, 43, 45, 1);
}
body .registration .wrapper .close { position: absolute; right: 0px; top: 0px; width: 60px; height: 60px; font-size: 20px; line-height: 60px; text-align: center; cursor: pointer; }
body.loggedin .registration .wrapper{ padding: 0px; }
body.app .registration {
	position: fixed;
	display: none;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: black;
}
body.app.loggedin .registration {
	display: inline-block;
	position: absolute;
	background: transparent;
	width: 50%;
	height: 100%;
	left: 50%;
	top: 0px;
}
body.app.loggedin .registration ul > li { display: inline-block; line-height: 1em; }
body.app.loggedin .registration .username { color: #169bd5; display: inline-block; position: relative; cursor: pointer; }
body.app.loggedin .registration .reset { border-right: 1px solid #778287; padding-right: 5px; margin-right: 5px; }
body.app.loggedin .registration .wrapper {
	line-height: 1em;
	background: none;
	width: auto;
	text-align: right;
}
.registration input { border: 0px; }
.registration .form-group, .registration p { margin: 0; margin-bottom: 10px; line-height: 1.2em; }
.registration .form-group.has-error .help-block { display: block; margin-top: 8px; position: relative; padding: 10px; background-color: #ff6600; color: black; }
.registration .form-group.has-error .help-block:after {
	position: absolute;
	content: "";
	border: 4px solid #ff6600;
	border-top-color: transparent!important;
	border-right-color: transparent!important;
	transform: translate3d(0%,-7px,0);
	left: 0px;
	top: 0px;
}
.registration .form-group label { width: 35%; display: inline-block; }
.registration .form-group input[type=text], .registration .form-group input[type=password] { width: 60%; }



.areas { width: 100%; position: relative; }
.selector { width:100%; background: rgba(36, 43, 45, 1); }
.selector .title {
	font-size: 1em;
	display: block;
	width: 100%;
	height: 3em;
	line-height: 3em;
	position: relative;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6600+0,000000+50,169bd5+100&1+0,0+50,1+100 */
	background: -moz-linear-gradient(left, rgba(255,102,0,1) 20%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 55%, rgba(22,155,213,1) 80%); /* FF3.6-15 */
	background: -webkit-linear-gradient(left, rgba(255,102,0,1) 20%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 55%,rgba(22,155,213,1) 80%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to right, rgba(255,102,0,1) 20%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 55%,rgba(22,155,213,1) 80%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6600', endColorstr='#169bd5',GradientType=1 ); /* IE6-9 */
}
.selector .title .challenger:first-child { float: left; position: relative; z-index: 2; }
.selector .title .challenger:last-child { float: right; position: relative; z-index: 2; }
.selector .title .challenger {
	padding: 0 20px;
	width: 50%;
	margin: 0;
	font-size: 1em;
	cursor: pointer;
}
.selector .title .challenger .name, .title .vs { font-size: 1.5em; }
.selector .title .challenger .name span { position: relative; }
.selector .title .challenger:first-child { color: black; }
.selector .title .challenger:last-child { color: black; text-align: right; }
.vs {
	font-style: italic;	
	font-family: serif;
}
.title .vs {
	line-height: 2em;
	text-align: center;
	width: 100%;
	display: block;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 1;
}
.areas .selector ol {
	display: none;
}
.areas .selector.a-open ol.a-list, .areas .selector.b-open ol.b-list { display: block; }
.areas .selector ol:after {
	content: "";
	clear: both;
	display: block;
}
.areas .selector ol li {
	display: inline-block;
	width: 20%;
	line-height: 2em;
	font-size: 1.25em;
	border-top: 1px solid black;
	border-right: 1px solid black;
	padding: 0em 0.5em;
	cursor: pointer;
	transition: color 0.2s ease-in, background-color 0.2s ease-in;
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	float: left;
}
.areas .selector ol li:nth-child(5n) { border-right: 0px; }
.areas .selector ol.a-list li { background: #ff6600; color: black; }
.areas .selector ol.b-list li { background: #169bd5; }
.areas .selector ol li:hover, .areas .selector ol li:focus {
	background: rgba(255,255,255,0.5);
	color: black;
}
.areas ol li.selected { background: white!important; color:black; }
.areas .area { display: inline-block; margin-right: 20px; width: 100%; overflow-x: auto; }
.areas .area:last-child { margin-right: 0px; }
.areas .map-holder { width: 100%; height: 680px; position: relative; }
.areas .map-holder img { max-width: 100%; }
.areas .animated-logo { width: 80px; max-width: 50%; position: absolute; left:50%; top:50%; transform: translate3d(-50%,-50%,0); stroke-dasharray: 9000; stroke-dashoffset: 9000; stroke-width: 5px; animation: dash 2.5s linear forwards; animation-iteration-count: infinite; }
@keyframes dash { 0 { stroke-dashoffset: -9000; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -9000; }}
.areas .traveltimes ul { margin-top: 20px; }
.areas .area-title { border-bottom: 2px solid #ff6600; line-height: 30px; height: 30px; }
.areas .area-title .area-name { float: left; background-color: #ff6600; padding: 0 20px; display: inline-block; font-size: 20px; font-family: 'Rambla'; font-weight: 700; text-transform: uppercase; margin-right: 0px; }
.areas .buttons { display: inline-block; float: left; }
.areas button {
	cursor: pointer;
	display: inline-block;
	float:left;
	border: 0px;
	height: 20px;
	width: 20px;
	padding: 0px;
	margin: 2px 0 0 8px;
	background: transparent;
}
.areas .area button.move-left { transform: rotate(180deg); }
.areas .area:first-child button.move-left { display: none; }
.areas .area:last-child button.move-right { display: none; }
.areas button svg { width: 100%; height: 100%; }
.areas .download { line-height: 2em; margin-top: 1em; }
.areas .download li { display: inline-block; margin-right: 1em; }
.areas .download a { color: #169BD5; text-transform: uppercase; }
.areas a:hover, .areas a:hover svg polyline, .areas a:hover svg line, .areas button:hover svg polyline, .areas button:hover svg line { color: white; stroke: white!important; }
.areas a:hover svg path, .areas button:hover svg path { fill: white!important; }
.areas .download svg { width: 2em; height: 2em; float: left; margin-right: 0.5em; }
.areas .panel {
	background-color: #000000;
	padding: 20px; 
	margin-bottom: 20px;
}
.areas .panel p { margin-bottom: 20px; }
.areas .panel p:last-child { margin-bottom: 0px; }
.areas .value { color: #ff6600; }
.areas .winner { font-weight: bold; }
.areas .populations table { width: 100%; margin-top: 20px; }
.areas .populations table td { border-collapse: collapse; border: 1px solid rgba(36, 43, 45, 1); border-left: 0px; border-right: 0px; line-height: 60px; }
.areas .populations table tr:first-child td { border-top: 0; }
.areas .populations table tr:last-child td { border-bottom: 0; }
.areas .populations table td:last-child { text-align: right; }
.areas .barchart { width: 100%; height: 150px; }
.areas .summary .barchart { height: 270px; }
.areas .classifications .donut {  height: 400px; }
.areas .classifications .barchart {  height: 500px; }
.areas .portraits .barchart { height: 550px; }
.areas .ages .barchart { height: 340px; }
.areas .ethnicity .barchart { height: 200px; }


.tooltip {
	position: absolute;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.6);
	font-size: 16px;
	line-height:1.25em;
	width: 150px;
	z-index: 1000;
	top: 100%;
	margin-top: 10px;
	right: 40px;
}
.tooltip .tooltip-inner {
	position: relative;
	background-color: white!important;
	color: black!important;
	text-align: left;
	padding: 0.25em 0.5em;
}
.tooltip:after {
	position: absolute;
	content: "";
	border: 0.5em solid white;
	border-top-color: transparent!important;
	border-left-color: transparent!important;
	transform: translate3d(-100%,-100%,0);
	left: 100%;
	top: 0px;
}


@media only screen and (max-width: 700px) {
	.holder, body.scroll header .holder:first-child {
		padding-left: 20px;
		padding-right: 20px;
	}
	body header .holder:first-child { padding-top: 10px; padding-bottom: 10px; }

	.areas .selector ol li { width: 33.33333333%; }
	.areas .selector ol li:nth-child(5n) { border-right: 1px solid black; }
	.areas .selector ol li:nth-child(3n) { border-right: 0px; }
	footer .panel { display: block; width: 100%; }
}

@media only screen and (max-width: 480px) {
	.areas .area { max-width: calc(100vw - 40px); }
	.areas .map-holder canvas { max-width: 100%; max-height: auto; }
	header img { height: 30px; }
	h1 { font-size: 26px; }
	body header .right { font-size: 14px; }
	.selector .title .challenger {
		padding: 0 0.5em;
	}
	.selector .title .challenger .name {
		font-size: 1.5em;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	body .registration .wrapper { transform: none; top: 0; left: 0; width: 100%; height: 100%; }
	.registration .form-group label { width: 100%; line-height: 1em; margin-bottom: 5px; }
	.registration .form-group input[type="text"], .registration .form-group input[type="password"] { width: 100%; }
	.registration input[type="submit"], .registration input[type="reset"] { margin-bottom: 5px; }
	.registration .form-group.has-error .help-block { margin-top: 14px; }
}
@media only screen and (max-width: 380px) {
	.areas .area { max-width: calc(100vw - 20px); }
	.holder, body.scroll header .holder:first-child {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media only screen and (max-width: 320px) {
	.holder, body.scroll header .holder:first-child {
		padding-left: 5px;
		padding-right: 5px;
	}
	.area-header { padding-top:5px; }
}
