svg, text, body {
	font-family: Lato;
}

body {
    color: #353535;
    margin: 0;
    padding: 0;
    font-size: 100%;
    line-height: 1.5;
}

a {
    color: #1696d2;
    text-decoration: none;
}

a:hover {
    color: #1696d2;
}

strong {
    font-weight: bold;
}

.container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.graphic {
    width: 100%;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0;
    margin-bottom: 0.3em;
}

.chart-subtitle {
    font-size: 16px;
    margin: 0;
    margin-bottom: 1.2em;
}

.chart-source {
    font-size: 0.6875rem;
    margin: 0;
    margin-top: 1em;
}

.chart-note {
    font-size: 0.6875rem;
    margin: 0;
    margin-bottom: 1em;
}

.hidden {
    display: none;
}

/***************** CUSTOM STYLES ***********************/

nav > ul {
    list-style-type: none;
    padding-left: 0;
    text-align: center;
}

li.nav-item {
    border-bottom: 2px solid #FFFFFF;
    color: #696969;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-right: 4%;
    padding-bottom: 3px;
}

li.nav-item:last-of-type {
    margin-right: 0;
}

li.nav-item.selected {
    border-bottom: 2px solid #FDBF11;
    color: #353535;
}

#county-lookup-button {
  appearance: none;
  border: 1px solid #d2d2d2;
  background: url(../img/arrow.png) 98% / 15% no-repeat #ffffff;
  background-size: auto;
  border-radius: 0;
  box-sizing: border-box;
  color: #353535;
  cursor: pointer;
  display: inline-block;
  font-family: Lato;
  font-size: 18px;
  height: 44px;
  font-family: Lato;
  font-size: 18px;
  left: calc(100% - 400px);
  margin: 0;
  position: relative;
  top: 20px;
  width: 400px;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#maine-measures-dropdown-button {
  appearance: none;
  border: 1px solid #d2d2d2;
  background: url(../img/arrow.png) 98% / 15% no-repeat #ffffff;
  background-size: auto;
  border-radius: 0;
  box-sizing: border-box;
  color: #353535;
  cursor: pointer;
  display: inline-block;
  font-family: Lato;
  font-size: 18px;
  margin: 20px 0 10px 0;
/*  width: 100% !important;*/
  -webkit-appearance: none;
  -moz-appearance: none;
}

#maine-measures-dropdown-button.ui-selectmenu-button.ui-button {
  white-space: normal !important;
}

#maine-measures-dropdown-menu {
  width: 600px;
}



.state-downloads {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    top: -30px;
    width: fit-content;
}

div.tooltip {
    position: absolute;
    text-align: left;
    width: fit-content;

    padding: 2px 4px;

    background: #ffffff;
    border: 0px;
    border-radius: 2px;
    pointer-events: none;
}

div.maine-tooltip {
    position: absolute;
    text-align: left;
    width: fit-content;

    padding: 2px 4px;

    background: #ffffff;
    border: 0px;
    border-radius: 2px;
    pointer-events: none;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
  background: #1696d2 !important;
  border: 1px solid #1696d2 !important;
}
.ui-autocomplete-input {
  padding-left:  12px;
}

.ui-selectmenu-menu .ui-menu {
  max-height: 500px;
  overflow: scroll !important;
/*  width: 100%;*/
}

.ui-menu .ui-menu-item-wrapper {
  color:  #353535;
  font-family: Lato;
  font-size: 18px;
  padding: 7px 12px !important;
/*  width: 400px;*/
}



/*.graphic-wrapper > svg {
  display: block;
  margin: 0 auto;
}*/

/***************** GENERAL CHART STYLES ***********************/

.graphic {
    position: relative;
}

.graphic text {
    font-size: 0.75rem;
}

.graphic-wrapper {
    position: relative;
}

.zero-line {
    stroke: #000;
    stroke-width: 2px;
}

/******************* BAR CHART STYLES *********************/

.bar {
    fill: #1696d2;
}

/******************* AREA CHART STYLES ********************/

.area {
    fill: #1696d2;
}

/******************** LINE CHART STYLES *******************/

.line {
    fill: none;
    stroke-width: 2px;
}

/******************** DOT PLOT STYLES *********************/

.dotPlot-line {
    stroke: #696969;
    stroke-width: 2px;
}

.dotPlot-label {
    text-anchor: end;
}

/******************** SCATTERPLOT STYLES ******************/

.dot {
    fill: #1696d2;
    stroke: #fff;
    stroke-width: 1px;
}

/******************** AXES STYLES *************************/

.axis-title {
    font-size: 0.75rem;
    font-style: italic;
    margin: 1em 0;
}

.axis line {
    stroke: #dedddd;
    stroke-width: 1px;
}

.x.axis line {
    stroke: #000;
}

.barChart.x.axis line {
    stroke: #dedddd;
}

.scatterplot.x.axis line,
.scatterplot.y.axis line {
    stroke: #000;
}

.gridlines line {
    stroke: #dedddd;
}

ul.labels {
    font-size: 0.75rem;
    margin: 0;
    padding: 0;
    position: absolute;
    list-style-type: none;
}

li.label {
    text-align: right;
}

text.in {
    fill: #fff;
}

/********************* MAP STYLES *********************/

.state {
    fill: #1696d2;
    stroke: #fff;
    stroke-width: 1px;
}

.stateOutline {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5px;
}

.county, .wardOutline {
    fill: #e5e5e5;
    stroke: #ffffff;
    stroke-width: 0.5px;
}

.maine-county {
  stroke:  #ffffff;
  stroke-width:  0.5px;
}

.factsheeted {
  /*fill:  #1696d2;*/
}

.hovered {
  fill: #0a4c6a;
}

.stateLabel {
    text-anchor: middle;
    fill: #fff;
    stroke: none;
}

/********************* LEGEND STYLES ******************/

ul.key {
    list-style-type: none;
    padding: 0;
}

li.key-item {
    display: inline-block;
    margin-right: 20px;
}

li.key-item:last-child {
    margin-right: 0;
}

.legend-square {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
}

.legend-line {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    margin-top: 10px;
    border-top-width: 2px;
    border-top-style: solid;
}

.legend-dot {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 50%;
}

.legend-circle {
    border: 1px solid #696969;
    border-radius: 50%;
}

.key-item label {
    line-height: 20px;
    vertical-align: top;
    font-size: 16px;
}

#mobile-state-dropdown-button {
  display: none;
}

@media (max-width: 800px) {
  #county-lookup {
    font-size: 18px;
  }

  #county-lookup-button {
    left: 0;
  }

  .graphic {
    top: 40px;
  }

  .graphic-wrapper > svg {
    display: inline;
    margin: auto;
  }

  nav {
    display: none;
  }

  #mobile-state-dropdown-button {
    color: #353535;
    display: inline-block;
    height: 44px;
    font-family: Lato;
    font-size: 18px;
    width: 100% !important;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    box-sizing: border-box;
    /* background: #ffffff; */
    border: 1px solid #d2d2d2;
    border-radius: 0;
    font-family: Lato;
    font-size: 18px;
    cursor: pointer;
    /* padding-left: 10px; */
    background: url(../img/arrow.png) 98% / 15% no-repeat #ffffff;
    background-size: auto;
    margin: 0;
  }

  #maine-measures-dropdown-menu {
    width: 100% !important;
  }

  .state-downloads {
    top: 20px;
  }

  .ui-selectmenu-text {
    margin-top: 2px;
  }
}
