/* start demographics.css */
#right-column svg{
	display: block;
	position: absolute;
}

#statewide{
	font-size: 12px;
	margin: 0;
	line-height: 14px;
	color: #999;
	visibility: hidden;
	cursor: pointer;
}

#right-column h3{
	margin-bottom: 0;
}

.chart-container{
	width: 260px;
}

.bar-chart{
	height: 60px;
	margin-bottom: 30px;
	position: relative;
}

.bar{
	margin-right: 10px;
	display: inline-block;
	background-color: #b0bfc8;
	position: relative;
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	border-top: 1px solid #fff;
}

.bar:hover{
	border-right: 1px solid #000;
	border-left: 1px solid #000;
	border-top: 1px solid #000;
}

.bar-chart line{
	stroke: #ccc;
	stroke-width: 1;
}

.bar-chart text{
	font-size: 10px;
	fill: #333;
}

.chart-base{
	position: absolute;
	top: 50px;
	margin-left: 20px;
	height: 2px;
	width: 220px;
	background-color: #999;
}

p.bar-label{
	width: 60px;
	text-align: right;
	font-size: 10px;
	line-height: 12px;
	position: absolute;
	top: 56px;
	-webkit-transform: rotate(-30deg); 
	-moz-transform: rotate(-30deg);
	-ms-transform: rotate(-30deg);
}

.pie-chart{
	height: 80px;
	margin-bottom: 30px
}

.pie path{
	stroke: #fff;
	stroke-width: 1;
}

.pie path.slice-clone{
	stroke: #000;
}

.pie-legend{
	margin-left: 100px;
}

.pie-legend-row{
	height: 15px;
	width: 150px;
}

.pie-legend-row div{
	display: inline-block;
	width: 10px;
	height: 10px;
	vertical-align: middle;
}

.pie-legend-row p{
	font-size: 10px;
	line-height: 12px;
	display: inline-block;
	color: #666;
	margin: 0 0 0 5px;
}

.pie-legend-row div.pie-check{
	border-radius: 50%;
	width: 6px;
	height: 6px;
	background-color: #ccc;
	float: right;
	margin-top: 1px;
	margin-right: 5px;
	cursor: pointer;
	border: 4px solid #fafafa;
}

.pie-legend-row div.pie-check:hover{
	background-color: #666;
}

.pie-legend-row div.pie-check.selected, 
.pie-legend-row div.pie-check.selected:hover{
	border: none;
	border-radius: 0;
	background-color: transparent;
	width: 16px;
	height: 10px;
	margin-top: 3px;
	margin-right: 0;
	background-image: url("../images/propIcon.png");
}

#main-map circle{
	fill: rgba(255, 255, 255, .25);
	stroke: black;
}

.prop-header{
	float: right;
	margin: 0;
	text-decoration: underline;
}

#payer-prop, #education-prop{
	display: none;
}

#quickfacts{
	float: right;
	text-decoration: none;
	color: #06c;
	font-size: 12px;
}

#quickfacts img{
	border: none;
}
/* end demographics.css */





/* start layout.css */
#main, #panel{
	float: left;
	height: 755px;
}

#main{
	min-width: 770px;
}

#panel{
	background-color: #fafafa;
	margin-left: 10px;
	border-left: 2px solid #eee;
}
div.column{
	margin: 0 10px;
	float: left;
}

div#left-column{
	width: 410px;
}
div#middle-column{
	width: 310px;
}
div#right-column{
	height: 100%;
	background-color: #fafafa;
}

div#inset-map{
	float: right;
	margin-left: 15px;
	width: 160px;
}

p#about{
	height: 300px;
	overflow-y: auto;
}
p#about.short{
	height: 150px;
}

#links{
	float: right;
	margin-left: 35px;
}

#links p{
	margin: 0;
	font-size: 11px;
	line-height: 14px;
	text-align: right;
}

#links p a{
	color: #333;
}

#links p a:hover{
	color: #666;
}

#search{
	float: right;
}

#search-results{
	position: absolute;
	width: 204px;
	background-color: #fff;
	left: 479px;
	top: 38px;
	border: 1px solid #ccc;
	max-height: 400px;
	overflow-y: auto;
}

#search-results p{
	margin: 0;
	padding: 0 10px;
	cursor: pointer;
}
#search-results p:hover{
	background-color: #eee;
}

#search-input{
	width: 150px;
}

#splash, #loading{
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

#splash-content{
	width: 600px;
	height: 200px;
	position: absolute;
	left: 50%;
	margin-left: -300px;
	top: 50%;
	margin-top: -100px;
}

