/*---------------------------------+
 | Site: Vera Incarceration trends |
 | Part: Master stylesheet         |
 +---------------------------------*/


/* Imports
=====================================================================*/
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
@import url(/Content/styles/fonts.css);
@import url(/Content/styles/reset.css);


/* Fonts
=====================================================================*/
.action,
.county-picker *,
#filters,
h1, h2, h3, h4, h5, h6,
.highcharts-container *,
input,
.map-download,
.map-key,
.mute,
.nav-paging,
.qtip .tooltip-title,
#share,
.year-slider-wrapper {
    font-family: "Walsheim", Arial, sans-serif;
}

body, .qtip { font-family: "Sectra", Georgia, serif; }
#handle { font-family: FontAwesome; }



/* Basics
=====================================================================*/
a { color: #ef4136; text-decoration: none; }
a:hover { text-decoration: underline; }
body { font-weight: 300; line-height: 1.8; }
body, html { background: #fff; height: 100%; overflow: hidden; }
cite, em { font-style: italic; }
dl, ol, table, p, ul { margin-bottom: 1em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.3em; }
h3 { font-size: 1.35rem; font-weight: bold; line-height: 1.6; margin-bottom: 0.3em; }
h4 { font-size: 1.2rem; font-weight: bold; }
hr { background: #ddd; border: 0; clear: both; color: #ddd; height: 1px; margin: 2rem 0; }
html { font-size: 16px; }
img { max-width: 100%; }
li { margin-bottom: 0.5em; }
ol { list-style-type: decimal; margin-left: 2em; }
strong { font-weight: bold; }
ul { list-style-type: disc; margin-left: 1.5em; }


/* Layout
=====================================================================*/
#content { height: 100%; }
#main { box-sizing: border-box; float: right; position: relative; padding: 120px 40px 40px; width: 73.125%; }
#main, #overview { height: 100%; -webkit-overflow-scrolling: touch; overflow-x: hidden; overflow-y: auto; }
#main.map-slide { overflow-y: hidden; padding: 93px 0 0; }
#overview { background: #f3f3f3; box-sizing: border-box; float: left; padding: 100px 40px 40px; width: 26.875%; }


/* Content
=====================================================================*/

/* Action buttons */
.action {
    -webkit-appearance: none;
    appearance: none;
    background: #231f20;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: normal;
    display: inline-block;
    padding: 0.5em 1em;
    vertical-align: middle;
}

.action:hover { opacity: 0.7; text-decoration: none; }
.action-ghost { background: none; border: 1px solid #858585; color: #858585; }
.btn-group { list-style: none; margin-left: 0; }
.btn-group li { display: inline-block; }
#overview .action { display: block; text-align: center; }

/* Charts */
.chart { margin-bottom: 1em; }
#overview .chart { height: 400px; }
.toggle-incarceration-options {display:none;}

    /* Customize chart */
    .customize-chart p { margin-bottom: 0.5em; }
    .customize-chart ul { margin-bottom: 1.5em; }

/* Dropdowns */
.dropdown { background: #fff; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; display: inline-block; font-size: 1.125rem; padding: 0.5em 1em; vertical-align: middle; }
.dropdown .filter-types { list-style: none; margin: 0; }

.selectize-dropdown .active { background: #858585; color: #fff; }
.selectize-dropdown .active .mute{ background: #858585; color: #ddd; }
.selectize-dropdown [data-selectable], .selectize-dropdown .optgroup-header { padding: 0.5em 1em; }
.selectize-dropdown, .selectize-input, .selectize-input input { font-size: 1rem; }
.selectize-input { box-shadow: none !important; padding: 0.75em 1em; }
.selectize-input.selectize-focus { border-color: #d0d0d0 !important; }
.selectize-input:after { border: none !important; }

#header-primary .dropdown a.toggle { color: #ef4136; }

    /* County search */
    .county-search .ui-select-choices { text-align: left; }
    .county-search .ui-select-container { margin: 0 auto; }
    #county-search { display: block; overflow-x: hidden; position: absolute; text-align: left; z-index: 99999; }
    #county-search.hide { display:none !important; }
    #county-search a.county { color: #ef4136; }
    #countieslist { max-height: 200px; overflow-y: scroll; }

/* Filters */
#filters { background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); box-sizing: border-box; left: 26.875%; padding: 30px; position: absolute; top: 93px; width: 73.125%; z-index: 1000; }
#filters .close { opacity: 0.5; position: absolute; padding: 10px; right: 20px; top: 15px; }
#filters .close:hover { opacity: 1; }
#filters .filter-labels { float: right; margin: 0; width: 87%; }
#filters .filter-labels a { color: #000; display: inline-block; padding: 0.3em 0.5em; }
#filters .filter-labels a:hover { background: #dfdfdf; text-decoration: none; }
#filters .filter-labels .disabled a { color: #000; cursor: default; font-style: italic; opacity: 0.4; }
#filters .filter-labels li { display: inline-block; }
#filters .filter-labels li.current a { background: #ef4136; color: #fff; }
#filters .filter-title { font-weight: bold; float: left; width: 12%; }
#filters .filter-types { list-style: none; margin: 0; }
#filters .filter-types > li { overflow: hidden; }

/* Forms */
    /* Options */
    .options-h, .options-v { list-style: none; margin: 0; }
    .options-h li, .options-v li { background: none; margin-bottom: 0.3em; padding: 0; }
    .options-h li { display: inline; margin-right: 0.7em; white-space: nowrap; }
    .options-v li { padding-left: 25px; text-indent: -25px; }
    
    /* Placeholder */
    input.placeholder, textarea.placeholder { color: #777; font-style: italic; }
    input::-moz-placeholder, textarea::-moz-placeholder { color: #999; font-style: italic; }
    input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #999; font-style: italic; }
    input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #999; font-style: italic; }

/* Header */
#header { left: 0; position: fixed; top: 0; width: 100%; z-index: 1000; }
#header-primary { background: #231f20; float: right; width: 73.125%; }
#header-primary .action { background: none; border: 1px solid #fff; padding: 0.3em 1em; }
#header-primary .action:hover { background: #fff; color: #000; opacity: 1; }
#header-primary a { color: #fff; }
#header-primary a:hover { text-decoration: none; }
#header-primary h1 { float: left; font-size: 1.625rem; font-weight: bold; padding-top: 0.2em; }
#header-primary, #header-secondary { box-sizing: border-box; padding: 20px 40px; }
#header-primary #nav-extra .action-ghost { border-color: rgba(255, 255, 255, 0.4); }
#header-primary #nav-extra .dropdown { border: 0; }
#header-secondary { background: #f3f3f3; float: left; overflow: hidden; width: 26.875%; }

    /* Logo */
    #logo { float: left; max-width: 94px; }
    #logo-microsite { display: none; }
    
    /* Sharing */
    #share { float: right; text-align: right; }
    #share a:hover { opacity: 0.7; }
    
    #share .addthis_default_style .addthis_separator,
    #share .addthis_default_style .at4-icon,
    #share .addthis_default_style .at300b,
    #share .addthis_default_style .at300bo,
    #share .addthis_default_style .at300bs,
    #share .addthis_default_style .at300m {
        float: none;
        margin: 0;
        padding: 0.2em;
    }

/* Intro */
/*.intro { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5em; }*/

/* Legends */
.legend { list-style: none; margin-left: 0; }
.legend li { display: inline; margin-right: 1em; }

/* Logos */
.logos { font-size: 14px; list-style: none; margin-left: 0; line-height: 80px; text-align: center; }
.logos a:hover { opacity: 0.7; }
.logos img { max-height: 42px; vertical-align: middle; }
.logos img, .logos li { max-width: 130px; }
.logos li { display: inline-block; line-height: 1.2; margin: 0 12px; vertical-align: middle; }

    /* Sizes */
    .logos-2x { font-size: 18px; line-height: 130px; }
    .logos-2x img, .logos-2x li { max-width: 195px; }
    .logos-2x img { max-height: 100px; }
    .logos-3x { font-size: 22px; line-height: 100px; }
    .logos-3x img, .logos-3x li { max-width: 260px; }
    .logos-3x img { max-height: 140px; }

/* Maps */
.map { height: 100%; position: relative; }
.map-download { background: #fff; border-radius: 4px; bottom: 10px; padding: 10px; position: absolute; right: 10px; z-index: 30; }
.map-title { background: #fff; border-radius: 4px; left: 30px; padding: 15px; position: absolute; top: 100px; z-index: 10; }
    
    /* Key */
    .map-key {
        background: #fff;
        border-radius: 4px;
        color: #4c4f57;
        font-size: 0.75rem;
        line-height: 1.3;
        padding: 15px;
        position: absolute;
        right: 40px;
        top: 100px;
        width: 210px;
        z-index: 20;
    }
    
        /* Chart */
        .map-key-chart { height: 90px; margin-bottom: 10px; position: relative; }
    
            /* Axes */
            .map-key-axis-title { font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
            .map-key-axis-x { align-items: baseline; border-top: 1px solid #ddd; bottom: 0; height: 18%; padding-left: 5px; position: absolute; right: 0; }
            .map-key-axis-x, .map-key-plot { width: 80%; }
            .map-key-axis-x, .map-key-axis-y { box-sizing: border-box; display: flex; justify-content: space-between; }
            .map-key-axis-y { border-right: 1px solid #ddd; flex-direction: column; left: 0; padding-right: 5px; position: absolute; top: 0; text-align: right; width: 15%; }
            .map-key-axis-y, .map-key-plot { height: 72%; }
        
            /* Plot */
            .map-key-plot { display: flex; flex-wrap: wrap; position: absolute; right: 0; top: 0; }
            .map-key-swatch { display: block; height: 33.333%; width: 25%; }
            .map-key-swatch-high { background: #ed3935; }
            .map-key-swatch-low { background: #30a5e7; }
            .map-key-swatch-mid { background: #732b8d; }
            .map-key-swatch-level1 { opacity: 0.25; }
            .map-key-swatch-level2 { opacity: 0.5; }
            .map-key-swatch-level3 { opacity: 0.75; }
        
        /* Not available */
        .map-key-na { padding-left: 20%; }
        .map-key-na .fa { color: #cbcccd; }

    /* Shapes */
    .counties { fill: #cbcccd; }
    .county:hover, path.county.active:hover { stroke: #000; stroke-linejoin: round; stroke-width: 1.25px; }
    .county.active,.county.pinned { stroke: #000; stroke-linejoin: round; stroke-width: 2.25px; }
    .states { fill: none; stroke: #fff; stroke-linejoin: round; }
    
        /* Coloring */
        .county.high { fill: #ed3935; }
        .county.low { fill: #30a5e7; }
        .county.med { fill: #732b8d; }
        .county.level1 { fill-opacity: 0.25; }
        .county.level2 { fill-opacity: 0.5; }
        .county.level3 { fill-opacity: 0.75; }
    
    /* Slider */
    .map-slider .slider { display: inline-block; vertical-align: middle; }
    .map-slider .slider-value { font-size: 20px; font-weight: 300; }
    
    /* Tooltip */
    .qtip { background: #231f20; border: 0; border-radius: 0; color: #fff; font-size: 1rem; line-height: 1.3; max-width: none; }
    .qtip p { margin: 0 0 0.25em; }
    .qtip p:last-child { margin: 0; }
    .qtip-content { box-sizing: border-box; padding: 20px 30px 25px; text-align: center; width: 100%; }
    .qtip .qtip-tip { background: #231f20 !important; }
    .tooltip { position: relative; width: 260px; }
    .tooltip .close { color: #aaa; font-size: 20px; right: 0; position: absolute; top: 0; }
    .tooltip-filters { font-size: 0.9rem; list-style: none; margin: 0 0 0.5rem; }
    .tooltip-filters a { border-radius: 3px; display: inline-block; padding: 0.3em 0.5em; }
    .tooltip-filters a:hover { background: #dfdfdf; text-decoration: none; }
    .tooltip-filters .active, .tooltip-filters .active:hover { background: #ef4136; color: #fff; }
    .tooltip-filters li { display: inline-block; }
    .tooltip-title { border-bottom: 1px solid #ef4136; font-size: 1em; letter-spacing: 0.05em; padding-bottom: 0.5em; text-transform: uppercase; }
    .tooltip-title a { color: #fff; }
    .tooltip-title .mute { display: inline-block; white-space: nowrap; }

/* Message when empty */
#message { border: 2px dashed #ddd; color: #666; font-style: italic; display: block; padding: 30px; text-align: center; }

/* Muted text */
.mute { color: #777; font-size: 14px; font-weight: 300; }

/* Navigation */
#nav { margin-bottom: 1rem; }
.nav-paging { font-size: 1.125rem; font-weight: bold; list-style: none; margin-bottom: 1rem; overflow: hidden; text-transform: uppercase; }
.nav-paging a { background: #ef4136; box-sizing: border-box; color: #fff; display: block; padding: 0.5em 1em; text-align: center; width: 50%; }
.nav-paging a:hover { opacity: 0.8; text-decoration: none; }
.nav-paging .disabled, .nav-paging .disabled:hover { background: #fff; color: #666; cursor: default; opacity: 0.7; }
.nav-paging .nav-back { float: left; }
.nav-paging .nav-next { border-left: 1px solid #fff; float: right; }

    /* Compact */
    #nav-compact { display: none; }
    
    /* Dropdown */
    #nav .select2-container { cursor: pointer; display: block; font-size: 18px; }
    #nav .select2-container .select2-choice { background: #fff; height: auto; line-height: 38px; }
    #nav .select2-container .select2-choice .select2-arrow { background: none; border: 0; }
    #nav .select2-container .select2-choice .select2-arrow b { background-position: -3% -260%; }
    #nav .select2-container ul { margin-left: 0; }
    #nav .select2-container-active .select2-choice, #nav .select2-container-active .select2-choices, #nav .select2-drop-active { border-color: #ccc; box-shadow: none; }
    #nav .select2-results .fa { display: none; }
    #nav .select2-results li { margin: 0; }
    #nav .select2-results .select2-highlighted { background: #ef4136; }
    
    /* Extra */
    #nav-extra { float: right; text-align: right; }
    #nav-extra li { display: inline-block; margin: 0; vertical-align: middle; }
    #nav-extra .short { display: none; }
    #nav-extra ul { list-style: none; margin: 0; }
    
        /* County picker */
        #nav-extra .county-picker * { text-align: left; vertical-align: middle; }
        #nav-extra .county-picker .selectize-control[style] { width: 200px !important; }
        #nav-extra .county-picker .ui-select-highlight { vertical-align: baseline; }
    
    /* Menu */
    #menu {
        background: #ef4136;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        display: none;
        font-size: 14px;
        height: 100%;
        overflow: scroll;
        position: fixed;
        right: 0;
        top: 0;
        width: 250px;
        z-index: 1000;
    }
    
    #menu.open { display: block; }
    #menu li { margin: 0; }
    #menu li.current { background: #fff; }
    #menu li.current a, #menu li.current a strong { color: #005057; }
    #menu li.current > a { color: #000; font-weight: bold; }
    #menu ul { list-style: none; margin: 0; }
    #menu ul a { border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: #fff; display: block; padding: 0.9em 1.1em; }
    #menu ul a:active { background: transparent; }
    #menu > ul { border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 1px; }
    #menu > ul:last-child { border: 0; padding: 0; }
    #menu ul ul { border: 3px double rgba(0, 0, 0, 0.3); border-width: 3px 0; }
    #menu ul ul a { border-bottom: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
    
        /* Paging */
        #menu .nav-paging { border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin: 0; }
        #menu .nav-paging a { background: none; padding: 0.9em 1.1em; }
        #menu .nav-paging .disabled { color: #fff; opacity: 0.3; }
        #menu .nav-paging .nav-back, #menu .nav-paging .nav-next { border-radius: 0; }
        #menu .nav-paging .nav-next { border-left: 1px solid rgba(255, 255, 255, 0.2); }

/* Overview */
#overview-content { line-height: 1.4; }

/* Profiles */
.profile-primary { width: 25%; }
.profile-secondary { box-sizing: border-box; padding-left: 30px; width: 75%; }
.profile-section { border-bottom: 1px solid #ddd; display: flex; margin-bottom: 2rem; padding-bottom: 2rem; }

/* Reports */
.reports { list-style: none; margin: 1rem auto; max-width: 800px; }
.reports h4 { margin-bottom: 0.5rem; }
.reports img { border: 2px solid #ddd; }
.reports li { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.reports .report-title { width: 60%; }
.reports .report-image { width: 35%; }

/* Similar counties */
.similar-counties { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.similar-county-chart { position: relative; width: 18%; }
.similar-county-chart .close { position: absolute; right: 0; top: 0; }
.similar-county-chart .graph { height: 250px; }

/* Year slider */
rzslider { margin-top: 10px; }
rzslider .rz-ticks .tick { background: none; }
rzslider span.rz-bar { background: #e5e5e5; }
rzslider span.rz-pointer { background: #ef4136; border-radius: 0; height: 20px; top: -8px; width: 20px; }
rzslider span.rz-pointer::after, rzslider span.rz-pointer.rz-active::after { background: none !important; }
.year-slider { font-size: 1.1rem; font-weight: 300; width: 100%; }
.year-slider-container { display: inline-block; width: 80%; }
.year-slider-wrapper { background: #fff; border-radius: 0 0 4px 4px; box-sizing: border-box; left: 30px; padding: 5px 15px 15px; position: absolute; top: 57px; width: 24%; z-index: 11; }


/* Widths
=====================================================================*/

@media screen and (max-width: 1420px) {
    /* Basics */
    html { font-size: 14px }
}

@media screen and (max-width: 1250px) {
    /* Header */
    #share .addthis_button_email, #share .addthis_button_facebook, #share .addthis_button_twitter { display: none; }
}

@media screen and (max-width: 1130px) {
    /* Basics */
    h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
    
    /* Layout */
    #header-primary, #main { width: 66%; }
    #header-secondary, #overview { width: 34%; }
    #overview { padding-top: 80px; }
    
    /* Content */
        /* Filters */
        #filters { left: 34%; top: 105px; width: 66%; }
        #filters .filter-labels { width: 77%; }
        #filters .filter-title { width: 22%; }
        
        /* Header */
        #header-primary h1 { font-size: 1.2rem; padding-top: 0.5em; }
        #header-primary h1, #nav-extra { float: none; padding: 0; text-align: left; }
        
        /* Map */
        .map-title .mute { display: block; }
        
        /* Profiles */
        .profile-primary { width: 30%; }
        .profile-secondary { width: 70%; }
        
        /* Reports */
        .reports h4 { font-size: 1rem; }
}

@media screen and (max-width: 840px) {
    /* Basics */
    body { display: box; display: -webkit-flex; display: flex; box-orient: vertical; -webkit-flex-direction: column; flex-flow: column; height: 100%; overflow: auto; }
    
    /* Layout */
    #content {
        display: box;
        display: -webkit-flex;
        display: flex;
        box-orient: vertical;
        -webkit-flex-direction: column;
        flex-flow: column;
        -webkit-box-flex: 1 1 auto;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
        height: 100%;
        position: relative;
    }
    
    [ui-view="content"] { -webkit-box-flex: 1 1 auto; -webkit-flex: 1 1 auto; flex: 1 1 auto; position: relative; }
    
        /* Header */
        #header { background: #fff; border-bottom: 3px solid #ef4136; box-sizing: border-box; flex: 0 0 63px; padding: 10px 15px; position: static; }
        #header-primary { display: none; }
        #header-secondary { background: none; float: none; height: auto; padding: 0; width: 100%; }
        
        /* Overview */
        #overview { box-sizing: border-box; flex: 0 0 50px; float: none; height: auto; padding: 15px; overflow: visible; position: relative; width: 100%; z-index: 500; }
        #overview .nav-paging, #overview pageselector, #overview .ui-select-container { display: none; }
        #overview #overview-content { max-height: 30px; overflow: hidden; }
        
        
        #overview:after {
            background: -moz-linear-gradient(top, rgba(239,239,239,0) 0%, rgba(239,239,239,1) 75%, rgba(239,239,239,1) 100%);
            background: -webkit-linear-gradient(top, rgba(239,239,239,0) 0%,rgba(239,239,239,1) 75%,rgba(239,239,239,1) 100%);
            background: linear-gradient(to bottom, rgba(239,239,239,0) 0%,rgba(239,239,239,1) 75%,rgba(239,239,239,1) 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00f3f3f3', endColorstr='#f3f3f3',GradientType=0 );
            bottom: 0;
            content: "";
            height: 50%;
            left: 0;
            position: absolute;
            width: 100%;
        }
        
        #overview #handle { bottom: -10px; left: 0; position: absolute; text-align: center; width: 100%; z-index: 1000; }
        
        #overview #handle .handle-trigger:after {
            background: #f7f7f7;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
            content:"\f0d7";
            display: inline-block;
            margin: 0 auto;
            text-align: center;
            width: 100px;
        }
        
            /* Opened */
            #overview.open { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); height: 90%; position: absolute; }
            #overview.open:after { display: none; }
            #overview.open #handle .handle-trigger:after { background: #ef4136; color: #fff; content: "\f0d8"; }
            #overview.open #overview-content { max-height: 100%; overflow: auto; overflow-x: hidden; }
        
        /* Main */
        #main { float: none; padding: 15px; position: absolute; width: 100%; }
    
    /* Content */
        /* Filters */
        #filters { background: #f3f3f3; font-size: 16px; height: calc(100% + 120px); left: 0; overflow-x: hidden; overflow-y: auto; padding: 15px; top: -120px; width: 100%; }
        #filters .close { font-size: 20px; right: 0; top: 0; }
        #filters .filter-labels { float: none; margin-bottom: 1em; width: auto; }
        #filters .filter-labels a { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0; display: block; padding: 0.7em 1em; }
        #filters .filter-labels li { display: block; margin: 0; }
        #filters .filter-title { float: none; margin-bottom: 0.3em; width: auto; }
        
        /* Header */
        #header-secondary {
            box-align: center;
            box-pack: justify;
            -webkit-align-items: center;
            align-items: center;
            display: box;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-justify-content: space-between;
            justify-content: space-between;
        }
        
        #share { display: none; }
        
            /* Logo */
            #logo { float: none; }
            #logo img { max-width: 120px; }
            #logo-main { display: none; }
            #logo-microsite { display: inline-block; }
            
            /* Navigation */
                /* Compact */
                #nav-compact { display: block; font-size: 25px; text-align: right; width: 50%; }
                #nav-compact a { padding: 0.3em 0.1em; }
                #nav-compact li { display: inline; }
                #nav-compact ul { list-style: none; margin: 0; }
        
        /* Map */
        #main.map-slide { display: box; display: -webkit-flex; display: flex; box-orient: vertical; -webkit-flex-direction: column; flex-flow: column; padding: 0; }
        .map-title { border-bottom: 1px solid #ddd; border-radius: 0; flex: 0 0 auto; padding: 15px; position: static; z-index: 200; }
            
            /* Controls */
            #svg-pan-zoom-controls { transform: translate(15px, 15px) scale(0.75); }
            
            /* County picker */
            .county-picker .selectize-control[style] { width: 100% !important; }
            
            #responsive-county-picker {
                background: #fff;
                box-sizing: border-box;
                border-bottom: 1px solid #ddd;
                left: 0;
                padding: 10px 15px;
                position: absolute;
                top: 62px;
                z-index: 1000;
                width: 100%;
            }
            
            /* Key */
            .map-key { bottom: 15px; height: 30px; left: 15px; right: auto; padding: 1px; top: auto; width: 30px; z-index: 100; }
            .map-key-plot { height: 100%; width: 100%; }
            .map-key-axis-x, .map-key-axis-y, .map-key-na { display: none; }
            .map-key-chart { height: 30px; }
            
                /* Opened */
                .map-key.open { box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); height: auto; padding: 15px; width: 250px; }
                .map-key.open .map-key-axis-x, .map-key.open .map-key-axis-y { display: flex; }
                .map-key.open .map-key-chart { height: 90px; }
                .map-key.open .map-key-na { display: block; }
                .map-key.open .map-key-plot { height: 72%; width: 80%; }
            
            /*
            .map-key .key-label, .map-key .key-na, .map-key .key-row-headers { display: none; }
            .map-key .key-swatch { height: 10px; }
            .map-key .key-swatches { width: 100%; }*/
            
                /* Opened */
                /*
                .map-key.open .key-label, .map-key.open .key-na, .map-key.open .key-row-headers { display: block; }
                .map-key.open .key-swatch { height: 1.5rem; }
                .map-key.open .key-swatches { width: 60%; }*/
            
            /* Popup on click */
            .qtip[style] { border: 0; height: 100%; max-width: none; left: 0 !important; overflow: auto; overflow-x: hidden; top: 0 !important; width: 100% !important; }
            .qtip h3 { font-size: 1.5rem; }
            .qtip-tip { display: none !important; }
            .tooltip { width: 100%; }
            
            /* Year slider */
            .year-slider-container { width: 60%; }
            .year-slider-wrapper { left: auto; padding: 10px; right: 15px; text-align: right; top: 15px; width: 50%; }
        
        /* Profiles */
        .profile-section { display: block; }
        .profile-primary, .profile-secondary { width: auto; }
        
        /* Similar counties */
        .similar-county-chart { width: 48%; }

        /*Added by Rich*/
        .hide-mobile{display:none;}

        .toggle-incarceration-options {display:block;}
}

@media screen and (max-width: 500px) {
    /* Navigation */
    #nav-extra a { display: block; text-align: center; width: 100%; }
    #nav-extra .dropdown { display: block; width: 100%; }
    #nav-extra li { display: block; margin-bottom: 5px; }
}










.filter-label { font-weight: bold; }
.filter.active { color: #444; }
.filter { display:inline-block; }

.axis path, .axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.x.axis path {
  display: none;
}

.line {
  fill: none;
  stroke: steelblue;
  stroke-width: 1.5px;
}

.filters {
    height:10%;
}

#map {
    width:100%;
    height:inherit;
}

.r1-p1 { fill:rgb(237, 229, 227); }
.r1-p2 { fill:rgb(203, 213, 215); }
.r1-p3 { fill:rgb(136, 174, 197); }
.r2-p1 { fill:rgb(227, 189, 178); }
.r2-p2 { fill:rgb(196, 171, 166); }
.r2-p3 { fill:rgb(127, 133, 145); }
.r3-p1 { fill:rgb(217, 127, 129); }
.r3-p2 { fill:rgb(182, 109, 118); }
.r3-p3 { fill:rgb(114, 70, 97); }

.hide {display: none;}

.county-profile-incarceration-customize{width:100%}
.ui-select-opt-no-group{padding-left:0px;}
.ui-select-choices .ui-select-choices-row { margin: 0; }
.county-profile-incarceration-customize .select2-results .select2-highlighted{background:inherit;color:inherit;}

.footer{font-size:11px;}