@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Homepage foundation. All rules are scoped so this file cannot restyle interior pages. */
.home-page {
    background-color: #cdebf5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 1) 0.1em, transparent 0.1em),
        linear-gradient(90deg, rgba(255, 255, 255, 1) 0.1em, transparent 0.1em);
    background-size: 2em 2em;
    color: #262827;
    font-family: "Mona Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page .page,
.home-page .page-body,
.home-page main {
    margin: 0;
    min-width: 0;
    width: 100%;
}

.home-page .page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-page .page-body {
    background: linear-gradient(to right, rgba(205, 235, 245, 1) 45%, rgba(205, 235, 245, 0) 100%);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-page h1 {
    color: #262827;
    font-size: 68px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

.home-page h2 {
    color: #000;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1em;
}

.home-page h3 {
    color: #262827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1em;
    text-transform: uppercase;
}

.home-page p {
    color: #262827;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 1em;
}

.home-page a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    word-break: break-word;
}

.home-page img {
    display: block;
    height: auto;
    max-width: 100%;
}

.home-page .text-white,
.home-page .text-white a {
    color: #fff;
}

/* Header and hero */
.home-page .nav-bar {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: space-between;
    margin: 0 0 100px;
    padding: 20px 2%;
    width: 100%;
}

.home-page .logo {
    height: 106px;
    object-fit: contain;
    width: 236px;
}

.home-page .hero,
.home-page .get-started {
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
    padding-left: 2%;
    padding-right: 2%;
    width: 100%;
}

.home-page .hero {
    align-items: flex-end;
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

.home-page .hero-text {
    align-items: flex-start;
    display: flex;
    flex: 0 1 67%;
    flex-direction: column;
    min-width: 0;
}

.home-page .hero-body {
    color: #424543;
    display: block;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.45;
    width: 80%;
}

.home-page .vocab-stack {
    flex: 1 1 33%;
    max-height: 600px;
    min-width: 0;
    object-fit: contain;
    width: 33%;
}

/* State selector and map */
.home-page .get-started {
    align-items: center;
    display: flex;
    gap: 22px;
    margin-bottom: 215px;
}

.home-page .get-started-left {
    align-items: flex-start;
    display: flex;
    flex: 0 0 33%;
    flex-direction: column;
    min-width: 0;
    padding-top: 10px;
}

.home-page .cards,
.home-page .cards > div,
.home-page .cards form {
    width: 100%;
}

.home-page .cards {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.home-page .card1,
.home-page .card2 {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.home-page .card1 {
    background: #2eb8e6;
    margin-bottom: 20px;
}

.home-page .card-headline {
    color: #262827;
    margin-bottom: 2px;
}

.home-page .state-selector-row select {
    margin: 0;
}

.home-page .map {
    align-content: center;
    background-color: #fff;
    clip-path: polygon(90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%, 0 0);
    display: flex;
    flex: 1 1 67%;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
}

.home-page .map-wrapper {
    position: relative;
    width: 100%;
}

.home-page #US_map {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.home-page #US_map [role="link"] {
    cursor: pointer;
}

.home-page.econ-challenge #US_map [role="link"] {
    fill: #89b74e;
}

.home-page.econ-challenge #US_map [role="link"]:hover,
.home-page.econ-challenge #US_map [role="link"]:focus {
    fill: #1868a1;
}

.home-page.finance-challenge #US_map [role="link"] {
    fill: #007cc4;
}

.home-page.finance-challenge #US_map [role="link"]:hover,
.home-page.finance-challenge #US_map [role="link"]:focus {
    fill: #0070b0;
}

.home-page #US_map [role="link"]:focus {
    outline: none;
    stroke: #25408f;
    stroke-width: 4px;
}

.home-page #cursor_label {
    background-color: #141414;
    box-shadow: 0 3px 1px rgba(0, 0, 0, 0.75);
    color: #fff;
    display: none;
    left: 0;
    padding: 12px;
    position: absolute;
    top: 0;
    transform: translate(-50%, calc(-100% - 15px));
    z-index: 50;
}

.home-page #cursor_label::after {
    background-color: #141414;
    bottom: -4px;
    content: "";
    display: block;
    height: 15px;
    left: 50%;
    margin-left: -7.5px;
    position: absolute;
    transform: rotate(45deg);
    width: 15px;
}

.home-page #error {
    background-color: #d00;
    color: #fff;
    font-weight: 600;
}

.home-page #error * {
    color: #fff;
}

.home-page #error.sessionExpired {
    clear: both;
    display: inline-block;
}

/* Links and directional arrows */
.home-page .explore-button {
    align-items: baseline;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 0;
    text-decoration: none;
}

