html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #a5c7cc;
}

span.state-icon-us.state-icon {
  position: absolute;
  top: 5px;
  left: 10px;
  /*color: #224a58;*/
  color: #ffffff;
  font-size: 30pt;
  cursor: pointer;
}

span.state-icon-us.state-icon:hover{
  color: #3990a3;
}

div#pdfThumbHome.navIconHome {
  width: 40px;
  height: 40px;
  position: absolute;
  z-index: 100;
  left: 20px;
  bottom: 20px;
}

#zoomLabel {
  position: absolute;
  top: 15px;
  left: 55px;
  font-family: 'Lato';
  font-size: 9pt;
  color: #ffffff;
  cursor: pointer;
}

#zoomLabel:hover {
  color: #3990a3;
}

div.leaflet-control-zoom.leaflet-bar.leaflet-control {
  display: none;
}

div.leaflet-top.leaflet-left {
  margin-top: 35px;
  margin-left: 3px;
}

#title {
    position: relative;
    text-align: center;
    font: 16px 'Lato';
}

div.logoBanner {
  position: absolute;
  z-index: 100;
  top: 2px;
  right: 15px;
}

img#logo {
  height: 42px;
  display: inline-block;
}

div.shareIcons {
  display: inline-block;
  margin-top: 9px;
  margin-right: 4px;
}

a.tweetText {
  opacity: .6;
  margin-left: 2px;
  display: inline-block;
}

img.facebookIcon {
  height: 13px;
  opacity: .6;
  display: inline-block;
  float: right;
  margin-top: 2px;
}

p#share {
  font-family: 'Lato';
  color: #056575;
  font-weight: 300;
  margin-top: -4px;
  font-size: 9pt;
  text-align: center;
}

#map {
  /*position: absolute;*/
  height: 100%;
  overflow: hidden;
}

span#stateLabel {
  position: absolute;
  top: 11%;
  font-family: 'Lato';
  right: 36%;
  font-size: 16pt;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  padding-top: 0;
  left: auto;
}

span#stateLabel.national {
  position: relative;
  top: auto; 
  font-family: 'Lato';
  right: auto; 
  font-size: 16pt;
  text-align: left;
  color: #ffffff;
  text-transform: uppercase;
  left: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}


/*div#worst50-national-table {*/
div.dataTableDiv {
  font-family: Lato;
  font-size: 11pt;
  text-align: center;
  color: #224a58;
  position: absolute;
  width: 90%;
  left: 5%;
  top: auto;
  bottom: 20px;
  background-color: rgba(165,199,204, 1);
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 7px;
  font-weight: 700;
  /*z-index: 20;*/
}
table.dataTable tbody td {
  padding: 2px;
}

table#statestats.table.table-bordered.table-hover.table-condensed.dataTable.no-footer {
  border-bottom: none;
}

table#stateworst5.table.table-bordered.table-hover.table-condensed.dataTable.no-footer {
  border-bottom: none;
}

table#worst50-table.table.table-bordered.table-hover.table-condensed.dataTable.no-footer {
  border-bottom: none;
}

div.dataTableDiv.national {
  font-family: Lato;
  font-size: 11pt;
  text-align: center;
  color: #224a58;
  position: relative;
  width: auto;
  left: 0;
  top: auto;
  bottom: auto;
  /*background-color: rgba(165,199,204, 1);*/
  padding-left: 15px;
  padding-right: 15px;
  /*border-radius: 7px;*/
  font-weight: 700;
  /*z-index: 20;*/
}

div#stateworst5-table.dataTableDiv {
  background-color: rgba(165,199,204,.5);
  padding: 5px;
}

/*div#worst50-national-table.cities {
  top: auto;
  bottom: 20px;
}*/

thead tr th {
  padding-left: 5px;
  padding-right: 5px;
}

table.dataTable thead th {
  padding: 0px 5px 0px 5px !important;
}

table.dataTable tbody tr {
  background-color: transparent;
}

div#worst50-table_filter.dataTables_filter {
  display: none;
}

div#worst50-table_info.dataTables_info {
  display: none;
}

div#worst50-table_paginate.dataTables_paginate.paging_simple_numbers {
  display: none;
}

div#stateworst5_filter.dataTables_filter {
  display: none;
}

div#stateworst5_info.dataTables_info {
  display: none;
}

div#stateworst5_paginate.dataTables_paginate.paging_simple_numbers {
  display: none;
}

div#statestats_filter.dataTables_filter {
  display: none;
}

