/*Overall*/

.hidden {
  display: none;
}

.intro {
  margin: 5rem auto;
  max-width: 52rem;
  margin-top: 6rem;
}

.intro__hed {
  max-width: 55rem;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
}

.intro__byline {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.intro__dek {
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 21px;
  line-height: 1.7;
  font-family: 'Atlas Grotesk Web';
  margin-bottom: 5rem;
}


.intro__hed {
  font-size: 4rem;
  line-height: 1.2;
  text-align: left;
  font-family: 'Atlas Grotesk Web';
  font-size: 5rem;
  margin-bottom: 2rem;
}


.text-container {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/*First chart*/
.chart-title-top {
  font-weight:500;
  font-family: "Atlas Grotesk Web";
  margin-bottom: 9px;
  color: #EB474F;
  font-size: .85rem;
  letter-spacing: .05em;
}

.chart-title-bottom {
  font-family: 'Atlas Grotesk Web';
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 10px`;
  letter-spacing: -.5px;
}

div#cool-div {
   height: 112px;
   box-shadow: 0px 8px 4px -7px #f0f0f0;
   margin-top: -58px;
   -webkit-transform: translate3d(0, 0, 0);
   -moz-transform: translate3d(0, 0, 0);
   -ms-transform: translate3d(0, 0, 0);
   transform: translate3d(0, 0, 0);
   will-transform: translate;
}

#cool-div {
  /* position: absolute; */
  /*height: 210px;*/
}

text.circle-legend {
  font-family: "Atlas Grotesk Web";
  font-weight: 400;
}

.chart-title {
  position: relative;
}

.chart-text {
  z-index: 1;
  /* position: absolute; */
}

.swarm-chart-container {
  max-width: 864px;
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 3rem;
  position: relative;
}

.swarm-chart-axis-labels {
  font-family: "Atlas Grotesk Web";
}

text.annotations {
  font-family: "Atlas Grotesk Web";
  font-size: 13px;
  font-weight: 400;
  fill: #000000;
  stroke-width: 0.2;
  cursor: hand;
  cursor: pointer;
  pointer-events: none;
}

.quote {
  max-width: 40rem;
  margin: 0 auto;
}

circle.occupation-scatter {
  fill: #f0f0f0;
  stroke: #000000;
  opacity: 0.5;
  stroke-opacity: 1;
  stroke-width: 0.5;
  cursor: hand;
  cursor: pointer;
}

circle.legend {
  fill: #f0f0f0;
  stroke: #000000;
  opacity: 0.5;
  stroke-opacity: 1;
  stroke-width: 0.5;
}

div.chosen-drop{
  left: 14px
}


/*Chart 2*/

svg#region {
  padding-top: 0px;
  width: 100%;
  overflow: visible;
}

.jobless-region-chart-container {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

div.outer-container {
  box-shadow: 0px 8px 4px -7px #f0f0f0 ;
  border-style: solid;
  border-width: 0.1px;
  border-color: #f0f0f0;
}

.tooltip-2 {
  font-family: "Atlas Grotesk Web";
  position: absolute;
  background: #FFFFFF;
  border-radius: 3px;
}

div.tooltip-2.county-name{
  position: relative;
  text-align: center;
}

span.county-name {
  /*display:block;*/
   width:15em;
   margin: 0 auto;
   font-weight: 600;
   color: #54278f;
}

div.bottom-section{
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  /*display: table;*/
}


div.tooltip-2-county-risk-value{
  font-size: 16pt;
  font-weight: bold;
  width: calc(100% / 3.4);
  /*order: 1*/
  position: relative;
  text-align: center;
  /*margin: 0 auto;
  width: 2em;
  vertical-align: middle;*/
  display: table-cell;
  vertical-align: middle;

}


div.tooltip-2.label{
  width: calc(100% * (1.7/3));
  position: relative;
  /*text-align: center;
  display: table-cell;
  vertical-align: middle;*/

}

span.label{
    display:block;
    width:12em;
    height: 100%;
    margin: 0 auto;
    /*text-align: center;
    display: table-cell;
    vertical-align: middle;*/
}


.chart-2-title-top {
  font-weight:500;
  font-family: "Atlas Grotesk Web";
  margin-top: 50px;
  color: #EB474F;
  padding: 0 1rem;
  margin-bottom: 9px;
}

.chart-2-title-bottom {
  font-family: "Canela Web";
  font-weight: 400;
  padding: 0 1rem;
}

.chart-2-title-top {
  font-weight:500;
  font-family: "Atlas Grotesk Web";
  margin-bottom: 20px;
  margin-top: 50px;
  color: #54278f;
  padding: 0 1rem;
  font-size: .9rem;
  margin-bottom: 9px;
}

.chart-2-title-bottom {
  font-family: "Canela Web";
  font-weight: 400;
  padding: 0 1rem;
  font-family: 'Atlas Grotesk Web';
  letter-spacing: -.5px;
}

text.legend-text {
  font-family: "Atlas Grotesk Web";
  /*font-size: 11px;*/
  fill: #000000;

}


/*.selectedCounty {
  fill: #E8246C;
  opacity: 0.7;
}*/


#swarm {
    overflow: visible;
}

.tool-tip-bubble-chart {
    width: 250px;
    height: auto;
    background: white;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1000000;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    box-shadow: 0px 8px 4px -7px #e4e4e4;
    padding: .5rem .8rem;
    min-width: 250px;
    pointer-events: none;
    visibility: hidden;
}

.tool-tip-bubble-chart-job {
    font-family: 'Atlas Grotesk Web';
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .1em;
    margin-bottom: 3px;
    text-align: center;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 7px;
}

.tool-tip-bubble-chart-count {
    font-family: 'Atlas Grotesk Web';
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .04em;
    margin-bottom: 0px;
}

.tool-tip-bubble-chart-like {
    font-family: 'Atlas Grotesk Web';
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .04em;
    margin-bottom: 0px;
}

.tool-tip-bubble-chart-bolder {
    font-weight: 500;
    font-size: .9rem;
    margin-right: 1px;
}

.path-counties {
    cursor: hand;
    cursor: pointer;
    stroke: rgba(251, 251, 251, 0.08);
    stroke-width: 1;
    /* stroke: none; */
    /* stroke-width: 0; */
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: hand;
    cursor: pointer;
}

.hover-bucket-six path:not(.bucket-six){
  opacity:.1;
}
.hover-bucket-five path:not(.bucket-five){
  opacity:.1;
}
.hover-bucket-four path:not(.bucket-four){
  opacity:.1;
}
.hover-bucket-three path:not(.bucket-three){
  opacity:.1;
}
.hover-bucket-two path:not(.bucket-two){
  opacity:.1;
}
.hover-bucket-one path:not(.bucket-one){
  opacity:.1;
}


.rect-legend {
    cursor: pointer;
    cursor: hand;
}

.rect-legend:hover {
    stroke: black;
    stroke-width: 2px;
}

.states{
  fill:none;
  stroke:rgba(255,255,255,.5);
  stroke-width:1px;
  stroke: white;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend-bucket-title {
  font-family: 'Atlas Grotesk Web';
  font-size: small;
  font-weight: 400;
}

p.quote {
  font-weight: 600;
  margin: 0 auto;
  max-width: 30em;
  margin-bottom: 1.3em;
}

div.jobless-state-viz-container {
  margin-top: 50px;
  margin-bottom: 3em;
  /* margin: 0 auto; */
  /* max-width: 50em; */
}

.swing-state-title {
}

.swing-state-text-top {
  font-weight: 500;
  font-family: "Atlas Grotesk Web";
  margin-bottom: 9px;
  margin-top: 50px;
  color: #FF5C37;
  padding: 0 1rem;
  font-size: .9rem;
}

.swing-state-text-bottom {
  font-family: "Canela Web";
  font-weight: 400;
  padding: 0 1rem;
  font-family: 'Atlas Grotesk Web';
  letter-spacing: -.5px;
}

.jobless-state-viz-chart-area{
  position: relative;
  margin: 0 auto;
  /* margin-bottom: 0em; */
  -webkit-order: 1;
  order: 1;
  width: 420px;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-transform: translate;
}

.bars {
  /*text-align: center;*/
  font-family: 'Atlas Grotesk Web';
  font-size: x-small;
  font-weight: 600;
  width: 300px;
  margin: 0 auto;
  margin-left: 120px;
  transition: transform 1s;
  position: absolute;
}

.dem-bars {
  color: #019DE3;
  background-color: rgba(1, 157, 227, 1);
  display:inline-block;
  text-align: center;
}



.rep-bars {
  color: #FF5C37;
  background-color: rgba(255, 92, 55, 1);
  display:inline-block;
  text-align: center;
}


p.state-text-label {
  font-family: 'Atlas Grotesk Web';
  font-size: 12px;
}

.state-text-label {
  left: -105px;
  width: 100px;
}


div.bar-chart-annotation-container {
  position: relative;
  height: auto;
  -webkit-order: 2;
  order: 2;
  padding: 40px 40px;
  padding-top: 45vh;
  margin-left: 40px;
  /* height: 70vh; */
}


p.bar-chart-annotation-text {
  height: 65vh;
  opacity: .2;
  transition: opacity .5s;
}

.bar-chart-annotation-text-2 {
    opacity: 0.2;
    transition: opacity .5s;
}

.bar-chart-annotation-text-3 {
    opacity: 0.2;
    transition: opacity .5s;
}



/*
p.bar-chart-annotation-text-2 {
  position: absolute;
  top: 450px;
  right: -300px;
  width: 53%;

}*/


.jobless-state-viz-chart-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    max-width: 900px;
    margin: 0 auto;
}


.transition-out {
  -webkit-transform: translate(0,200px);
  transform: translate(0,200px);
  transition-duration: 1s;
}

.bar-chart-legend-rep {
  position: absolute;
  margin: 0 auto;
  margin-left: 120px;
  font-size: 14px;
  color: #ff5c37;
  font-family: 'Atlas Grotesk Web';
  /*display: inline-block;*/
}

.bar-chart-legend-dem {
  /*display: inline-block;*/
  position: absolute;
  margin: 0 auto;
  margin-right: 1px;
  font-size: 14px;
  color: #019DE3;
  font-family: 'Atlas Grotesk Web';
}



span.emphasis {
  font-weight: 600;
}

div.bar-chart-legend-top {
  position: absolute;
  top: -20px;
  font-family: 'Atlas Grotesk Web';
  font-size: 10px;
  font-weight: 500;
}


p.final-para {
  opacity: 0.2;
  transition: opacity .5s;
}

p.italic {
  font-style: italic;
}

span.italic {
  font-style: italic;
}

div.methodology {
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

p.methodology {
  padding-top: 2.5rem;
  font-family: 'Atlas Grotesk Web'
}

p.x-small {
  font-family: 'Atlas Grotesk Web';
}

.region-legend {
    margin-top: 20px;
}


#countyMenu {
    padding: 0 1rem;
}

.swing-state-container{
  max-width: 1000px;
  margin: 0 auto;
}

@media only screen and (max-width: 800px) {
  .swing-state-container{
    width:100%;
  }
  .jobless-state-viz-chart-area{
    width: 95%;
  }
  .bars{
  }
  div.bar-chart-legend-top{
    -webkit-transform: translate(-50%,0);
    transform: translate(-50%,0);
  }
  p.bar-chart-annotation-text{width: 90%;margin: 0 auto;background: white;height: auto;margin-bottom: 50vh;padding: 1rem;border: 1px solid rgba(136, 136, 136, 0.4);border-radius: 6px;font-family: 'Atlas Grotesk Web';font-size: .90rem;box-shadow: 1px 1px 3px 2px rgba(171, 171, 171, 0.3);}
  p.bar-chart-annotation-text-2{width: 90%;margin: 0 auto;background: white;height: auto;margin-bottom: 50vh;padding: 1rem;border: 1px solid rgba(136, 136, 136, 0.4);border-radius: 6px;font-family: 'Atlas Grotesk Web';font-size: .90rem;box-shadow: 1px 1px 3px 2px rgba(171, 171, 171, 0.3);}
  p.bar-chart-annotation-text-3{width: 90%;margin: 0 auto;background: white;height: auto;margin-bottom: 50vh;padding: 1rem;border: 1px solid rgba(136, 136, 136, 0.4);border-radius: 6px;font-family: 'Atlas Grotesk Web';font-size: .90rem;box-shadow: 1px 1px 3px 2px rgba(171, 171, 171, 0.3);}
  .jobless-state-viz-chart-header{
    -webkit-flex-wrap:wrap;
    flex-wrap: wrap;
  }
  div.bar-chart-annotation-container{
    z-index: 10;
    order: 1;
    padding: 0px;
    margin: 0px;
    padding-top: 45vh;
  }
  .jobless-region-chart-container{
    width:100%;
    max-width: 100%;
    margin-bottom: 50px;
  }
  .swarm-chart-container{
    width: 100%;
  }
  .chosen-container{
    min-width: 95%;
    margin: 0 auto;
  }
  .chart-title-bottom{width: 95%;margin: 0 auto;}
  .chart-title-top{
    width: 95%;
    margin: 0 auto;
    margin-bottom: 9px;
  }
}
@media only screen and (max-width: 450px) {
  p.bar-chart-annotation-text{
    width: 78%;
    line-height: 18px;
    font-size: 12px;
  }
  p.bar-chart-annotation-text-2{
    width: 78%;
    line-height: 18px;
    font-size: 12px;
  }
  p.bar-chart-annotation-text-3{
    width: 78%;
    line-height: 18px;
    font-size: 12px;
  }
  #swarm{
    overflow-x: scroll;
  }
  .chart-text{
    width:100%;
  }
  text.annotations{
    font-size: 11px;
    letter-spacing: 0px;
  }
  #menu-swarm-selector{
    width: 94%;
    z-index: 100000;
    position: relative;
    border: 1px;
    border-radius: 0;
    height: auto;
    font-family: 'Atlas Grotesk Web';
    font-size: 14px;
    padding: .5rem 1rem;
    margin: 0 auto;
    margin-top: 2rem;
    display: block;
    margin-bottom: 1rem;
  }
  circle.occupation-scatter{
    fill: #c7c7c7;
    stroke: black;
    stroke-opacity: .7;
    stroke-width: 1;
  }



  .swarm-chart-container{
  }
  .intro__hed{
    font-size: 40px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
  }
  .intro__dek{
    text-align: center;
    font-size: 18px;
    margin-bottom: 3rem;
  }
  #menu-county-selector{
    width: 94%;
    z-index: 100000;
    position: relative;
    border: 1px;
    border-radius: 0;
    height: auto;
    font-family: 'Atlas Grotesk Web';
    font-size: 14px;
    padding: .5rem 1rem;
    margin: 0 auto;
    margin-top: 2rem;
    display: block;
    margin-bottom: 1rem;
  }
}

@media only screen and (max-width: 400px) {
  p.bar-chart-annotation-text{
    opacity: 1;
  }
  .bars{
  }
  .intro__hed{
    font-size: 2.2rem;
  }
  .intro__dek{
    font-size: 16px;
  }
  .bar-chart-legend-dem{
    font-size: 12px;
  }
  .bar-chart-legend-rep{
    font-size: 12px;
  }
  .rep-bars{
  }
}

@media only screen and (max-width: 350px) {
  .bars{
    width: 180px;
  }
  div.bar-chart-legend-top{width: 120px;text-align: center;}
  .bar-chart-legend-rep{
    margin-left: 70px;
  }
  .swing-state-text-top{
    padding:0 .5rem;
  }
  p.state-text-label{
    font-size: 10px;
  }
  .swing-state-text-bottom{
    padding: 0 .5rem;
  }
  .intro__hed{
    font-size: 2rem;
    padding: 0 .5rem;
  }
  .intro__dek{
    font-size: 14px;
    padding: 0 .5rem;
  }
  .text-container{
    padding: 0 .5rem;
  }
}
