body {
  background: #fff;
}

.Code-wrap:before {
  content: 'Interact with the graphic below';
  display: block;
  margin: 0 0 20px 0;
  padding: 20px 0;
  color: #34495e;
  border-bottom: 1px solid #90c0d8;
  border-top: 1px solid #90c0d8;
  font: 300 15px/25px 'Roboto';
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.subsectioncontent-table .Code-wrap:before {
  display: none;
}

/* --- SETUP --- */

img {
  max-width: 99999%;
}

.subsection-imagegallery img {
  width: auto;
  height: auto;
}

/* classes */

.scroll {
  height: 1000px;
  padding: 200px 0 0 0;
  text-align: center;
}

.interactive-element {
  padding: 0;
}

.interactive-element h2 {
  text-align: center;
  display: none;
}

.interactive-wrap {
  position: relative;
  width: 850px;
  margin: 0 auto;
}

.lowercase {
  text-transform: lowercase;
  font-style: normal;
}

/* --- TOGGLES --- */

.toggles {
  width: 630px;
  margin: 0 auto;
  text-align: center;
}

.toggles span {
  background: #eaf4fb;
  display: inline-block;
  padding: 10px;
  margin: 3px;
  font: 400 13px/13px 'Roboto';
  text-transform: uppercase;
  cursor: pointer;
}

/*.toggles span:hover {
  background: #dae8f2;
}*/

.toggles span.us-average {
  background: #096ba3;
  color: #fff;
}

.toggles span.on {
  background: #fe495a;
  color: #fff;
}

.toggles sub {
  font-size: 60%;
  line-height: 100%;
}

/* colors */

.toggle.blue-btn {
  background: rgba(9,107,163,0.3);
}

.toggle.blue-btn.on {
  background: rgb(9,107,163);
}

.toggle.red-btn {
  background: rgba(202,44,58,0.3);
}

.toggle.red-btn.on {
  background: rgb(202,44,58);
}

.toggle.orange-btn {
  background: rgba(254,141,60,0.3);
}

.toggle.orange-btn.on {
  background: rgb(254,141,60);
}

.toggle.black-btn {
  background: #ddd;
}

.toggle.black-btn.on {
  background: #000;
}

.toggle.green-btn {
  background: rgba(78,146,66,0.3);
}

.toggle.green-btn.on {
  background: rgb(78,146,66);
}

.toggle.purple-btn {
  background: rgba(110,85,140,0.3);
}

.toggle.purple-btn.on {
  background: rgb(110,85,140);
}

.toggle.teal-btn {
  background: rgba(60,150,174,0.3);
}

.toggle.teal-btn.on {
  background: rgb(60,150,174);
}

.toggle.darkgrey-btn {
  background: rgba(50,55,59,0.2);
}

.toggle.darkgrey-btn.on {
  background: rgb(50,55,59);
}

.toggle.beige-btn {
  background: rgba(223,214,211,0.2);
}

.toggle.beige-btn.on {
  background: rgb(223,214,211);
  color: #32373b;
}

/* --- OVERLAYS --- */

.overlay {
	background: #34495e;
  display: none;
  position: absolute;
  padding: 10px;
  color: #fff;
	font-size: 16px;
  line-height: 23px;
  text-align: left;
  z-index: 100;
}

.interactive-element .interactive-wrap .overlay h3 {
  width: auto;
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  text-align: left;
}

/* positioning */

.overlay:before {
  content: '';
  display: block;
  position: absolute;
  width: 0;
  border: 10px solid #34495e;
  z-index: 1;
}

.overlay.arrow-left:before {
  top: 20px;
  left: -20px;
  border-color: #34495e #34495e transparent transparent;
}

.overlay.arrow-right:before {
  top: 20px;
  right: -20px;
  border-color: #34495e transparent transparent #34495e;
}

.overlay.arrow-top:before {
  top: -20px;
  left: 20px;
  border-color: #34495e transparent transparent #34495e;
}

.overlay.arrow-bottom:before {
  bottom: -20px;
  left: 20px;
  border-color: #34495e transparent transparent #34495e;
}

.overlay.us-average:before {
  content: none;
}

/* content */

.chart {
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
  width: 300px;
  height: 240px;
}

.overlay.us-average {
  top: 50%;
  left: 50%;
  margin: -150px 0 0 -160px;
}

/* close */

.close-overlay {
  background-position: -250px -1000px;
  display: block;
  float: right;
  width: 17px;
  height: 17px;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

/* light overlay */

.light .overlay {
  background: #eaf4fb;
  background: rgba(234,244,251,0.93);
  color: #34495e;
}

.light .overlay.arrow-left:before {
  border-color: #eaf4fb #eaf4fb transparent transparent;
  border-color: rgba(234,244,251,0.93) rgba(234,244,251,0.93) transparent transparent;
}

.light .overlay.arrow-right:before {
  border-color: #eaf4fb transparent transparent #eaf4fb;
  border-color: rgba(234,244,251,0.93) transparent transparent rgba(234,244,251,0.93);
}

.light .overlay.arrow-top:before {
  border-color: transparent transparent #eaf4fb #eaf4fb;
  border-color: transparent transparent rgba(234,244,251,0.93) rgba(234,244,251,0.93);
}

.light .overlay.arrow-bottom:before {
  border-color: #eaf4fb transparent transparent #eaf4fb;
  border-color: rgba(234,244,251,0.93) transparent transparent rgba(234,244,251,0.93);
}

/* --- LEGEND --- */

.legend {
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: 0 0;
  width: 850px;
  height: 75px;
  margin: 0 auto;
}

.legend.has-thumb {
  background-size: 650px auto;
}

.legend .chart-thumb {
  position: relative;
  float: right;
  width: 220px;
  height: 160px;
  margin: -70px 20px 0 0;
}

.legend .chart-thumb a {
  display: block;
  padding: 5px 10px;
  border: 2px solid #fe495a;
  color: #32373b;
}

.legend .chart-thumb span {
  display: block;
  margin: 0 0 6px 0;
  font: 400 15px/22px 'Roboto';
  text-align: center;
}

.legend .chart-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* full USA map bg */

.interactive-wrap .map-bg {
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* transparent overlay for image map */

.interactive-wrap .map-transparent {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* ------ MEDIA QUERIES ------ */

/* iPad portrait */
@media screen and (max-width: 768px) {
  .interactive-wrap {
    width: 688px;
  }
  
  
  
  .legend {
    width: 688px;
    height: 61px;
  }
}

/* iPhone landscape */
@media screen and (max-width: 600px) {
  .interactive-wrap {
    width: 440px;
    margin: 0 auto;
  }
  
  .legend {
    width: 440px;
    height: 40px;
  }

  .toggles {
    width: 100%;
  }
}

/* iPhone portrait */
@media screen and (max-width: 400px) {
  .Code-wrap:before {
    
  }
  
  .interactive-wrap {
    width: 280px;
    margin: 0 auto;
  }
  
  .legend {
    width: 280px;
    height: 40px;
  }

  .toggles {
    width: 100%;
  }
}
