* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#root {
    width: 100%;
    min-height: 100vh;
}
a:focus {
    color: maroon;
}
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    line-height: 1.6em;
    font-size: 16px;
    font-family: Georgia, serif;
    width: 100vw;
}
h1 {
    font-size: 50px;
    line-height: 1em;
    text-align: center;
    font-weight: 400;
    font-family: Playfair Display, serif;
}
h2 {
    font-family: Playfair Display, serif;
    font-size: 25px;
    line-height: 1.2em;
    width: 100%;
    margin: 0 auto;
}
a {
    color: maroon;
}
h2.section-header {
    color: maroon;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
}
.credits_font {
    font-family: Playfair Display, serif;
    font-size: 15px;
    line-height: 2em;
}
.contentdiv {
    position: relative;
    margin-top: 20px;
    top: 0;
    height: 2px;
    width: 730px;
    margin-left: auto;
    margin-right: auto;
    background-color: #000;
}
.section {
    color: maroon;
    text-align: center;
    margin: 20px auto;
}
.button_label {
    position: absolute;
    left: 50%;
    line-height: 20px;
    transform: translate(-50%);
    font-size: 16px;
    top: 12px;
    color: #0a8f4e;
    background-color: #dfe3c4;
    white-space: nowrap;
}
#minority_populations {
    font-size: 14px;
}
.oval-dollar {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.1px;
    width: 25px;
    border: 2px solid #393a33;
    height: 42px;
    z-index: 1;
    border-radius: 50%;
    opacity: 0.7;
}
.agency_option {
    position: relative;
    border: 1px solid #393a33;
    height: 25px;
    width: 100%;
    background-color: #dfe3c4;
}
.grant_button_container {
    display: flex;
    align-items: top;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 350px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    overflow: visible;
}
.grant_button {
    position: relative;
    background-color: #dfe3c4;
    border: 2px solid #393a33;
    text-align: center;
    color: #393a33;
    width: 140px;
    height: 50.5px;
    transition: transform 0.2s ease;
    vertical-align: top;
    z-index: 20;
}
@media (hover: hover) and (pointer: fine) {
    .grant_button:hover {
        transform: translateY(-5px);
    }
}
#enddiv {
    position: absolute;
    width: 10px;
    height: 50px;
}
#intro-container {
    position: relative;
    background-image: url(/data-visualizations/2025/maroon-grants-story/cover.jpg);
    background-size: cover;
    background-position: center center;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
}
#intro-content {
    position: absolute;
    top: 53dvh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#header {
    color: #fff;
    box-sizing: border-box;
    background-color: #244153e6;
    border-radius: 10px;
    margin-bottom: 5dvh;
    text-align: center;
}
.headerdiv {
    position: relative;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}
#byline-container {
    margin-top: 3dvh;
}
#subhead {
    margin-top: 3dvh;
    background-color: #244153e6;
    border-radius: 10px;
    color: #fff;
    font-weight: 400;
    text-align: center;
}
#maroon {
    fill: #fff;
    top: 0;
    display: block;
    width: 400px;
    margin: 30px auto;
}
#intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.byline {
    font-size: 15px;
    text-align: center;
    color: #fff;
    background-color: #244153cc;
}
#arrow {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    left: 50%;
    z-index: 10;
    transform: translate(-50%);
    bottom: 30px;
}
#arrow:hover {
    transform: translate(-50%, 5px);
}
.byline_link {
    font-weight: 700;
    color: #ff7070;
}
#separator {
    position: relative;
    width: 40vw;
    height: 3px;
    background-color: #fff;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}
