* {
  box-sizing: border-box;
}

/* general */
body {
  margin: 0;
  line-height: 1.5;
  font-family: sweet-sans-pro, sans-serif;
  font-weight: 500;
  font-style: normal;
}

header {
  padding: 1em;
  display: flex;
  flex-direction: column;
  margin-top: 20vh;
  text-align: center;
}

section {
  padding: 1em 1.75em;
  overflow-x: hidden;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

img {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
}

h1 {
  text-transform: uppercase;
  font-size: 2.3rem;
  position: relative;
  z-index: 1;
  display: inline-block;
}

h1::after {
  content: "";
  width: 100%;
  height: 50%;
  background-color: #e1ff00;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

h2 {
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 105%;
  height: 5px;
  width: 100vw;
  background-color: #e1ff00;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  font-size: .9rem;
  color: #444444;
}

header a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

main a, footer a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all .25s ease-in-out;
  padding: 5px 0px;
}

a:focus, a:hover {
  outline: none;
}

main a::after, footer a::after {
  content: "";
  position: absolute;
  background-color: #e1ff00;
  height: 25%;
  width: 95%;
  bottom: 2px;
  left: 10px;
  z-index: -1;
  transition: all .25s ease-in-out;
}

main a:hover::after, main a:focus::after, footer a:hover::after, footer a:focus::after {
  height: 50%;
  left: 0;
}

/* header  */
.branding-link img {
  transition: all .25s ease-in-out;
}

.branding-link:focus img, .branding-link:hover img {
  width: 85%;
}

/* forms */
form {
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
}

label {
  font-size: .75rem;
  color: #a7a7a7;
  font-weight: 700;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 10px;
}

select, option {
  font-family: sweet-sans-pro, sans-serif;
  font-weight: 500;
  font-style: normal;
  padding: 5px;
  display: inline-block;
  width: 70%;
}

select {
  border: none;
  outline: none;
  border-radius: 0;
  border-bottom: 1px solid #a7a7a7;
  background-color: #fff;
}

select:focus, select::selection {
  border-bottom: 2px solid #000;
}

.submit-button {
 border: 1px solid #a7a7a7;
 cursor: pointer;
 background: transparent;
 position: relative;
 box-shadow: 5px 5px 5px #e1ff00;
 transition: all .25s ease-in-out;
 width: 20%;
 padding: 5px;
 display: inline-block;
}

.submit-button:hover, .submit-button:focus {
  border: 1px solid #000;
  box-shadow: 2px 3px 5px #e1ff00;
  outline: none;
}

/* error message */
.error-message {
  color: red;
}

/* stats */
.state-stats-container {
  text-align: center;
}

.state-stats-list, .county-stats-list {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

.stat {
  font-size: 2rem;
  padding: 15px 0;
  width: 100%;
}

.stat:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.county-stats-list .stat:not(:last-child) {
  border-bottom: 1px solid #a7a7a7;
}

.stat-label {
  color: #a7a7a7;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  display: block;
}

.new-stat {
  font-size: 1rem;
  position: relative;
  color: #a7a7a7;
}

.new-stat::before {
  content:"\2191 ";
  background-color: #e1ff00;
  position: absolute;
  bottom: 2px;
  left: -15px;
  color: #000;
}

/* news */
.state-news-list {
  margin-top: 1.5em;
}

.news-article-card {
  border: 1px solid #000;
  padding: 10px 20px;
}

.news-article-card:not(:last-child) {
  margin-bottom: 20px;
}

.news-meta-container {
  display: flex;
  flex-direction: row;
}

.news-meta-info {
  width: 35%;
  color: #a7a7a7;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
}

.news-meta-info:nth-child(even) {
  text-align: right;
  width: 65%;
}

.article-title {
  position: relative;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #000;
}

.article-link {
  display: inline-block;
}

/* footer */
footer {
  padding: 1em;
  color: #a7a7a7;
  border-top: 1px solid #a7a7a7;
}

/* helpers */
.hidden {
  display: none;
  transition: all .25s ease-in-out;
}

.secondary-bg {
  background-color: #f3f3f3;
}

.top {
  margin-top: 0;
  border-bottom: 1px solid #f3f3f3;
  box-shadow: 0px 5px 5px #f3f3f3;
  transition: all .5s ease-in-out;
}

.small-txt {
  font-size: .7rem;
}

/* media  queries */
@media screen and (min-width:680px) {
  img {
    width: 50%;
  }

  .branding-link:focus img, .branding-link:hover img {
    width: 51%;
  }

  header, section, footer {
    padding: 2em 4em;
  }

  h1 {
    font-size: 3rem;
    margin-bottom: .25em;
  }

  h2 {
    font-size: 2.2rem;
  }

  /* form */
  form {
    margin: 30px 0;
  }
  
  label {
    width: 20%;
    margin: auto 0;
  }
  
  select, option {
    width: 50%;
  }

  .submit-button {
    width: 20%;
  }
  
  /* stats */
  .stat {
    font-size: 2rem;
    padding: 15px 0;
    width: 33.33%;
  }
  
  .stat:not(:last-child) {
    border-bottom: none;
    border-right: 1px solid #f3f3f3;
  }

  .county-stats-list .stat:not(:last-child) {
    border-bottom: none;
    border-right: 1px solid #a7a7a7;
  }

  /* news */
  .state-news-list {
    display: flex;
    flex-wrap: wrap;
  }

  .news-article-card {
    width: 48%;
    display: flex;
    flex-direction: column;
    margin: 0 5px 20px 5px;

  }

  .news-article-card h2 {
    justify-self: flex-start;
  }

  .article-link {
    align-self: flex-start;
  }
}

@media screen and (min-width:1000px) {

  .news-article-card {
    width: 32%;
  }
}

@media screen and (min-width:1200px) {

  img {
    width: 25%;
  }

  h1 {
    font-size: 4rem;
  }

  .branding-link:focus img, .branding-link:hover img {
    width: 26%;
  }

  header {
    padding: 2em 15em;
  }

  section {
    padding: 2em 15em;
  }
}