.home-page .explore-button span {
    color: #262827;
    font-size: 24px;
    font-weight: 700;
}

.home-page #explore-button-white {
    color: #fff;
}

.home-page .green-arrow-right {
    border-color: #a5b839 #a5b839 transparent transparent;
    border-style: solid;
    border-width: 8px;
    flex: 0 0 auto;
    height: 0;
    transform: rotate(45deg);
    width: 0;
}

.home-page .hover-underline-animation {
    padding-bottom: 10px;
    position: relative;
}

.home-page .hover-underline-animation::after {
    background-color: #a0ad39;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
    width: 100%;
}

.home-page .explore-button:hover .hover-underline-animation::after,
.home-page .explore-button:focus .hover-underline-animation::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Footer */
.home-page .footer {
    align-items: flex-start;
    align-self: stretch;
    background-color: #262827;
    clip-path: polygon(90% 0, 100% 20%, 100% 100%, 0 100%, 0 0);
    display: flex;
    flex-direction: column;
    padding: 40px 2% 14px;
}

.home-page .footer-main {
    align-items: flex-start;
    display: flex;
    gap: 37px;
    margin-bottom: 80px;
    width: 80%;
}

.home-page .logo-footer {
    height: 148px;
    object-fit: contain;
    width: 30%;
}

.home-page .footer-text {
    width: 70%;
}

.home-page .footer-main h2 {
    color: #a5b839;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-page .footer-bottom {
    align-items: center;
    align-self: stretch;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .home-page .nav-bar {
        margin-bottom: 40px;
    }

    .home-page h1 {
        font-size: 42px;
    }

    .home-page h2 {
        font-size: 32px;
    }

    .home-page h3 {
        font-size: 18px;
    }

    .home-page p {
        font-size: 16px;
    }

    .home-page .hero,
    .home-page .get-started {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-page .hero {
        gap: 0;
        margin-bottom: 40px;
    }

    .home-page .hero-text,
    .home-page .vocab-stack {
        flex-basis: 50%;
        width: 50%;
    }

    .home-page .hero-body {
        font-size: 18px;
    }

    .home-page .logo {
        width: 200px;
    }

    .home-page .explore-button span {
        font-size: 18px;
    }

    .home-page .get-started {
        flex-wrap: wrap;
        margin-bottom: 60px;
    }

    .home-page .get-started-left,
    .home-page .map {
        flex-basis: 100%;
        width: 100%;
    }

    .home-page .cards {
        align-items: stretch;
        flex-direction: row;
    }

    .home-page .cards > div,
    .home-page .card2 {
        flex: 1 1 0;
    }

    .home-page .card2 {
        padding: 20px 0 0 20px;
    }

    .home-page .map {
        min-height: 500px;
    }

    .home-page .footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-page .footer-main {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .home-page .nav-bar {
        margin-bottom: 20px;
        padding: 10px 5%;
    }

    .home-page .nav-bar .explore-button {
        display: none;
    }

    .home-page .logo {
        margin-left: auto;
        margin-right: auto;
        width: 200px;
    }

    .home-page h1 {
        font-size: 42px;
    }

    .home-page h2 {
        font-size: 32px;
    }

    .home-page h3 {
        font-size: 18px;
    }

    .home-page p {
        font-size: 16px;
    }

    .home-page .hero,
    .home-page .get-started {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-page .hero {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0;
        margin-bottom: 40px;
    }

    .home-page .hero-text,
    .home-page .vocab-stack {
        flex-basis: 100%;
        width: 100%;
    }

    .home-page .hero-text {
        padding-bottom: 20px;
    }

    .home-page .hero-body {
        font-size: 18px;
        width: 90%;
    }

    .home-page .vocab-stack {
        max-width: 450px;
        padding-right: 30px;
    }

    .home-page .get-started {
        margin-bottom: 60px;
    }

    .home-page .get-started-left {
        flex-basis: 100%;
        width: 100%;
    }

    .home-page .card1 {
        margin-bottom: 0;
    }

    .home-page .card2 {
        padding: 20px 0 0 20px;
    }

    .home-page .map {
        display: none;
    }

    .home-page .footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-page .footer-main {
        flex-wrap: wrap;
        gap: 0;
        margin-bottom: 40px;
        width: 100%;
    }

    .home-page .logo-footer {
        width: 50%;
    }

    .home-page .footer-text {
        width: 90%;
    }

    .home-page .footer-bottom {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .home-page .footer-bottom .explore-button {
        margin-top: 10px;
    }

    .home-page .explore-button span {
        font-size: 18px;
    }
}
