
:root {
    --chronblue: #3361d1;
    --chronmuteblue: rgb(103, 128, 153);
    --otherblue: #447ba3;
    --chronorange: #FF7400;
    --chronbluehover: #6688dc;
    --chronbluebuttonhover: #65a2cd;
    --chrongreen: #00DC7A;
    --chronnavy: #0f2c55;
    --chronindigo: #0a073e;
    --chronred: #ed0000;
    --chronskyyblue: #04a7ff;
    --chronlightgreen: rgb(115, 183, 110);
    --chronpink: rgb(227, 131, 119);
    --chrongold: #f8c100;
    --fill: #003757;
    --fillopacity: rgba(0, 55, 87, 0.8);
    --bgopacity: rgba(240, 240, 245, 1);
    --disabled: #adadad;
    --font: "Roboto", Arial, sans-serif;

}
.search-container {
    margin-top: 12px;
    position: relative;
    font-family: "Source Sans Pro",sans-serif;
    margin-bottom:10px;
    float: right;
}

#svg-container {    border-top: 1px solid #d3d3d3;
    margin-top: 5px;}
.search-container p {
    max-width:600px;
    margin:0 auto;
    font-size:20px;
    font-family: "Source Sans Pro",sans-serif;
    color:#000;
    text-transform:uppercase;
    }
    