div#statestats_info.dataTables_info {
  display: none;
}

div#statestats_paginate.dataTables_paginate.paging_simple_numbers {
  display: none;
}

table.dataTable thead .sorting, 
table.dataTable thead .sorting_asc, 
table.dataTable thead .sorting_desc {
    background : none;
}

.row{
  overflow: hidden;
  height: 100%;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  right: auto;
}

.row.footer {
  height: auto;
  overflow-y: scroll;
  bottom: 125px;
}

.row.cityDiv {
  background-color: #a5c7cc;
  width: 48%;
  right: 1px;
  position: absolute;
  height: 100%;
  z-index: 2;
  left: auto;
  border: none;
  border-left: 1px solid #ffffff;
  bottom: 0;
}

.row.nationalDiv {
  overflow: hidden;
  height: auto;
  min-height: 100px;
  z-index: 2;
  position: absolute;
  top: 100px;
  right: 20px;
  width: 43%;
  text-align: left;
  background-color: #a5c7cc;
  border-radius: 7px;
  left: auto;
  border: 1px solid #ffffff;
}

span.launch {
  font-family: 'Lato';
  text-align: center;
  color: white;
  position: absolute;
  /*bottom: 5%;*/
  bottom: 50px;
  /*width: 100%;*/
  width: 10%;
  left: 45%;
  font-size: 64pt;
  /*padding: 5px;*/
  font-weight: 300;
  cursor: pointer;
  z-index: 150;
}

i.fa.fa-angle-double-down:hover {
  color: #3990a3;
}

/*span.launch:hover {
  border-color: #224a58;
}*/

/*style the last p in a text area so that the continue button is directly below*/
p#last {
  margin-bottom: 0;
}

span.continue {
  font-family: 'Lato';
  text-align: center;
  color: white;
  position: relative;
  font-size: 42pt;
  line-height: .5;
  /*background-color: #3990a3;*/
  /*font-weight: 300;
  border-radius: 3pt;
  padding-left: 3px;
  padding-right: 3px;
  bottom: 8px;*/
  cursor: pointer;
  /*border: 1px solid #3990a3;*/
}

span.city {
  font-family: 'Lato';
  text-align: center;
  color: white;
  position: relative;
  font-size: 42pt;
  font-weight: 300;
  cursor: pointer;
}

span.city:hover {
  color: #3990a3;
}

/*Styling for transparent continue button for navigationBanner so that it takes up the right amount of space*/
span.space {
  font-family: 'Lato';
  text-align: center;
  color: transparent;
  position: relative;
  font-size: 42pt;
  font-weight: 300;
/*  cursor: pointer;*/
}

span.continue:hover {
  border-color: #224a58;
}

span.continue.last {
  display: inline-block;
  top: 20px;
}

span.continue.national {
  display: inline-block;
  top: 10px;
}

span.continue.state {
  display: inline-block;
  top: 10px;
}


span#toNum2.continue {
  top: 20px;
}

/*span#toTop10.continue {
  top: -5px;
}*/

div#storyTitle {
  font-family: 'Lato';
  font-weight: 300;
  position: absolute;
  top: 37%;
  line-height: .1;
  font-size: 32pt;
  left: 13%;
  width: 87%;
  color: #fff;
  z-index: 3;
}

div#storyTitle hr {
  color: #fff;
  background-color: #fff;
  height: 2px;
  border: none;
}

span#faultSubTitle {
  font-size:26px;
}

div.nationaltext {
  font-family: 'Lato';
  font-weight: 300;
  position: absolute;
  top: 75px;
  line-height: .1;
  font-size: 32pt;
  left: 13%;
  width: 87%;
  color: #fff;
  z-index: 3;
}

div.nationaltext hr {
  color: #fff;
  background-color: #fff;
  height: 2px;
  border: none;
}

div.cityText {
  font-family: 'Lato';
  font-weight: 400;
  position: absolute;
  top: 125px;
  font-size: 11.5pt;
  left: 5%;
  width: 90%;
  color: #224a58;
  z-index: 3;
  text-align: justify;
  background-color: rgba(165,199,204, .6);
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 7px;
  bottom: 140px;
  overflow-y: scroll;
}

div.cityBlurb {
  position: absolute;
  top: 55px;
  right: 12.5%;
  font-family: 'Lato';
  font-weight: 400;
  font-size: 12pt;
  width: 75%;
  color: #ffffff;
  text-align: justify;
  z-index: 24;
}

div.cityText p {
  /*display: inline-block;*/
  margin-bottom: 0;
  margin-right: 5px;
}

