.bg-dark {
    background: rgb(33, 33, 33);
}

.underline-orange {
    border-bottom: 2px solid #f4bb32;
}

.underline-red {
    border-bottom: 2px solid #e85c41;
}

.interstate {
    font-family: 'interstate', 'Helvetica', 'sans-serif';
}

.interstate-condensed {
    font-family: 'interstate-condensed', 'interstate', sans-serif;
}

.shadow-1 {
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, .2)
}

.legend-color {
    border-radius: 5px;
    display: inline-block;
    line-height: 1.2em;
    padding: 1px 2px;
}

.intro {
    margin-top: 0 !important;
    position: relative;
}

.step-visuals {
    overflow-x: hidden;
    pointer-events: none;
    position: sticky;
    top: 0;
}

#intro-text-container {
    height: 100vh;
    z-index: 500;
}

.intro-text {
    color: #ffffff;
    z-index: 600;
    background: rgba(33, 33, 33, 0.5);
    font-size: 28px;
    font-weight: 700;
}

#mapbox {
    height: 100vh;
    position: absolute;
    opacity: 1;
    top: 0;
    transition: opacity 2.3s ease-in-out;
    width: 100vw;

    overflow-x: hidden;
    pointer-events: none;
    position: sticky;
}

.intro .graphics-container svg {
    position: absolute;
}

.intro-title {
    align-items: center;
    color: rgb(232, 229, 229);
    display: flex;
    flex-direction: column;
    font-weight: 900;
    justify-content: center;
    line-height: 1.5em;
    position: relative;
    text-align: center;
}


.intro-title h1,
.intro-byline {
    z-index: 2;
}

.intro-title h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 3.5rem;
    color: #212121;
    line-height: 120%;
}

.intro-title h1 {
    font-size: 48px;
}

@media (max-width: 768px) {
    .intro-title h1 {
        font-size: 34px;
    }
}

.intro-byline {
    font-weight: 400;
    color: #212121;
    font-size: 20px;
}

.intro-byline a {
    color: #00728D;
    text-decoration: none;
}

.sub-byline {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 0;
}

.step {
    align-items: center;
    display: flex;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    height: 30vh;
    justify-content: center;
    margin-top: 45vh;
    margin-bottom: 45vh;
    position: relative;
    opacity: 0.9;
    z-index: 7500;
}

.step p {
    background-color: rgb(232, 229, 229);
    color: rgb(33, 33, 33);
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    width: 80%;
    z-index: 10000;
    -webkit-transform: translate3d(0, 0, 0);
}

@media (min-width: 600px) {
    .step p {
        width: 50%;
    }
}

.first-step {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    height: 0;
}

.second-step {
    margin-top: 0;
}

/* Retina-specific stuff here */

@media (max-width: 500px) and (-webkit-min-device-pixel-ratio: 2) {

    .step p {
        font-size: 1.2rem;
        font-weight: 100;
        line-height: 1.4em;
        padding: 1rem;
        width: 80%;
    }
    .intro-title {
        font-size: 2.5rem;
    }
}

.article-text {
    /* background: rgb(33, 33, 33);
    color: #ffffff; */
    background: #fff;
    color: #212121;
    margin: 0 auto;
    max-width: 768px;
    padding: 1rem;
}

p {
    font-family: 'interstate', 'Helvetica', 'sans-serif';
    font-size: 20px;
    line-height: 34px;
}

.legend-container {
    height: 18px;
}

#caserate-legend,
#poverty-legend {
    background-color: rgb(232, 229, 229);
    padding: 0 2px 5px;
    margin-top: 0px;

}

.legend-text {
    font-size: 14px;
    padding-top: 2px;
}

.legend-text span {
    line-height: 16px !important;
}

/* fade animations */
.fade-in-image {
    animation: fadeIn 1s;
    -webkit-animation: fadeIn 1s;
    -moz-animation: fadeIn 1s;
    -o-animation: fadeIn 1s;
    -ms-animation: fadeIn 1s;
  }
  @keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }
  
  @-moz-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }
  
  @-webkit-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }
  
  @-o-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }
  
  @-ms-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }

  .fade-out-image {
    animation: fadeOut 1s;
    -webkit-animation: fadeOut 1s;
    -moz-animation: fadeOut 1s;
    -o-animation: fadeOut 1s;
    -ms-animation: fadeOut 1s;
  }
  @keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
  }
  
  @-moz-keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
  }
  
  @-webkit-keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
  }
  
  @-o-keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
  }
  
  @-ms-keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
  }