/*** SIZING FOR FULL DESKTOP VERSION ***/
.sidebar {
  position: absolute;
  width: 33.3333%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
}

body {
  color: #404040;
  font: 400 .75em 'IBM Plex Sans', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

  #map-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 33.3333%;
    width: 66.6666%;
  }

  .mapboxgl-canvas {
    cursor: pointer;
  }

.clicked-info {
  height: 100%;
  overflow: auto;
  padding-bottom: 60px;
}

.state-info {
  font-size: 1.25em;
  display: block;
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-decoration: none;
  border-bottom: none;
}

.state-info .title {
  font-size: 1.25em;
  display: block;
  color: #F58025;
  font-weight: 700;
  text-align: center;
}

.heading {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.5em;
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 55px;
  line-height: 100px;
  padding: 10px 15px;
}

  a {
    color: #004785;
    text-decoration: none;
  }

  a:hover {
    color: #101010;
  }

  h1 {
    font-size: 1.1em;
    margin: 0;
    font-weight: 400;
    line-height: 20px;
    padding: 20px 2px;
  }
  
  h2,
  h3 {
    margin: 10px;
    font-size: 1.2em;
  }
  
  h3 {
    font-size: 1em;
  }
  
  p {
    font-size: 0.85em;
    margin: 10px;
    text-align: left;
  }

  .legend {
    background-color: #fff;
    border-radius: 3px;
    bottom: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif; */
    padding: 10px;
    position: absolute;
    right: 10px;
    z-index: 1;
  }
     
  .legend h4 {
    margin: 0 0 10px;
  }
     
  .legend div span {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 5px;
    width: 10px;
  }

  table {
    width: 100%;
  }
  
  td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
  }
  
  tr:nth-child(even) {
    background-color: #dddddd;
  }

  tr:nth-child(odd) {
    background-color: white;
  }

  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    border-left: 0;
    background: rgba(0, 0, 0, 0.1);
  }
  
  ::-webkit-scrollbar-track {
    background: none;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #001940;
    border-radius: 0;
  }
  
  .clearfix { display: block; }
  
  .clearfix::after {
    content: '.';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }

#zoom {
  display: inline-block;
  /* top: 13px; */
  /* when second dropdown: 64px; */
  top: 40px;
  left: 12px;
  position: absolute;
  left: 35%;
  border: none;
  border-radius: 3px;
  font-size: 1.25em;
  text-align: center;
  color: #757575;
  background: #fff;
  }


/* GEOCODER CSS STUFF */
.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder *,
.mapboxgl-ctrl-geocoder *:after,
.mapboxgl-ctrl-geocoder *:before {
  box-sizing: border-box;
}

.mapboxgl-ctrl-geocoder {
  font-size: 18px;
  line-height: 24px;
  font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: relative;
  background-color: #fff;
  width: 100%; 
  min-width: 150px;
  z-index: 1;
  border-radius: 4px;
  transition: width .25s, min-width .25s;
}

