/* ---- button ---- */

.button {
	display: inline-block;
	padding: 10px 5px;
	background: #EEE;
	min-height: 48px;
	border: none;
	background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
	color: #222;
	font-size: 16px;
	font-weight: bold;
	text-shadow: 0 1px white;
	cursor: pointer;
	width: 100%;
}

.button:hover {
	background-color: #8CF;
	text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
	color: #222;
}

.button:active,
.button.is-checked {
	background-color: #28F;
}

.button.is-checked {
	color: white;
	text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.button:active {
	box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

.button-group {
	border-top: 1px solid;
}

.exonerations, .button-group {
	background: #eee;
	list-style: none !important;
	margin: 0 !important;
	padding: 0;
	border-right: 1px solid;
	border-left: 1px solid;
}

.exonerations > li, .button-group > li {
	display: table;
	table-layout: fixed;
}

.exonerations > li {
	min-height: 110px;
}

.exonerations > li:hover {
	background: #fff;
	cursor: pointer;
}

.exonerations li div, .button-group li div {
	vertical-align: top;
}

.exonerations li ul > li {
	margin: 0 !important;
}

.exonerations > li div, .button-group > li div {
	border-right: 1px solid;
	display: table-cell;
	padding: 5px;
}

.button-group > li div {
	padding: 0;
}

.exonerations > li:last-child, .button-group > li:last-child {
	border-right: none !important;
}

.exonerations > li, .button-group > li {
	margin: 0 !important;
	width: 100%;
	clear: both;
	border-bottom: 1px solid;
}

.exonerations li .name, .button-group .name { width: 22%; }
.exonerations li .year_of_exoneration, .button-group .year_of_exoneration { width: 17%; }
.exonerations li .year_of_conviction, .button-group .year_of_conviction { width: 17%; }
.exonerations li .state_of_conviction, .button-group .state_of_conviction { width: 17%; }
.exonerations li .types_of_evidence_at_trial, .button-group .types_of_evidence_at_trial { width: 22%; }

.exoneree .label {
	font-weight: bold;
}

.arrow-up {
	width: 0; 
	height: 0; 
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #000;
	float: right;
	margin: 12px 5px;
}

.arrow-down {
	width: 0; 
	height: 0; 
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #000;
	float: right;
	margin: 12px 5px;
}

.controls {
	margin-bottom: 20px;
}
.controls div {
	display:inline-block;
	float:left;
	width: 57%;
}
.controls > div:first-child {
	width: 15%;
}
.quicksearch:not(:valid) ~ .advanced-search-links .reset-search-link {
	display: none;
}

.quicksearch {
	margin-bottom: 15px;
}

.advanced-search-links {
	float: left;
	width: 100%;
}

.advanced-search-link, .reset-search-link {
	float: right;
	font-size: 16px;
}

.advanced-search-link {
	margin-left: 50px;
}

.hide {
	display:none;
}

.clearfloat {
	clear: both;
	float: left;
	width: 100%;
}

.advanced-search {
	margin-top: 45px;
	margin-bottom: 20px !important;
}

.tab-links {
	clear:both;
	display:block;
	margin: 0 !important;
	margin-top: 25px;
	text-align: center;
}

.tab-links li {
	display: inline-block;
	margin: 0 !important;
	padding: 0 !important;
	margin-right: 25px;
}

.tab-links li a {
	border: 1px solid #000;
	background-color: #eee;
	padding: 5px 10px;
}

.tab-links li.active a {
	background-color: #fff;
	border-bottom: solid 1px #fff;
}

.tab {
	padding: 25px;
	border: solid 1px #000;
}

.advanced-search .row {
	margin-bottom: 15px;
	padding-bottom: 15px;
	display:block;
	float: left;
	width: 100%;
}

.advanced-search .row .col {
	width: 50%;
	display:block;
	float: left;
}

.advanced-search .row .col > label {
	display:block;
	margin-bottom: 15px;
}

.advanced-search .row .col.left {
	padding-right: 5%;
}

.checkbox-group {
	height: 150px;
	overflow: -moz-scrollbars-vertical;
	overflow: scroll;
	border: 1px solid #eee;
}

.checkbox-group ul {
	padding: 10px 35px;
	columns: 2;
	-webkit-columns: 2;
	-moz-columns: 2;
	list-style: none !important;
	margin-left: 0 !important;
}

.eyewitness-checkbox ul {
	columns: 1 !important;
	-webkit-columns: 1 !important;
	-moz-columns: 1 !important;
}

.checkbox-group ul > li {
	margin-bottom: 0;
	padding-bottom: 0;
	line-height: 100%;
}

.checkbox-group ul > li label {
	display: inline-block;
}

.checkbox-group ul > li label input {
	font-size: x-large;
}

/* override style in hemingway theme -- this can be removed when custom theme used */
.checkbox-group *:last-child {
	margin-bottom: 5px !important;
}

/* bar chart */

#xaxis .domain {
	fill:none;
	stroke:#000;
}
#xaxis text, #yaxis text {
	font-size: 12px;
	font-weight: bold;
}

/* states */

.state{
	fill: none;
	stroke: #a9a9a9;
	stroke-width: 1;
	position:relative;
}
.state:hover{
	fill-opacity:0.5;
}
#tooltip h4{
	width: 100%;
	margin: 20px 0;
	font-size:20px;
	text-align:center;
}
#tooltip{
	position:absolute;
	width: 275px;
	left: 50px;
	background:rgba(0,0,0,0.9);
	border:1px solid grey;
	border-radius:5px;
	font-size:12px;
	padding:4px;
	color:white;
	opacity:1;
	min-height: 400px;
	z-index: 1000;
	max-height: 600px;
    overflow: auto;
}
#tooltip table{
	table-layout:fixed;
	width: auto;
}
#tooltip tr td{
	padding:0;
	margin:0;
	border-bottom: none !important;
	background:none !important;
}
#tooltip tr td:nth-child(1){
	width:50px;
}
#tooltip tr td:nth-child(2){
	text-align:center;
}
#tooltip p {
	text-align:center;
}
#tooltip p, #tooltip ul {
	margin-bottom: 5px;
}
#tooltip ul {
	margin-left: 25px;
}
#map-container {
	width: 100%;
	margin-left: 150px;
}
#map-container svg {
    display:block;
    margin:0 auto;
}
.error {
	color: red;
	font-weight: bold;
}
