
#county-map-graphic {
    max-width: 800px;
    margin: 25px auto;
    margin-bottom: 75px;
    font-family: 'Unify Sans', sans-serif;
}

#county-map-graphic .hed {
    font-weight: bold;
    color: #434343;
}

#county-map-graphic .dek {
    margin-bottom: 25px;
    color: #434343;
    font-size: 16px;
}

#county-map-graphic .footnote {
    color: #888;
    font-size: 12px;
    text-align: right;
    margin-top: 25px;
    max-width: 500px;
    float: right;
}

#county-map {
    height: 500px;
    position: relative;
    color: #434343;
}

#county-map .hidden {
    display: none;
}


#county-map .map--labels {
    pointer-events: none;
    transition: opacity 0.15s;
}

#county-map .invisible {
    opacity: 0;
}

#county-map .map {
    width: 100%;
    height: 100%;
}

#county-map .county {
    fill: #ccc;
    stroke: #fff;
    stroke-width: 0.5px;
    -webkit-transition: fill 0.2s;
    transition: fill 0.2s;
}

#county-map .c5 { fill: #fef0d9; }
#county-map .c4 { fill: #fdcc8a; }
#county-map .c3 { fill: #fc8d59; }
#county-map .c2 { fill: #e34a33; }
#county-map .c1 { fill: #b30000; }
#county-map .c-null { fill: #ccc; }

#county-map .county:hover {
    stroke: #fff;
    stroke-width: 3px;
}

#county-map .legend .label {
    font-size: 14px;
    fill: #434343;
    font-weight: 500;
}

#county-map .legend .legendTitle {
    fill: #434343;
    font-size: 14px;
    font-weight: bold;
}

#county-map .legend .swatch {
    stroke: #ccc;
    stroke-width: 0.5px;
}

#county-map .tooltip--graphic {
    position: absolute;
    background-color: #fff;
    padding: 10px 25px;
    border: 1px solid #f3f3f3;
    border-radius: 1px;
    box-shadow: 1px 1px 1px 1px #ccc;
    max-width: 200px;
    z-index:1;
}

#county-map .tooltip--graphic .county-name {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 5px;
}

#county-map .tooltip--graphic .value {
    font-weight: bold;
    font-size: 25px;
}

#county-map .metric-selector {
    position: absolute;
    top: 0;
    left: 1%;
}

#county-map .metric-selector .label--metric {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 4px;
}

#county-map .metric-selector select {
    font-size: 16px;
}

#county-map .label--map {
    fill: #333;
    font-weight: bold;
    font-size: 16px;
    text-shadow: -1px 0 0px #fff, 
                    0 1px 0px #fff,
                    1px 0 0px #fff, 
                    0 -1px 0px #fff;
    text-shadow: -1px 0 0px rgba(255, 255, 255, 0.5), 
                    0 1px 0px rgba(255, 255, 255, 0.5),
                    1px 0 0px rgba(255, 255, 255, 0.5), 
                    0 -1px 0px rgba(255, 255, 255, 0.5);
}

#county-map line {
    stroke: #333;
    stroke-width: 1.5px;
}

@media (max-width: 770px) {
    #county-map {
        height: 650px;
    }
}