div.cityText p.first {
  display: inline;
}

div.headerContainer {
  margin-top: -15px;
}

div.storyContext {
  font-family: 'Lato';
  font-weight: 500;
  font-size: 14pt;
  color: #224a58;
  text-align: justify;
  top: 25px;
  position: relative;
  line-height: 1.2;
  width: 80%;
  background-color: rgba(165,199,204,1);
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 1px;
  padding-top: 1px;
  margin-bottom: 45px;
  border-radius: 7px;
}

div#summaryText {
  font-family: 'Lato';
  font-weight: 400;
  font-size: 14pt;
  color: #224a58;
  text-align: justify;
  top: 75px;
  /*left: 14%;*/
  position: absolute;
  line-height: 1.2;
  width: 80%;
  background-color: rgba(165,199,204,1);
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 1px;
  padding-top: 1px;
}

/*div#navigationBanner {
  position: absolute;
  bottom: 1%;
  left: 4%;
  width: 90%;
  z-index: 100;
}*/

div#navigationBanner {
  width: 34%;
  left: 20px;
  position: fixed;
  bottom: 10px;
  height: 85px;
  display: flex;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  z-index: 100;
  /*background-color: rgba(165,199,204,.7);
  border-radius: 10;*/
}
/*div#navigationBanner {
  display: flex;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  width: 100%;
}*/

div#navigationTitles {
  display: block;
  width: 34%;
  /*left: 75px;*/
  bottom: 100px;
  padding-bottom: 5px;
  position: relative;
  text-align: center;
}

span.navTitle {
  font-family: 'Lato';
  color: #ffffff;
  font-size: .75em;
}

span#pdfThumbTitleHome{
  font-family: 'Lato';
  color: #ffffff;
  font-size: .75em;
  bottom: 32px;
  position: absolute;
  z-index: 100;
  left: 70px;
}

div.navIconContainer {
  display: inline-block;
  text-align: center;
  width: 80px;
}

div.navIcon {
  height: 47px;
  width: 47px;
  font-family: 'Lato';
  margin-left: 12.5px;
  margin-right: 12.5px;
  cursor: pointer;
}

/* make nav div circular */
div.div-circle {
  border: 1px solid #ffffff;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* class for refresh button to hide it */
div#refreshThumb.navIcon.hidden div.div-circle {
  border-color: transparent;
  color: transparent;
}

div#navigationButtons {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

span.navButton {
  font-family: 'Lato';
  text-align: center;
  color: white;
  position: relative;
  font-size: 12pt;
  background-color: rgba(57,144,163,0.7);
  font-weight: 300;
  padding-left: 3px;
  padding-right: 3px;
  cursor: pointer;
  border-radius: 3pt;
  border: 1px solid rgba(57,144,163,0.7);
}

span.navButton.state {
    margin-left: 10px;
    margin-right: 10px;
}

span.navButton.data {
    margin-right: 10px;
}

span.navButton:hover {
  border-color: #224a58;
}

span.navButton.active {
  border: 2px solid #224a58;
}

span.instructions {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 12pt;
  color: #224a58;
  text-align: justify;
  line-height: 1.2;
  margin-bottom: 5px;
}

div#stateText {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 14pt;
  color: #224a58;
  text-align: justify;
  bottom: 7%;
  left: 4%;
  position: absolute;
  line-height: 1.2;
  width: 50%;
  background-color: rgba(255,255,255,0.1);
  padding-left: 5px;
  padding-right: 5px;
}

div#nationalText {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 14pt;
  color: #224a58;
  text-align: justify;
  bottom: 2%;
  left: 4%;
  position: absolute;
  line-height: 1.2;
  width: 50%;
  background-color: rgba(255,255,255,0.1);
  padding-left: 5px;
  padding-right: 5px;
}

p.segNum {
  font-size: 32pt;
  font-weight: 500;
  display: inline;
  position: relative;
  float: left;
  margin-top: 0px;
  margin-bottom: 0;
  margin-right: 0;
  padding-right: 0;
}

p.segDescr {
  display: inline;
  position: relative;
  float: right;
  width: 92%;
  margin-top: 25px;
  right: 0px;
}

p.segDescr2 {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
}

.leaflet-container a {
    /*color: #224a58;*/
    color: #ffffff;
}

.leaflet-container a:hover {
    color: #3990a3;
}

div#map.leaflet-container {
  background: #a5c7cc;
}