.mapboxgl-ctrl-geocoder--input {
  font: inherit;
  width: 100%;
  border: 0;
  background-color: transparent;
  margin: 0;
  height: 50px;
  color: #001940; 
  color: #001940;
  padding: 6px 45px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mapboxgl-ctrl-geocoder--input::-ms-clear {
  display: none; /* hide input clear button in IE */
}

.mapboxgl-ctrl-geocoder--input:focus {
  color: #404040; /* fallback */
  color: #001940;
  outline: 0;
  box-shadow: none;
  outline: thin dotted\8;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
  z-index: 2;
  position: absolute;
  right: 8px;
  top: 7px;
  display: none;
}

.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder .suggestions {
  box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
}

/* Collapsed */
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed {
  width: 50px;
  min-width: 50px;
  transition: width .25s, min-width .25s;
}

/* Suggestions */
.mapboxgl-ctrl-geocoder .suggestions {
  background-color: #fff;
  border-radius: 4px;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  top: 110%; /* fallback */
  top: calc(100% + 6px);
  z-index: 1000;
  overflow: hidden;
  font-size: 15px;
}

.mapboxgl-ctrl-bottom-left .suggestions,
.mapboxgl-ctrl-bottom-right .suggestions {
  top: auto;
  bottom: 100%;
}

.mapboxgl-ctrl-geocoder .suggestions > li > a {
  cursor: default;
  display: block;
  padding: 6px 12px;
  color: #404040;
}

.mapboxgl-ctrl-geocoder .suggestions > .active > a,
.mapboxgl-ctrl-geocoder .suggestions > li > a:hover {
  color: #404040;
  background-color: #f3f3f3;
  text-decoration: none;
  cursor: pointer;
}

.mapboxgl-ctrl-geocoder--suggestion-title {
  font-weight: bold;
}

.mapboxgl-ctrl-geocoder--suggestion-title,
.mapboxgl-ctrl-geocoder--suggestion-address {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Icons */
.mapboxgl-ctrl-geocoder--icon {
  display: inline-block;
  vertical-align: middle;
  speak: none;
  fill: #001940;
  top: 15px;
}

.mapboxgl-ctrl-geocoder--icon-search {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 23px;
  height: 23px;
}

.mapboxgl-ctrl-geocoder--button {
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: #fff;
  line-height: 1;
}

.mapboxgl-ctrl-geocoder--icon-close {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  margin-right: 3px;
}

.mapboxgl-ctrl-geocoder--button:hover .mapboxgl-ctrl-geocoder--icon-close {
  fill: #909090;
}

.mapboxgl-ctrl-geocoder--icon-loading {
  width: 26px;
  height: 26px;
  margin-top: 5px;
  margin-right: 0px;
  -moz-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  -webkit-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Animation */
@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Media queries*/
@media screen and (min-width: 500px) {

  .mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed {
    width: 36px;
    min-width: 36px;
  }

  .mapboxgl-ctrl-geocoder {
    width: 33.3333%;
    font-size: 15px;
    line-height: 20px;
    max-width: 360px;
  }
  .mapboxgl-ctrl-geocoder .suggestions {
    font-size: 13px;
  }

  .mapboxgl-ctrl-geocoder--icon {
    top: 8px;
  }

  .mapboxgl-ctrl-geocoder--icon-close {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    margin-right: 0;
  }

  .mapboxgl-ctrl-geocoder--icon-search {
    left: 7px;
    width: 20px;
    height: 20px;
  }

  .mapboxgl-ctrl-geocoder--input {
    height: 36px;
    padding: 6px 35px;
  }

  .mapboxgl-ctrl-geocoder--icon-loading {
    width: 26px;
    height: 26px;
    margin-top: -2px;
    margin-right: -5px;
  }

  .mapbox-gl-geocoder--error{
    color:#909090;
    padding: 6px 12px;
    font-size: 16px;
    text-align: center
  }

}
  #dropdown, #dropdown-2 {
    display: inline-block;
    /* top: 40px; */
    top: 13px;
    left: 12px;
    position: absolute;
    left: 35%;
    border: none;
    border-radius: 3px;
    font-size: 1.25em;
    text-align: center;
    color: #757575;
    background: #fff;
    font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
    }

    #dropdown-2 {
      /* 'inline-block' when state-house/senate layer active*/
      display: none;
      top: 40px;
      }
     
    #dropdown a {
    color: #404040;
    display: block;
    margin: 0;
    padding: 0;
    padding: 5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    text-align: center;
    }
     
    #dropdown a:last-child {
    border: none;
    }
     
    #dropdown a:hover {
    background-color: #f8f8f8;
    color: #404040;
    }
     
    #dropdown a.active {
    background-color: #3887be;
    color: #ffffff;
    }
     
    #dropdown a.active:hover {
    background: #3074a4;
    }

    /*** SIZING FOR SITE EMBED, MOBILE ***/
@media screen and (max-width: 992px) {
  .state-info {
    font-size: .75em;
    display: block;
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-decoration: none;
    border-bottom: none;
  } 
  .state-info .title {
    font-size: 1.25em;
    display: block;
    color: #F58025;
    font-weight: 700;
    text-align: center;
  }
  .heading {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.3em;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 45px;
    line-height: 60px;
    padding: 0 5px;
  }
  body {
    color: #404040;
    font: 400 .75em 'IBM Plex Sans', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
  }
  #zoom {
    display: inline-block;
    /* top: 13px; */
    /* when second dropdown: 64px; */
    top: 40px;
    left: 12px;
    position: absolute;
    left: 35%;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    text-align: center;
    color: #757575;
    background: #fff;
    }
    #dropdown, #dropdown-2 {
      display: inline-block;
      /* top: 40px; */
      top: 13px;
      left: 12px;
      position: absolute;
      left: 35%;
      border: none;
      border-radius: 3px;
      font-size: 1em;
      text-align: center;
      color: #757575;
      background: #fff;
      font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
      }
}

/***  state buttons  ***/
.btn-group-wrap {
  text-align: center;
}
a.state-button {
  font: 800 1em 'IBM Plex Sans', sans-serif;
  display: inline-block;
  padding: 0.35em 1.2em;
  border: 0.2em solid #F58025;
  margin: 0 0.3em 0.3em 0;
  border-radius: 0.4em;
  box-sizing: border-box;
  text-decoration: none;
  color: #F58025;
  box-shadow: 0 0 5px rgb(241, 146, 3);
  text-align: center;
  transition: all 0.2s;
}
a.state-button:hover {
  color: #FFFFFF;
  background-color: #F58025;
}
div.btn-group {
  margin: 0 auto;
  text-align: center;
  width: inherit;
  display: inline-block;
  padding-top: 1em;
}