#loading{
	background-color: rgba(255,255,255,.7);
}

#loading img, #loading p{
	position: absolute;
	top: 50%;
	left: 50%;
}

#loading img{
	margin-left: -75px;
	margin-top: -16px;
}

#loading p{
	margin-left: -25px;
	margin-top: -9px;
}

.h-border{
	height: 0px;
	border-top: 1px solid #ccc;
	margin: 5px 0;
}
/* end layout.css */



/* start text.css */
html, body{
	width: 100%;
	margin: 0;
	font: 13px / 18px "PT Sans", sans-serif;
}

h2{
	display: inline-block;
	color: #235b7d;
	font-size: 16px;
	margin: 5px 0;
}

h3{
	font-size: 14px;
}

h3#statewide-rate{
	margin-bottom: 0;
	max-width: 150px;
}

#zoom-note{
	font-style: italic;
	font-size: 12px;
	margin: 0;
	width: 170px;
}

#dates{
	font-size: 11px;
	font-style: italic;
}
/* end text.css */



/* start probe.css */
#probe {
	position: absolute;
	background-color: rgba(0,0,0,.75);
	color: #fff;
	padding: 10px;
	max-width: 250px;
}

#probe p{
	margin: 0;
}

#probe p#probe-name{
	font-size: 15px;
	font-weight: bold;
}

#probe p#probe-measure{
	font-style: italic;
	margin-bottom: 5px;
}

#probe p#probe-value{
	font-weight: bold;
}

#probe p#probe-value span#census-val{
	font-weight: normal;
	font-style: italic;
}
/* end probe.css */



/* start histogram.css */
#axes{
	position: absolute;
	left: 15px;
}

#axes line, #state-axis line{
	stroke: #ccc;
	stroke-width: 1;
}

#axes path, #state-axis path{
	fill: none;
}

.histogram-bar, .state-bar{
	display: inline-block;
	width: 10px;
	margin-right: 2px;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

.histogram-bar:hover, .histogram-bar.highlight, .state-bar:hover{
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
}

#histogram-container{
	position: relative;
	-moz-user-select: none;
  	-webkit-user-select: none;
  	-ms-user-select: none;
}

#histogram{
	height: 200px;
	position: relative;
	left: 40px;
	top:15px;
}

#bars, #temp-bars{
	position: absolute;
}

#histogram-container .q0-5, .state-bar.q0-5 {background-color:rgb(254,240,217);fill:rgb(254,240,217)}
#histogram-container .q1-5, .state-bar.q1-5 {background-color:rgb(253,204,138);fill:rgb(253,204,138)}
#histogram-container .q2-5, .state-bar.q2-5 {background-color:rgb(252,141,89);fill:rgb(252,141,89)}
#histogram-container .q3-5, .state-bar.q3-5 {background-color:rgb(227,74,51);fill:rgb(227,74,51)}
#histogram-container .q4-5, .state-bar.q4-5 {background-color:rgb(179,0,0);fill:rgb(179,0,0)}

#histogram-container .s0 {background-color:rgb(175,141,195);fill:rgb(175,141,195)}
#histogram-container .s1 {background-color:rgb(247,247,247);fill:rgb(247,247,247)}
#histogram-container .s2 {background-color:rgb(127,191,123);fill:rgb(127,191,123)}

#histogram-container .filtered, #histogram-container .region{
	background-color: #ccc;
}

#histo-base{
	height: 2px;
	background-color: #444;
	width: 350px;
	position: absolute;
	bottom: 33px;
	left: 40px;
}

#histogram-container p:first-child, #state-chart p:first-child{
	font-size: 12px;
	font-weight: bold;
	margin: 0;
}
#state-chart>p:first-child{
	margin: 5px 0;
}

#x-label, #y-label{
	position: absolute;
}

#y-label{
	-webkit-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	    transform: rotate(-90deg);
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
	left: -30px;
	top: 102px;
}

#x-label{
	left: 190px;
	top: 229px;
}

#filter{
	height: 10px;
	width: 350px;
	position: absolute;
	bottom: 25px;
	left: 40px;
}

.filter-handle{
	height: 15px;
	width: 18px;
	background-image: url("../images/filterHandle.png");
	position: absolute;
	cursor: pointer;
}
.filter-handle:hover{
	background-position: -18px 0;
}

#deviation-labels{
	display: none;
	position: absolute;
	bottom: -20px;
	margin-left: 60px;
}

