/*
 * Animated dataviz of map images (by year) with slider and histogram.
 *
 * Adaptation of Reveal dataviz:
 * @see https://apps.revealnews.org/wine-country-fires/annual.html
 * @see https://www.revealnews.org/article/built-to-burn/
 *
 */
body {
    color: #58585a;
    margin: 0 0 0 12px;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 620px;
    min-width: 540px;
}

a {
    color: rgb(35, 115, 183);
    text-decoration: none;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

a:visited { color: rgb(27, 19, 137); }

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.chart-subtitle {
    display: block;
    font-size: 1.125rem;
    line-height: 1.2;
}

#top {
    margin: 1rem 0 0 0;
    position:relative;
    padding:0;
}

#bottom {
    margin: 1rem 0 0 0;
    position:relative;
}

#year {
    color: #a1a1a3;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    text-align: center;
}

/*
.map-data {
    position: absolute;
    top: 40px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}
*/

.map-data {
    position: absolute;
    bottom: 0;
    right: 0;
}


.map-data {
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    color: #666669;
    padding: 0.1rem 0.2rem;
    text-align: right;
}

#homes {
    display: inline-block;
    min-width: 4rem;
}

#play-btn {
    position: absolute;
    bottom: 0;
    left: 0;
}

#play-btn {
    background-color: rgba(255, 255, 255, 0.45);
    border: 2px solid #ccc;
    border-radius: 12px;
    color: rgb(35, 115, 183);
    font-size: 1.2rem;
    line-height: 2rem;
    padding: 0.5rem;
    text-align: center;
    text-shadow: none;
    text-transform: uppercase;
    width: 6rem;
}

#play-btn:hover {
    background-color: #ccc;
    color: #fff;
}

#annual-map {
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -ms-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
    margin: 0;
    position: relative;
    width: 100%;
    height: auto;
    overflow:hidden;
}

.sources {
    background-image: url('https://headwaterseconomics.org/wp-content/themes/headecon/images/headecon-logo-118x28.png');
    background-repeat: no-repeat;
    background-position: right;
    clear: both;
    color: #898989;
    font-size: 0.75rem;
    height: 28px;
    line-height: 28px;
    margin: 0;
    width: 99%;
}

.chart-stack-logo { float: right; }

img.responsive{
    width:100%;
    height:auto;
    overflow:hidden;
}


#slidershell{
  position: relative;
  width: 99%;
  margin: 0.5rem 0;
}

#slidershell input{
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    background: #cccccc;
    position:relative;
    width:100%;
    height: 17px; /* Specified height */
    outline: none; /* Remove outline */
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 17px; /* Set a specific slider handle width */
    height: 43px; /* Slider handle height */
    border-radius:5px;
    border:#ffffff 3px solid;
    background: #BFBFBF; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

#slider::-moz-range-thumb {
    width: 17px; /* Set a specific slider handle width */
    height: 43px; /* Slider handle height */
    border-radius:5px;
    border:#ffffff 3px solid;
    background: #BFBFBF; /* Green background */
    cursor: pointer; /* Cursor on hover */
}



.axis text {
    font: 10px sans-serif;
}

.axis path,
.axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}


@media (min-width: 500px) { /* 500px and up */

    #annual-map{
        height:auto;
    }
}

@media (max-width: 500px) { /* 500px and down */

}


@media (min-width: 750px) { /* 750px and up */

}

