.row.cta {
    width: 100%;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}

#title-box,
#globeContainer {
    width: auto;

    /* Allow natural width */
}

#globeContainer {
    height: 500px;

    /* Default height */
}

a.pagelink {
    text-decoration: none;
    color: #6c757d;
}

a.pagelink:hover {
    background-color: #6c757d;
    transform: scale(1.25);
    padding: 3px;
    color: white;
    transition: background-color 150ms 200ms, transform 350ms cubic-bezier(0.78, -1.22, 0.17, 1.89);
}

p {
    font-size: 1.2rem;
    font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

section {
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: 60vh;
}

.active-tile {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: #dedede;
}

@media (max-width:991px) {
    .active-tile {
        height: 40px;
    }
}

header {
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1;
}

#map {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    display: none;
    z-index: 0;
}

#story {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 20px;
    display: none;
    top: -15vh;
}

.chapter {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 50vh;
    margin-bottom: 50px;
    transition: opacity 0.5s;
}

.chapter.active {
    background-color: rgba(255, 255, 255, 0.9);
}

#features {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.hidden {
    visibility: hidden;
}

.centered {
    width: 50vw;
    margin: 0 auto;
}

.lefty {
    width: 33vw;
    margin-left: 5vw;
}

.righty {
    width: 33vw;
    margin-left: 62vw;
}

.fully {
    width: 100%;
    margin: auto;
}

.light {
}

.dark {
    color: #fafafa;
    background-color: #444;
}

.step {
    margin-bottom: 50vh;
    min-width: 325px;

    /* margin-bottom: 10vh; */
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(19px);
}

.step.active {
    opacity: 0.9;
}

.step div {
    padding: 50px 50px;
    line-height: 25px;
    font-size: 1.4rem;
}

.step img {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.step p {
    line-height: 1.5rem;
    font-size: 1rem;
}

.step.fully #Michoacan3 {
    position: relative;
    width: 100%;
    height: auto;
}

.step.fully #Michoacan3 img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;

    /* Optional: Adjust size */
    height: auto;
}

@media (max-width: 750px) {
    .centered,
    .lefty,
    .righty,
    .fully {
        min-width: 75vw;
        margin-left: 9 rem;
    }

    .step div {
        padding: 30px 30px;
        line-height: 26px;
        font-size: 1.3rem;
    }
}

#controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
}

#buttons {
    margin-top: auto;
}

:root {
    --width: 300px;

    /* Adjust as needed */
    --height: 300px;

    /* Adjust as needed */
    --background: #000000;

    /* Adjust as needed */
}

h1.title {
    font-size: 9rem;
    line-height: 1rem;
    color: #575757;
    font-weight: 500;
}

#avo {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

#avo canvas {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#floatingFooter #dataset {
    margin-top: 10px;

    /* Add any other styles you want for the button in the footer */
}

#path1,
#path2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s forwards;
    animation-play-state: paused;
}

.animate-on-scroll path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: none;
}

.animate-on-scroll .x-axis-label {
    opacity: 0;
    animation: none;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.x-axis-label {
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-play-state: paused;
    display: none;
}

div#mexico {
    position: absolute;
    top: 10%;
    left: 50%;
}

div#california {
    position: absolute;
    top: 50%;
    left: 40%;
}

.responsive-svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.svg-container {
    width: 100%;
    min-width: 220px;
    max-width: 640px;

    /* Match the original SVG width */
    margin: 0 auto;
    padding: 0px !important;
}

#Michoacan3 img {
    max-width: 70%;
}

@media (max-width: 640px) {
    .responsive-svg {
        font-size: 1.4rem;

        /* Adjust font size for smaller screens */
    }
}

.responsive-svg text {
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    user-select: none;
}

.responsive-svg .axis-label {
    font-size: 1.4rem;
    font-weight: bold;
}

.responsive-svg .x-axis-label {
    font-size: 1.4rem;
}

.svg-container {
    width: 100%;
    height: auto;
}

.svg-container svg {
    width: 100%;
    height: auto;
}

.x-axis-label {
    font-size: 1.6rem;
}

.axis-label {
    font-size: 1.6rem;
    font-weight: bold;
}

.x-axis-label {
    text-anchor: middle;
}

.y-axis-label {
    text-anchor: middle;
}

@media (max-width: 600px) {
    #controls .row.cta {
        flex-direction: column;
        align-items: center;
    }

    #title-box,
    #globeContainer {
        width: 100% !important;
        max-width: 500px;
        margin-bottom: 20px;
        padding-left: 20px;
        padding-top: 20px;
    }

    #globeContainer {
        height: 300px !important;
    }

    h1.title {
        font-size: 5rem;
        line-height: 3.8rem;
    }

    .navbar-collapse {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }
}

@media (min-width: 601px) {
    #controls .row.cta {
        flex-direction: row;
        justify-content: space-between;
    }

    #title-box,
    #globeContainer {
        width: auto;
        margin-bottom: 0;
    }

    #globeContainer {
        height: 500px;
    }
}