/*//////////////////// Pulsing Points Start //////////////////////////*/
.leaflet-pulsing-icon {
    border-radius: 100%;
    box-shadow: 1px 1px 8px 0 rgba(0,0,0,0.75);
    background-color: #8A2F2F;
}

.leaflet-pulsing-icon:after {
    content: "";
    -webkit-border-radius: 100%;
    border-radius: 100%;
    height: 300%;
    width: 300%;
    position: absolute;
    margin: -100% 0 0 -100%;
}

.leaflet-pulsing-icon.static:after {
    -webkit-animation-iteration-count: 1;
    box-shadow: none;
}

.leaflet-pulsing-icon.static {
    background-color: #af7777;
    box-shadow: none;
}

/*.leaflet-pulsing-icon.examples:after {
    animation-iteration-count: 1;
    box-shadow: none;
}

.leaflet-pulsing-icon.examples {
    background-color: #750505;
    box-shadow: none;
}*/

@keyframes pulsate {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0);
    }
    50% {
        opacity: 1;
        -ms-filter: none;
        filter: none;
    }
    100% {
        transform: scale(1.2, 1.2);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0);
    }
}

/*//////////////////// Pulsing Points End //////////////////////////*/

/* worst district label styles*/
.lpLabel {
  color: #224a58;
  text-align: center;
  margin-left: 7px !important;
  font-family: 'Lato';
  line-height: 1.3;
  /*font-size: 1.3em;*/
  top: 40px;
  left: -25px;
  font-size: 10pt;
  text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

div#worstBanner {
  width: 34%;
  left: 20px;
  position: fixed;
  bottom: 10px;
  height: 100px;
  display: flex;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  /*background-color: rgba(165,199,204,.7);
  border-radius: 10;*/
}

/* define image and title div */
div.cityIcon {
  display: inline-block;
  text-align: center;
  width: 80px;
}

/* make images circular */
.img-circle {
    border-radius: 50%;
}

img.worstthumb {
  display: inline-block;
  width: 60%;
  margin: 1px;
  height: 60%;
  border: 1px solid #6392a2;
}

/*img.worstthumb:hover {
  border-color: black;
}*/

span.cityIconTitle {
  font-size: .65em;
  font-family: 'Lato';
  /*color: #6392a2;*/
  color: transparent;
  font-weight: 300;
}

div.cityIcon.active span.cityIconTitle {
  color: white;
}

div.cityIcon.active img.img-circle {
  border: 2px solid white;
}

div.cityIcon.active.visible span.cityIconTitle {
  color: white;
}

div.cityIcon.active.visible img.img-circle {
  border: 1px solid white;
}

/* make leaflet zoom in and zoom out divs background color transparent */
.leaflet-control-container {
    box-shadow: none !important;
    outline: 0 !important;
}

.leaflet-bar {
    box-shadow: none;
}

.leaflet-bar a, .leaflet-bar a:hover{
  background-color: transparent;
  border-bottom: none;
}

/* make leaflet attribution, background color transparent */
div.leaflet-control-attribution.leaflet-control {
  background-color: transparent;
}

.hpDist {
  color: #a96c6c;
}

.lpDist {
  color: #296371;
}

/* style worst in each state polygon so that you can click through to the state onclick below */
path.dPoly.leaflet-clickable {
  pointer-events: none;
}

/*::-webkit-scrollbar-track-piece  { 
  background-color: #a5c7cc;
}*/

::-webkit-scrollbar {
    width: 8px;
    background-color: #a5c7cc;
}

::-webkit-scrollbar-thumb {
    width: 8px;
    background-color: #76acb3;
    border: .25px solid white;
}

/*responsive layout additions*/
@media screen and (min-width:1100px) {
  span.cityIconTitle {
    font-size: .7em;
  }
}

@media screen and (max-width:1100px) {
  div.cityBlurb {
    font-size: 11pt;
  }
  div.cityText {
    font-size: 11pt;
    left: 2%;
    width: 95%;
    top: 115px;
  }
  div.dataTableDiv {
    font-size: 10pt;
    left: 2%;
    width: 95%;
    bottom: 5px;
    overflow-x: scroll;
  }
/*  div.dataTableDiv.national {
    font-size: 10pt;
  }*/
}

@media screen and (max-width: 900px) {
  span.navTitle {
    font-size: .5em;
  }

  span.cityIconTitle {
    font-size: .5em;
  }
  
  /*story titles*/
  span#faultTitle {
    font-size:26px;
  }

  div#storyTitle hr {
    margin-bottom: 5px;
  }

  span#faultSubTitle {
    font-size:16px;
  }

