#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); 
	-moz-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;
}