:root {
  --cr-red: #EF3E26;
  --gannett-light-blue: #B9E1FF;
	--gannett-dark-blue: #0A32A0;
  --gannett-dark-grey: #404040;
	--gannett-light-grey: #d7d7d7;
	--cr-off-white: #f7f5f0;
  --black: #000;
}

.interactive-container {
  font-family: 'Unify Sans', sans-serif;
}

body {
  margin: 0;
}

.body-copy {
  width: 90%;
  margin: auto;
}

.down-arrow {
  width: 10px;
  height: 10px;
  border-left: 3px solid;
  border-bottom: 3px solid;
  transform: rotate(-45deg);
  margin-left: 10px;
  margin-top: -3px;
  cursor: pointer;
}

.frace-fcounty {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
}

.interactive-container {
  background-color: var(--cr-off-white);
  color: var(--black)!important;
}

.interactive-container .interactive-title, .interactive-container h1 {
  text-align: center;
  margin: 0 auto 20px auto;
  padding: 20px 0;
  font-size: 2.5rem;
  border-top: 3px solid var(--cr-red);
  line-height: 1;
  width: 100%;
  margin: auto;
}

/* Counties */

.counties h2 {
  text-align: center;
  margin-top: 0;
  font-size: 1.5rem!important;
  margin-bottom: 20px;
  width: 80%!important;
}

.featured-county, .entered-county {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition-duration: 1s;
}

.featured-illo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

.featured-illo img {
  width: 60%;
}

.featured-illo img[value="essex"] {
  width: 40%;
}

.entered-county {
  display: none;
}

.stats {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.stats > p {
  margin: 0;
  padding-bottom: 0px;
  z-index: 3;
  position: relative;
  background-color: var(--cr-off-white);
  color: var(--black)!important;
  font-family: 'Unify Sans', sans-serif!important;
  font-size: 1rem!important;
}

.stats > div {
  font-size: 1rem!important;
}

.stats table {
  font-size: 1rem!important;
}

.combo .stats {
  font-family: var(--fonts-sans-serif);
}

.exp-race p {
  font-family: var(--fonts-sans-serif);
}

.frace-fcounty, .frace-ecounty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  position: relative;
  z-index: 2;
  background-color: var(--cr-off-white);
  color: var(--black)!important;
  cursor:pointer;
}

.exp-race {
  padding-top: 0px;
  opacity: 0;
  text-align: left;
  margin: -230px auto auto auto;
  position: relative;
  z-index: 1;
  background-color: var(--cr-off-white);
  color: var(--black)!important;
  transition-duration: 1s;
  width: 80%;
}

.exp-race p {
  text-align: center;
}

.exp-race table {
  width: 100%;
}

.exp-race table tr td:nth-child(2) {
  text-align: right;
}

/* CTA */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90%;
  margin: 25px auto;
  text-align: center;
}

.cta p {
  font-family: 'Unify Sans', sans-serif;
}

.cta button {
  background-color: var(--cr-red);
  color: var(--cr-off-white);
  border: 2px solid var(--black);
  padding: 3%;
  box-shadow: 0 5px 10px rgba(0,0,0,0.5);
  border-radius: 60px;
  font-family: var(--fonts-sans-serif);
}

/* County dropdowns */

.county-dropdowns {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.county-dropdowns p {
  display: block;
}

.county-dropdowns select {
  background: transparent;
  color: var(--black)!important;
  border: 2px solid;
  border-radius: 5px;
  margin: 20px auto;
  text-decoration: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: url('http://www.gannett-cdn.com/labs/dev/covid-race/assets/down.svg') no-repeat;
	background-position: right center;
	padding: 3px;
  width: 200px;
}

/* Cards */

.variables {
  display: none;
  align-items: flex-start;
  justify-content: space-around;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 400px;
  margin-top: 10px;
  width: 90%;
  margin: auto;
}

.variables > div {
  text-align: center;
  width: 100%;
  margin-bottom: 30px;
}

.variables div .card {
  background-color: var(--cr-off-white);
  color: var(--black);
  width: 100%;
  height: 360px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  border: 3px solid var(--cr-red);
  box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
}

.card p {
  color: var(--black);
  width: 85%;
  font-size: 1rem!important;
  font-family: var(--fonts-sans-serif);
  margin-top: 20px!important;
}

.card h3 {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 5%;
  width: 100%;
  border-bottom: 3px solid var(--cr-red);
  color: var(--black)!important;
  margin-top: 15px!important;
}

.card hr {
  background-color: var(--gannett-dark-blue);
  height: 5px;
  width: 100px;
  border: 0px solid;
}

.card p {
  line-height: 1.5;
  font-size: .95rem;
}

.card p span.number {
  background-color: yellow;
  font-weight: bold;
  color: var(--black);
}

/* Explainer */

.deaths-fcounty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
}

.deaths-fcounty span {
  margin-left: 5px;
}

.explainer {
  border: 1px solid;
  border-radius: 20px;
  width: 20px;
  margin-left: 10px;
}


/*  tabs  */

.tab {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding-bottom: 30px!important;
  width: 50%;
  margin: auto;
  padding-top: 20px!important;
  position: relative;
  z-index: 5;
}


@media screen and (max-width: 768px) {
  .tab {
    width: 100%;
    flex-direction: column;
    height: 150px;
  }
}

.tab button {
  border: 0px solid;
  border-radius: 0;
  background-color: var(--cr-off-white);
  border: 3px solid var(--black);
  cursor: pointer!important;
  margin: 5px;
  font-family: var(--fonts-sans-serif);
}

.tab button.selected {
  background-color: var(--black);
  color: var(--cr-off-white);

}

.hide {
	display: none;
}

.flex {
	display: flex;
}

.story-nav {
  margin-top: 30px;
}

.story-nav a {
  color: var(--black);
  border-bottom: 3px solid var(--cr-red);
  text-decoration: none;
}

/* .attribution */
.attribution {
  width: 100%;
  color: var(--black);
  font-style: oblique;
  text-align: center;
  margin: auto;

}

.attribution p {
  width: 100%;
  margin: auto;
  border-bottom: 3px solid var(--cr-red);
  padding-bottom: 25px;
  font-size: .7rem!important;
  font-family: var(--fonts-sans-serif);
}

.attribution p a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--cr-red);
}

.attribution p a:visited {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--cr-red);
}

.cta p.missing-note {
  color: var(--black);
  font-style: oblique;
  text-align: center;
  margin: auto;
  font-size: .7rem!important;
  font-family: var(--fonts-sans-serif);
  width: 50%;
}


.variables span.space {
  margin-right: 4px;
}

/* Responsive */

/* mobile breakpoint */
@media screen and (min-width: 426px) {




  .counties {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 80%;
    margin: auto;
  }

  .counties h2 {
    width: 80%;
  }

  .featured-illo {
    width: 50%;
  }


  .featured-county, .entered-county {
    align-items: center;
    justify-content: center;
  }

  .cta button {


    font-size: 1.1rem;
    margin-top: 30px;
  }
  .variables {
    flex-direction: row;
  }

  .variables > div {
    width: 45%;
  }

}

@media screen and (min-width: 769px) {
  .attribution, .interactive-container .interactive-title, .interactive-container h1 {
      width: 50%;
  }

  .cta button {
    padding: 1% 2%;
  }

  .variables > div {
    width: 30%;
  }

}
