/* start demographics.css */
#right-column svg {
    display: block;
    position: absolute;
}

.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 oklch(0.13 0.028 261.692);
    border-left: 1px solid oklch(0.13 0.028 261.692);
    border-top: 1px solid oklch(0.13 0.028 261.692);
}

.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: 65px;
    -webkit-transform: rotate(-30deg);
    -moz-transform: rotate(-30deg);
    -ms-transform: rotate(-30deg);
    transform: rotate(-30deg);
}

.pie-chart {
    height: 80px;
    margin-bottom: 30px;
}

.pie path {
    stroke: #fff;
    stroke-width: 1;
}

.pie path.slice-clone {
    stroke: oklch(0.13 0.028 261.692);
}

.pie-legend {
    margin-left: 85px;
}

.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, 0.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 */

#search-results, #zip-search-results {
    position: absolute;
    background-color: #fff;
    left: 0;
    right: 0;
    top: 100%;
    border: 1px solid #ccc;
    max-height: 400px;
    overflow-y: auto;
}

#search-results p, #zip-search-results p {
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
}

#search-results p:hover, #zip-search-results p:hover {
    background-color: #eee;
}

#loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

#loading {
    background-color: rgba(255, 255, 255, 0.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 probe.css */
#probe {
    position: absolute;
    background-color: rgba(0, 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 oklch(0.13 0.028 261.692);
    border-left: 1px solid oklch(0.13 0.028 261.692);
    border-right: 1px solid oklch(0.13 0.028 261.692);
}

#histogram {
    height: 200px;
    position: relative;
    left: 40px;
    top: 15px;
}

#bars,
#temp-bars {
    position: absolute;
}

#histogram-container .q0-5,
.state-bar.q0-5 {
    background-color: oklch(0.977 0.013 236.62);
    fill: oklch(0.977 0.013 236.62);
}
#histogram-container .q1-5,
.state-bar.q1-5 {
    background-color: oklch(0.901 0.058 230.902);
    fill: oklch(0.901 0.058 230.902);
}
#histogram-container .q2-5,
.state-bar.q2-5 {
    background-color: oklch(0.746 0.16 232.661);
    fill: oklch(0.746 0.16 232.661);
}
#histogram-container .q3-5,
.state-bar.q3-5 {
    background-color: oklch(0.588 0.158 241.966);
    fill: oklch(0.588 0.158 241.966);
}
#histogram-container .q4-5,
.state-bar.q4-5 {
    background-color: oklch(0.443 0.11 240.79);
    fill: oklch(0.443 0.11 240.79);
}

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

#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 */
g.map-layer {
    fill: #ccc;
    position: relative;
}

g.map-layer path {
    stroke: #999;
}

g.map-layer path.hover,
g.map-layer path.histogram-highlight,
g.map-layer path.selected {
    stroke: black;
    position: relative;
    z-index: 10;
}

g#county-layer.zoomed path,
g#county-layer.region-highlight path {
    opacity: 0.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: oklch(0.977 0.013 236.62);
}
.map-layer .q1-5 {
    fill: oklch(0.901 0.058 230.902);
}
.map-layer .q2-5 {
    fill: oklch(0.746 0.16 232.661);
}
.map-layer .q3-5 {
    fill: oklch(0.588 0.158 241.966);
}
.map-layer .q4-5 {
    fill: oklch(0.443 0.11 240.79);
}
.map-layer .no-data {
    fill: oklch(0.551 0.027 264.364);
}
.map-layer .filtered {
    fill: oklch(0.967 0.003 264.542);
}

.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: 0.75;
}

.place-label {
    fill: oklch(0.21 0.034 264.665);
}

.city-point {
    fill: oklch(0.21 0.034 264.665);
}
/* end map.css */
