body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #222;
    font-size: 17px;
    background-color: #fff;
    line-height: 160%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

p {
    margin: 16px 0;
    line-height: 165%;
}

a {
    color: #428bca;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #2a6496;
    text-decoration: none;
}

.container {
    width: 100% !important;
    max-width: 800px;
}

.header {
    position: relative;
    margin: 15px 0px;
    text-align: center;
}

text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #222;
    font-size: 14px;
}

text.value {
    font-weight: 400;
    color: #222;
    font-size: 14px;
}

text.county-label {
    color: #222;
    font-size: 14px;
}

.axisHorizontal path {
    fill: none;
}

.axisHorizontal .tick line {
    stroke-width: 1;
    stroke: rgba(0, 0, 0, 0.2);
}

.bar {
    cursor: pointer;
    pointer-events: all;
}

.bar:hover {
    opacity: 0.7;
}

#commuter-crashes-map {
    border: 1px solid #999999;
}



#commuter-crashes-chart.commute .bar rect {
    fill: #ddbaba;
}

#commuter-crashes-chart.morning .bar rect {
    fill: #e5c88f;
}

#commuter-crashes-chart.evening .bar rect {
    fill: #bfd7d8;
}


#commuter-crashes-chart.commute .bar.active rect {
    fill: #d44242;
    /* ddbaba */
}

#commuter-crashes-chart.morning .bar.active rect {
    fill: #e59739;
    /* e5c88f */
}

#commuter-crashes-chart.evening .bar.active rect {
    fill: #41757d;
    /* bfd7d8 */
}




/*#commuter-crashes-chart .bar.active rect {
    fill: red;
}*/

circle.case {
    stroke: none;
}

circle[data-type="commute"] {
    fill: #d44242;
}

circle[data-type="morning"] {
    fill: #e59739;
}

circle[data-type="evening"] {
    fill: #41757d;
}

.modes {
    position: relative;
}

.cols {
    position: relative;
    display: table;
    width: 100%;
    max-width: 100%;
    margin: auto;
    table-layout: fixed;
}

.cols .col {
    display: table-cell;
    vertical-align: middle;
    width: 33.33%;
}

.cols .col:first-child {
    padding-right: 15px;
}

.cols .col:last-child {
    padding-left: 15px;
}

.footer {
	padding: 30px 0px 15px;
	display: table;
	width: 100%;
	position: relative;
}

.btn-mode {
    background: #ababab url(images/btn-grey.png) center center no-repeat;
    background-size: cover;
    border: none !important;
    border-radius: 0px;
    display: block;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    line-height: 130%;
    font-weight: 500;
}

.btn-mode,
.btn-mode:hover {}

.btn-mode:not(.active):hover {
    opacity: 0.75;
}

.btn-mode.active[data-mode="commute"],
.btn-mode[data-mode="commute"]:hover {
    background: #d44242 url(images/btn-red.png) center center no-repeat;
}

.btn-mode.active[data-mode="morning"],
.btn-mode[data-mode="morning"]:hover {
    background: #e59739 url(images/btn-orange.png) center center no-repeat;
}

.btn-mode.active[data-mode="evening"],
.btn-mode[data-mode="evening"]:hover {
    background: #41757d url(images/btn-blue.png) center center no-repeat;
}

@media (max-width: 670px) {
    .btn-mode br {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .cols .col {
    	display: block;
    	width: 100%;
    	padding: 0px !important;
    	margin-bottom: 10px;
    }
}