.search-container .input-holder {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-container .search-results {position: absolute;
    top: 100%;
    width: 100%;
    background-color: rgb(250,250,250);
    box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
    z-index: -2;
    border-radius: 4px;
    display: none;
 }
 button {
    background-color: var(--chronblue);
    color: #FFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--chronblue);
    margin: 0 auto;
    font-family: var(--font);
    font-size: 16px;
}  
button:hover {
    background-color: #FFF;
    border: 2px solid var(--chronblue);
    color: var(--chronblue);
    cursor: pointer;
}
.search-container .search-results a .name {font-size: 14px; font-weight: normal; line-height: 16px; float: none; padding-top: 2px; display: block;}
.search-container .search-results a:hover {text-decoration: none; background-color:var(--chronblue); color: white;}
.search-container .search-results p { font-family: var(--font); text-align: center; color: #3f3f3f; font-weight: normal; font-size: 14px; line-height: 18px; padding: 8px;}
        
.search-container #search-group {width:100%;text-align:center;}
.search-container #search-group div {width:-webkit-fill-available;}
.search-container #search-group p {margin-right:10px;}
.search-container #search-group p, .search-container #search-group .input-holder {display:inline-block;} 
.search-container .opendrawer .search-results {display: block;}
.search-container .search-results a { border-bottom: 2px solid white;
    clear: both;
    display: block;
    padding: 0;
    padding-left: 17px;
    height: auto;
    padding-top: 6px;
    text-align: left;
    cursor: pointer;
    font-family: "Source Sans Pro",sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color:rgba(0, 0, 0, 0.6);
        margin: 0;
        min-height: 30px;}
        
.search-container p {
            max-width:600px;
            margin:0 auto;
            font-size:20px;
            font-family:var(--font);
            color:var(--fill);
            text-transform:uppercase;
}
        
.search-container .input-holder {
            position: relative;
            max-width: 600px;
            margin: 0 auto;
}
        
.search-container .search-results {
            max-height: 200px;
            overflow-y: auto;
}
        
        
button.button-exit {
            position: absolute;
            display: inline-block;
            right: -6px;
            font-size: 12px;
            top: 3px;
            float: left;
            font-family: inherit;
            line-height: 1;
            padding: 0px;
            width: 36px;
            height: 36px;
            left: calc(100% - 42px);
            font-weight: 700;
            border: none;
            background-color: transparent;
            color: #000;
            transition:background-color 400ms ease-out;
            -webkit-transition: background-color 400ms ease-out;
            -moz-transition: background-color 400ms ease-out;
            -ms-transition: background-color 400ms ease-out;
            -o-transition: background-color 400ms ease-out;
}

.filter-close {
    font-size: 12px;
    position: relative;
    display: inline-block;
    top: 1px;
    float: right;
    font-family: inherit;
    padding: 0px;
    padding-left: 10px;
    font-weight: 700;}
        
button:hover {
          background-color:#FFF;
          border:2px solid var(--chronblue);color:var(--chronblue);
          cursor:pointer;}
        
button.button-exit:hover, .filter-close:hover {
          background-color:transparent;
          border: none;
}
        
button.button-exit.disabled {
          opacity: 0;
          background-color:transparent;
            border-color:transparent;
            color: #000;
}
        
button.disabled {
            background-color:var(--disabled);
            border-color:var(--disabled);
            color: #FFF;
        
 }
button.disabled:hover{background-color:var(--disabled);cursor:default;color: #FFF;}
button.button-exit.disabled:hover {background-color:transparent;color: #000;}
.search-container.opendrawer .search-results {display: block;z-index: 200;}
        
                
.search-container input {
        display: block;
        width: 300px;
        padding: 0.5em 0.5em 0.5em 22px;
        font-size: 16px;
        border: 1px solid #d3d3d3;
        margin: 0 0 0.2em 0;
        box-sizing: border-box;
        background: url(https://chronicle.s3.amazonaws.com/DI/Interactives/nacubo_2018/assets/img/header_icon_search.gif) no-repeat scroll 5px 13px transparent;
        border-radius: 4px;
        font-family: "Source Sans Pro",sans-serif;
}
        
.search {
    display: inline-block;
    background: url(https://chronicle.s3.amazonaws.com/DI/Interactives/nacubo_2018/assets/img/header_icon_search.gif) no-repeat scroll 6px 5px  transparent;
    margin-left: 2px;
    height: 24px;
    min-width: 214px;
    padding: 0 0 0px 22px;
    font-family: var(--font);
    font-size: 12px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    float:right;
    margin-top: 20px;
}

#bees-container, #lines-container {padding: 0px 10px;}
#bees-container p {
    margin-bottom: 5px;
}
.intro-container {
    margin-bottom: 20px;
}
.nav {
    font-size: 30px;
    font-family: var(--font);
    font-weight: 500;
    margin: 20px 0px 10px 0px;
    text-align: left;

}

/*.nav p {
    font-size: 16px;
    width: fit-content;
    display: inline-block;
    margin-right: 10px;
}*/

.nav .nav-group {
    display: inline-block;
    color: #000;
    transition: color 0.5s;
    width: 300px;
    max-width: 28%;
    font-size: 30px;
    text-align: center;
    background-color: rgb(205,215,242);
}
.nav .nav-group.active {
    color: #FFF;
    background-color: rgb(132,157,221)
}
.nav .nav-group.active:hover {cursor:default;color: #FFF;background-color: rgb(132,157,221)}
.nav .nav-group:hover {
    cursor:pointer;
    color: var(--chronbluehover);
}
.kicker {
    font-size: 18px;
    font-weight: 300;
    font-family: var(--font);
    text-align: left;
    color: rgb(100, 100, 100);
}
.filler {
    width: 100%;
    background-color: #d5d5d5;
    height: 300px;
}
#interactive-container h1 {
    text-align: center;
    margin-top: 0px;
    font-family:var(--font);
    line-height: 1.2;
    margin-bottom: 10px;
    font-size: 20px;
    padding: 10px 5px;
    background-color:  #d6dff5;
    color: #000;
}

#interactive-container h2 {
    font-size: 24px;
    text-align: left;
    font-family:var(--font);
    line-height: 1.2;
    margin-bottom: 10px;
}

#interactive-container p {
    text-align:left;
    margin-top: 0px;
}

#interactive-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* beesswarm */
#bees-container {
    text-align: center;
    margin-top: 40px;

}

.circle:hover {cursor:pointer;}
.circle.selected {stroke:#f8c100;stroke-width:3px;}
.tooltip {
    position:absolute;
    font-family: var(--font);
    background-color: rgba(255,255,255,0.95);
    max-width: 250px;
    border: 1px solid #d3d3d3;
    padding: 10px;
    line-height: 1.0;

}

.tooltip p {
    margin: 10px 0px 5px 0px;
}

.tooltip h4 {
    font-size: 14px;
    text-align: left;
    margin: 0px;
    margin-bottom: 2px;
}
.tooltip h5 {
    font-size: 12px;
    padding: 0px;
    font-weight: 500;
    margin: 0px;
    margin-bottom: 5px;
    text-align: left;
}

.tooltip {
    font-size: 12px;
    margin-top: 0px;
    text-align: left;
}
.tooltip table {margin: 0px; padding: 0px;border: 0px;}
.tooltip td:first-of-type {width: 55%;}
.tooltip tr:first-of-type{vertical-align: bottom;font-weight: 700;}
.tooltip tr:first-of-type {padding-right: 10px;}
/* lines */

/* axis */
.axis--y .domain {display: none;}
.axis--x .domain {stroke-width: 0.7;}
.axis--y line {stroke:rgb(231, 231, 231);}
.axis text {font-size: 8px;}



/* Style for lines */
#lines {min-height:232px;text-align:center;}
#lines > div { display: inline-block;max-width:155px;margin-right:10px;margin-bottom:10px; }

    #lines .selected .line-label::before{
       content: '';
       display: inline-block;
       margin-right: 3px;
       width: 10px;
       height: 10px;
       -moz-border-radius: 7.5px;
       -webkit-border-radius: 7.5px;
       border-radius: 7.5px;
       background-color: #f8c100;
    }
#lines .line-label {margin-top:0px;margin-bottom:5px;font-family:var(--font);font-size:14px;line-height:1.1;text-align:center;font-weight:800;}
#lines .institution-label {font-family:var(--font);line-height:1.1;font-size:14px;text-align:center;font-weight:400;padding:0px;margin:0px;}
#lines .institution-label span {color:var(--chronblue);cursor:pointer;font-weight:700;}
.lines.solid{stroke:solid;
 }
 
.lines.dashed{stroke-dasharray: 5,5; }
.bar-name {display:none;}
.ban-bg path {
    stroke: rgb(0,0,0,0);
    fill-opacity:0.2;
    fill:rgb(210,210,210)
  }

  .ban-bg:not(.above):not(.anomaly) path {
    stroke-dasharray: 1,3;
  }



.annotation-note-title, text.title {
    font-weight: bold;
} 
.line-Idaho .ban-bg{ display:none;

}

.ban-label-end {display:none;}
.line-Texas .ban-label-end {display:block;}

.ban-label {
    font-size:12px;
    line-height:1;
}

.hover-label {
    font-family:var(--font);
    font-size:12px;
}

.hover-text {
    font-family:var(--font);
    font-size:12px;
}

.hover-population.hover-text {
    fill:#00DC7A;
    font-weight:700;
}
.hover-population.hover-dot {
    stroke:#00DC7A;
    fill:#00DC7A;
}
.hover-enrollment.hover-text {
    /**fill:var(--chronorange);**/
    font-weight:700;
    
}
.hover-enrollment.hover-dot {
    /**stroke:var(--chronorange);
    fill:var(--chronorange);**/
}
svg .annotation.rect text {
    fill: #000;
    font-size: .6em;
    text-transform: uppercase;
}

svg text {
    font-family:var(--font);
}

@media(max-width:900px) {
    #lines {min-height:464px;}
  }
  @media (max-width:550px) {
    #lines {text-align:center;}
  }

/* Styles for legend*/
.legend {text-align:center;margin:20px 0px 0px 0px;line-height:1.2;display: inline-block;float: left;}
.mobile {
    display: none;
}
div.legend-color {
  width:15px;
  height:15px;
  border-radius: 100px;
  margin-right:5px;
  display:inline-block;
}
.plan1.legend-color {background-color:var(--chronorange);stroke-dasharray: 5,5;}
.plan2.legend-color {background-color:#00DC7A}
#legends2 {display:none;margin:2px 0px 0px 0px;float: left;text-align: left;}

.legend-entry {display:inline-block;margin-right:10px;}
.legend-entry div {display: inline-block;  margin-right:5px;}
.legend-entry:nth-last-of-type() {margin-right:0px;}
.legend-entry img {width:20px;display: inline-block;}
.legend-text {display:inline-block;font-family:var(--font);font-size:16px;margin-bottom:0px;font-weight:400!important;;}

.graph-container p {
    font-weight:700;
    text-align:left;
    font-size:16px;
    line-height:1.1;
}

/* Styles for control-container*/
.toggle-container {
    text-align: right;
    margin-right: 0px;
    font-family: var(--font);
    width: fit-content;
    display: inline-block;
}

.toggle-container p {
    color: #000000;
    position: relative;
    display: inline-block;
    font-weight: 500;
    font-size: 16px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 25px;
    margin: 0px 3px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 25px;
    margin: 0px 3px;
    top: 4px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--chronblue);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--chronblue);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
.dropdown-open .dd-icon {
    border-right: 6px solid transparent;
    border-top: 8px solid white;
    border-left: 6px solid transparent;
    display: block;
    position: absolute;
    left: 8px;
    top: 14px;
    height: 0;
    width: 0;
}
#lines-container {margin-top: 40px;}
#lines-container p {
    margin: 5px 0px;

}
#lines-container .controls-container {margin-bottom:10px;}
.controls-container {text-align: right;margin-bottom:10px ;}
.controls-container .filter-container {  
    margin-top: 10px;  
    text-align: left;
    }
    .controls-container .filter-container p {font-size:12px;font-weight: 700;display: inline-block;padding-right: 5px;font-family:var(--font);}
.controls-container .filter {display:inline-block;margin-right: 10px;background-color:var(--chronblue);color: #FFF;text-align: center;padding: 5px 15px;font-size: 16px;
    border-radius: 25px;font-family: var(--font);}
.controls-container .filter:hover {cursor:pointer;}
.controls-container .filter.inactive {background-color:rgba(200,200,200,0.9)}
.controls-container .filter.inactive .filter-close {opacity: 0;}
.dropdown-container {
    width:fit-content;
    display:inline-block;
}


.dropdown-container:first-of-type {
    margin-right:20px;
    float: left;
}

.dropdown-label,.nav p {
    display:inline-block;
    margin-right:10px;
    font-weight:500;
    font-size: 16px;
    line-height: 1.1;
    font-family:var(--font);
}
.dd-icon {
    border-bottom: 6px solid transparent;
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    display: block;
    position: absolute;
    left: 9px;
    top: 12px;
    height: 0;
    width: 0;
}

.dropdown {
    display: inline-block;
    width:fit-content;
    position: relative;
    height: 33px;
    padding-top: 5px;
    border-radius:4px;
    margin-right: 10px;
    font-family: var(--font);
    text-align: left;
    color: white;
    min-width: 150px;
    background-color:var(--chronblue);
    -webkit-transition: background-color 400ms ease-out;
    -moz-transition: background-color 400ms ease-out;
    -ms-transition: background-color 400ms ease-out;
    -o-transition: background-color 400ms ease-out;
    transition: background-color 400ms ease-out; 
}

.dropdown p {
    color:#000;
    padding-left: 17px;
    font-size: 13px;
    font-family: var(--font);
    font-weight: 800;
}
.dropdown.institution-dropdown {
    min-width: 220px;
    margin-left: 5px;
}

.dropdown_list {
    max-height: 160px;
    width: 100%;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    display: none;
    list-style-type: none;
    z-index: 10;
    padding: 2px 0;
    margin-top: 0px;
    margin-left: 0px;
    background-color: rgb(245,245,245);
    box-shadow: 1px 2px 4px rgb(0 0 0 / 10%);
    border-radius: 4px;




}

.dropdown_list li a {
    color:#000;
    display: block;
    font-size: 15px;
    padding: 10px 10px;
    text-decoration: none;

    border-bottom: 2px solid white;
    clear: both;
    display: block;
    padding: 0;
    padding-left: 17px;
    height: auto;
    padding-top: 6px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    min-height: 30px;

    
}


.dropdown-open .dropdown_list {
    display: block;
}

.dropdown > a {
    color: white;
    font-size:18px;
    padding: 1px 10px 4px 25px;
    text-decoration:none;
    display: block;
    width: 100%;
    line-height: 23px;

}

.dropdown-open  {
    background-color: var(--chronbluehover);
    text-decoration: none;
}

.ec_filter > a:hover, .map_filter > a:hover {
    background-color: var(--chronbluehover);
    text-decoration: none;
}

.dropdown .drop_active a{
    color:var(--chronblue);
    font-weight:700;
}

.dropdown .drop_active a, .dropdown .drop_active a:hover {
    background-color: transparent;
}
.dropdown .drop_inactive a {color:var(--disabled)}
.dropdown .drop_inactive a:hover {
    cursor:none;color:var(--disabled);background-color: transparent;
}
.dropdown .drop_active a:hover {
    cursor:none;
    color:var(--chronblue);
}

.dropdown li a:hover {
    text-decoration: none;
    background-color: var(--chronbluehover);
    color: #FFF;
}



.dropdown.control-dropdown {display: none;}

@media (max-width:1100px) {
        .legend-text, .toggle-container p,.controls-container .filter,.dropdown > a,.search-container input {
        font-size: 14px;
    }

      input:checked + .slider:before {
        -webkit-transform: translateX(20px);
        -ms-transform: translateX(20px);
        transform: translateX(20px);
    }

    .switch {
        width: 45px;
    }
  

}
@media (max-width:1000px) {
    .dropdown-label, .nav p {
        font-size: 12px;
        max-width: 93px;
        margin-right: 0px;
        text-align: right;
        /* padding-top: 16px; */
        vertical-align: middle;
    }
    .nav p {margin-right: 5px;padding-top: 17px;}

    .dropdown-container:first-of-type {
        margin-right:0px;
    }
    .nav .nav-group {
        font-size: 26px;
    }
    .legend {
        margin: 5px 0px;
    }



}

@media(max-width:930px) {
    .toggle-container {
        text-align: center;
        width: 100%;
    }
    #legends2 {text-align:center;width: 100%;}
}

@media (max-width:850px) {
    .dropdown-container:first-of-type {
        margin-bottom:10px;
    }
    .nav .nav-group {
        font-size: 20px;
        padding: 5px 10px;
    }


    .dropdown-container {
       text-align:center;
    }
    .toggle-container {
        margin-top: 10px;
    }
    .dropdown-container:first-of-type {
        float: none;
    }
    .controls-container {text-align: left;}

}
@media (max-width:750px) {
    .dropdown-container:first-of-type {
        margin-bottom:10px;
    }

    .dropdown-container {
       text-align:center;
    }
.nav .nav-group {
        font-size: 20px;
    }

    .legend-text {
        font-size: 14px;
        margin: 0px;
    }
        div.legend-color {
        width: 10px;
        height: 10px;
    }
    .legend-entry img {
        width: 14px;
    }

    .legend {
        line-height: 1.0   ;
    }
    #svg-container {
        border-top: none;
    }
    .search-container input,.search-container {
        width:100%;
    }
    .search-container input {
        padding: 0.3em 0.3em 0.3em 22px;
        background:url(https://chronicle.s3.amazonaws.com/DI/Interactives/nacubo_2018/assets/img/header_icon_search.gif) no-repeat scroll 5px 8px transparent;
    }
    .search-container {
        margin-top: 0px;
    }

}
@media (max-width:700px) {
    .nav .nav-group {
        font-size: 18px;
    }

    .tooltip {
        max-width: 215px;
    }
}

@media (max-width:650px) {
    .nav .nav-group {
        font-size: 16px;
    }
    
    .tooltip tr {
        display: table-cell;
    }
    .tooltip td {
        display: table;
        margin-bottom: 5px;
    }
    .tooltip td:first-of-type {width: fit-content;}
}

@media (max-width:600px) {
    .tooltip {
        position: relative;
        left: 0px!important;
        top:0px!important;
        width: 90%;
        max-width: none;
        margin: 0 auto;
    }

    .tooltip h5 {
        margin-bottom: 10px;

    }
    .tooltip td:first-of-type {
        width: 55%;
    }

    .legend {
        text-align: left;
    }

    .tooltip tr {
        display: table-row;
    }
    .tooltip td {
        display: table-cell;
    }
    .tooltip td:first-of-type {width: fit-content;}
}

@media (max-width:580px) {
    .nav .nav-group {
        font-size: 14px;
    }
    #lines > div {
        max-width: 107px;
    }

}
@media (max-width:525px) {
    #interactive-container .subhed {
        line-height: 1.2;
        font-size:18px;
    }
    .nav .nav-group {
        font-size: 16px;
        max-width: 32%;
        height: 50px;
    }
    .nav p {display: block;padding-top: 0px;margin: 0px;}
    .dropdown-label:first-of-type{display: block;text-align: left;}
}
@media (max-width:500px) {
    p.legend-text {
        max-width:90%;
        font-size:14px!important;
    }
    .dropdown.institution-dropdown {
        min-width: 203px;
    }

    .toggle-container {
        text-align: center;
    }

    .legend-entry:nth-child(2) {
        margin-top:10px;
    }
    .desktop{display: none;}
    .mobile {display: inline-block;}

    .dropdown-label {margin-bottom: 5px;}
    .nav .nav-group {
        height: 60px;
        line-height: 1.2;
        vertical-align: middle;
        max-width: 31%;
    }

    .controls-container .filter {
        margin-right: 0px;
        padding: 3px 7px;
    }
    .filter-close {
        padding-left: 6px;
    }
    .toggle-container p {
        font-size: 12px;
    }
    .slider:before {
           height: 16px;
    width: 16px;
    left: 3px;
    }
        .switch {
        width: 45px;
            height: 22px;
    }
        #lines .line-label {
        font-size: 12px;
    }
}
@media (max-width:490px) {
    .institution-dropdown.dropdown-label {
        display: none;
    }
    .dropdown,.dropdown.institution-dropdown {
        display: block;
        margin-left: 0px;
        margin-bottom: 3px;
    }

}

@media (max-width:400px) {
    .dropdown-label {
        max-width:none;
    }

    #line-tooltip {
        max-width:175px;
    }

    #map-container svg text {
        font-size:14px;
    }

}

@media (max-width:400px) {
    .nav .nav-group {
                max-width: 100%;
        height: fit-content;
        padding: 10px 5px;
        margin: 0px;
    }
}

@media (max-width:385px) {
    .hover-text {font-size:10px;}
    #lines > div {max-width: 97px;}
    .axis text {font-size:7px;}
    #lines > div {margin-right: 6px;}
}