#scroll {
    position: relative;
    top: 10px;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 100px;
}
#methods {
    font-size: 5px;
    padding-bottom: 20px;
}
.method-text {
    font-size: 10px;
    color: gray;
    margin-bottom: 10px;
}
.credits_container {
    padding: 20px 20px 30px;
}
.scroll__graphic {
    position: sticky;
    top: 20px;
    width: 450px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.body_container {
    position: absolute;
    margin-top: 50px;
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}
.pre_body_container {
    position: relative;
    width: 1000px;
    margin: 50px auto;
    left: 0;
    right: 0;
}
.inner_body_container {
    position: absolute;
    width: 100%;
}
.body_text_container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.body_font {
    line-height: 1.4em;
    font-size: 19px;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}
.is_relative {
    position: relative;
}
#x_mark {
    position: relative;
    left: 5px;
    width: 20px;
}
.chart-svg {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
}
@media screen and (max-width: 1000px) {
    .body_container {
        width: 99%;
    }
    .body_font {
        font-size: 17px !important;
    }
    .pre_body_container {
        width: 99%;
    }
    .contentdiv {
        width: 90%;
    }
}
@media screen and (max-width: 500px) {
    .scroll__graphic {
        width: 400px;
        padding-left: 0;
        padding-right: 0;
    }
}
@media screen and (max-width: 400px) {
    #header {
        font-size: 35px;
    }
    #subhead {
        font-size: 18px;
    }
}
@media screen and (max-width: 450px) {
    .text_container {
        width: 100% !important;
    }
    .scroll_container {
        width: 90% !important;
    }
    #maroon {
        width: 300px !important;
    }
    #arrow,
    #subhead {
        display: none !important;
    }
    .scroll__graphic {
        width: 95%;
        top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .grant_button_container {
        width: 90%;
        gap: 15px;
    }
    #agency_options {
        margin-bottom: 0 !important;
    }
    .grant_button {
        width: 140px;
        align-items: top;
        height: 50px;
        min-width: 50px;
    }
    .button_label {
        top: 12px;
    }
    .oval-dollar {
        width: 20px;
        height: 38px;
        margin-top: 3.5px;
    }
    #graphic_title {
        position: relative;
        top: 3vw;
        font-size: 25px;
        color: maroon;
    }
}
#graphic-title-container {
    position: relative;
    height: 50px;
}
#graphic_title {
    margin: 0;
    font-size: 25px;
    color: maroon;
}
#method-show {
    text-decoration: underline;
    cursor: pointer;
    margin-left: -8px;
    margin-bottom: 10px;
}
#maroon_end {
    width: 20px;
    margin-left: 10px;
    vertical-align: middle;
}
.offset_container {
    position: relative;
    height: 80vh;
}
.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.scroll_container {
    position: relative;
    padding: 20px;
    z-index: 10;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.text_container {
    position: relative;
    margin-bottom: 90vh;
    padding: 8px;
    border: 1px solid #800000;
    border-radius: 10px;
    background-color: #fff;
    z-index: 20;
    width: 350px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.scroll_font {
    color: #000;
    font-size: 18px;
}
@media screen and (max-width: 750px) {
    .headerdiv {
        width: 90%;
        padding: 0;
    }
    #intro-content {
        width: 90%;
    }
    #header {
        position: relative;
        padding: 0;
        font-size: 35px;
    }
    #maroon {
        width: 350px;
    }
    #subhead {
        position: relative;
        padding: 0;
        font-size: 20px;
    }
}
@media screen and (max-height: 680px) {
    #header {
        font-size: 30px;
    }
    #subhead {
        font-size: 20px;
    }
    .byline {
        line-spacing: 1em;
    }
    #arrow {
        bottom: 10px;
    }
}
@media screen and (max-height: 606px) {
    #arrow {
        display: none;
    }
}
@media screen and (max-height: 430px) {
    #header {
        font-size: 6dvh !important;
    }
    #subhead {
        font-size: 4dvh !important;
    }
    #intro-content {
        top: 270px !important;
    }
    #arrow {
        display: none;
    }
    #maroon {
        margin-top: 10px;
    }
}
@media screen and (max-height: 550px) {
    #subhead {
        display: none;
        font-size: 3dvh !important;
    }
    .byline {
        font-size: 3.1dvh !important;
        margin: 0;
    }
    #separator {
        margin-top: 0 !important;
    }
}
@media screen and (max-height: 390px) {
    #intro-content {
        top: 180px !important;
    }
}
@media screen and (max-height: 330px) {
    #intro-content {
        top: 180px !important;
    }
}