/*story text*/
  div.storyContext {
    font-size: 11pt;
  }

/*continue buttons*/
  span.launch {
    font-size: 55pt;
    bottom: 100px;
  }
/* navigation buttons*/
  div.navIconContainer {
    width: 70px;
  }

  div.navIcon{
    width: 40px;
    height: 40px;
  }

  /*city text*/
  div.cityBlurb {
    font-size: 10pt;
  }

  div.cityText {
    font-size: 10pt;
    left: 1%;
    width: 95%;
  }
  div.dataTableDiv {
    font-size: 9pt;
    left: 1%;
    width: 95%;
  }
}

@media screen and (max-width: 800px) {
  /*continue buttons*/
  span.launch {
    bottom: 60px;
  }
  span.cityIconTitle {
    display: block;
  }
  p.segDescr {
    width: 89%;
  }
  div.cityBlurb {
    top: 50px;
    width: 90%;
    right: 5%;
  }
  div.cityText {
    top: 100px;
  }
  span.city {
    font-size: 32pt;
  }
}

@media screen and (max-width: 700px) {
/* navigation buttons*/
  div.navIconContainer {
    width: 50px;
  }

  span.cityIconTitle {
    display: none;
  }
  div.cityBlurb {
    top: 46px;
    width: 93%;
    right: 3.5%;
    font-size: 9pt;
    line-height: 1.2;
  }
}

/*@media screen and (max-width: 600px) {
  span#birminghamTitle.cityIconTitle {
    font-size: .5em;
  }
  
  span#faultTitle {
    font-size:22px;
  }

  div#storyTitle hr {
    margin-bottom: 0px;
  }

  span#faultSubTitle {
    font-size:12px;
  }

  span.launch {
    bottom: 50px;
  }

  p.segDescr {
      width: 85%;
  }
}*/

@media screen and (max-width: 600px) {
  
  /*div.logoBanner {
    background-color: #a5c7cc;
    border-radius: 7px;
  }*/

  p#share {
    display: none;
  }

  a.tweetText {
    margin-top: 5px;
    margin-right: 4px;
  }

  a.tweetText img {
    height: 20px;
  }

  img.facebookIcon {
    height: 17px;
    margin-top: 7px;
  }
  /*move city text to bottom fo screen for mobile*/
  div.row.cityDiv {
    height: 52%;
    top: 48%;
    width: 100%;
    border-top: 1px solid #ffffff;
  }

  div.row.nationalDiv {
    width: 75%;
    right: 5px;
    top: 45px;
  }

  #map.cityMobile {
    height: 48%;
  }

  div.storyContext {
    width: 95%;
    font-size: 10pt;
    padding-left: 5px;
    padding-right: 5px;
  }
  div#storyTitle {
    left: 5%;
    width: 95%;
  }

  span#faultSubTitle {
    font-size: 10px;
` }

  div#navigationBanner {
    /*flex-shrink: 0;*/
    width: 100%;
    bottom: -5px;
    left: auto;
  }

  div#navigationTitles {
    width: 100%;
    bottom: 77px;
    left: 0px;
  }

  div#worstBanner {
    width: 100%;
    left: 5px;
    bottom: 51%;
  }

  span.city {
    font-size: 22pt;
    bottom: 5px;
  }

  span.launch {
    bottom: 60px;
    font-size: 46pt;
  }

  div.cityBlurb {
    font-size: 8pt;
    line-height: 1.1;
    top: 10px;
  } 

  div.cityText {
    font-size: 8pt;
    left: 3px;
    width: 97%;
    padding-left: 5px;
    padding-right: 5px;
    top: 50px;
    bottom: 130px;
  }
  p.segNum {
    font-size: 24pt;
  }

  p.segDescr {
    width: 90%;
  }

  div.nationaltext {
    left: 2.5%;
    width: 97%;
    font-size: 12pt;
  }

  div.nationaltext hr{
    margin-top: 18px;
  }

  div#summaryText {
    font-size: 10pt;
    left: 0%;
    width: 95%;
    padding-left: 5px;
    padding-right: 5px;
    top: 30px;
  }

  span#summaryTitle {
    font-size: 12pt;
  }

  div.dataTableDiv {
    font-size: 8pt;
    left: 1%;
    right: 1%;
  }

  div.dataTableDiv.national {
    font-size: 8pt;
    left: 1%;
    right: 1%;
  }

  span#stateLabel.national {
    font-size: 12pt;
    padding-bottom: 0px;
  }
}