#deviation-labels p{
	display: inline-block;
	width: 80px;
	font-size: 12px;
	margin-right: 25px;
	text-align: center;
}

#state-chart{
	display: none;
	height: 155px;
	width: 240px;
	border-top: 1px solid #ccc;
	position: relative;
}

#state-chart-inner{
	height: 75px;
	left: 30px;
	position: absolute;
	width: 180px;
}

.state-bar{
	margin-right: 40px;
}
.state-bar:first-child{
	margin-left: 5px;
}
.state-bar:last-child{
	margin-right: 0;
}

#state-axis{
	position: absolute;
	pointer-events: none;
}
#state-base{
	position: absolute;
	height: 1px;
	width: 180px;
	left: 30px;
	top: 102px;
	border-bottom: 2px solid #999;
}

#state-chart-labels{
	margin-top: 85px;
	margin-left: 15px;
}
.state-chart-label{
	width: 49px;
	display: inline-block;
	text-align: center;
	margin: 0;
	vertical-align: middle;
	line-height: 15px;
}
/* end histogram.css */




/* start map.css */
#main-map, #main-map svg{
	overflow: hidden;
}

g.map-layer{
	fill: #ccc;
	stroke: #999;
}

g.map-layer path.hover, g.map-layer path.histogram-highlight, g.map-layer path.selected{
	stroke: black;
}

g#county-layer.zoomed path, g#county-layer.region-highlight path{
	opacity: .25;
}

g#county-layer.zoomed path.active, g#county-layer.region-highlight path.highlighted{
	opacity: 1;
}

g.map-layer#chicago-layer{
	fill: none;
	stroke: #333;
	stroke-width: 2;
}

#zoom-out, #cook-toggle{
	visibility: hidden;
	background-color: #eee;
	line-height: 22px;
	width: 130px;
	height: 22px;
	margin: 5px 0;
	cursor: pointer;
	display: inline-block;
}

#zoom-out div{
	display: inline-block;
	text-align: center;
}

#zoom-out div:first-child{
	background-color: #666;
	width: 22px;
	color: white;
}

#zoom-out-text, #cook-toggle{
	font-size: 11px;
}

.map-layer .q0-5 {fill:rgb(254,240,217)}
.map-layer .q1-5 {fill:rgb(253,204,138)}
.map-layer .q2-5 {fill:rgb(252,141,89)}
.map-layer .q3-5 {fill:rgb(227,74,51)}
.map-layer .q4-5 {fill:rgb(179,0,0)}
.map-layer .no-data {fill:#999}
.map-layer .filtered { fill: #ccc }

.map-layer .s0 {fill:rgb(175,141,195)}
.map-layer .s1 {fill:rgb(247,247,247)}
.map-layer .s2 {fill:rgb(127,191,123)}

.place-label-halo{
	fill: #fff;
	stroke: #fff;
	stroke-width: 2;
	opacity: .75
}

.place-label{
	fill: #333;
}

.city-point{
	fill: #333;
}
/* end map.css */




/* start measures.css */
#measures{
	margin-left: 10px;
}

#category-select, h2:first-child{
	width: 200px;
	margin-right: 50px;
}

#measure-select{
	width: 400px;
}

#csv{
	float: right;
	clear: both;
	width: 35px;
	height: 33px;
	background-image: url(../images/export.png);
}

#selects{
	border-top: 1px solid #ccc;
	background: #fafafa; /* Old browsers */ /* FF3.6+ */ /* Chrome,Safari4+ */ /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #fafafa 0%,#ffffff 100%); /* Opera 11.10+ */ /* IE10+ */
	background: -webkit-gradient(linear,  left top, left bottom,  from(#fafafa),to(#ffffff));
	background: linear-gradient(to bottom,  #fafafa 0%,#ffffff 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fafafa', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
	padding-top: 10px;
}
/* end measures.css */



/* start narrow.css */
@media (max-width: 1065px) {  
	#panel,div.column#right-column,#bar-charts,#pie-charts{
		width: 100%;
	}
	#bar-charts{
		height: 140px;
	}
	#panel{
		height: auto;
		margin: 0;
		border-top: 1px solid #ccc;
	}
	.bar-chart, .pie-chart{
		margin-right: 15px;
	}
	.chart-container{
		float: left;
	}
	.prop-header{
		margin-right: 15px;
	}
	#payer-prop, #education-prop{
		display: block;
	}
	#quickfacts{
		margin-right: 15px;
	}
}
/* end narrow.css */