.main-container {
    position: relative;
    min-height: 100vh;

    background-size: 100%;
    background-repeat: repeat-y;
    background-attachment: fixed;

    .shade {
        background-repeat: repeat-x;
        background-size: 100% 100%;
        width: 100%;
        height: 100vh;
    }

    .leading-container {
        margin-top: -85vh;
        margin-bottom: 10vh;

        .logos-box {
            position: relative;

            transform: scale(0.6);
            transform-origin: top left;

            left: -6.5rem;

            height: 10rem;

            .logos-row {
                position: absolute;
                top: 4.6rem;
                left: 10.4rem;

                display: flex;

                .top500-container {

                    position: relative;

                    top: -1.6rem;
                    left: 18.7rem;

                    > img {
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }
            }
        }

        h1 {
            font-size: 3rem;
            color: white;
            font-weight: 500;
            font-family: 'Domine', serif;

            text-shadow: 0 3px 2px rgb(0 0 0);

            max-width: 59rem;
        }
    }

    .large-bottom-margin {
        margin-bottom: 12rem;
    }

    .x-padding {
        padding-left: 10rem;
        padding-right: 10rem;
    }

    .card {
        padding: 1rem;
    }

    .scroll-col {
        .card {
            margin-bottom: 100vh;

            border: transparent;
            border-left: solid #9db71c 0.5rem;


            &:first-child {
                margin-top: 25vh;

                &:last-child {
                    margin-top: 0;
                    margin-bottom: 0;
                }
            }

            &:last-child {
                margin-bottom: 25vh;
            }
        }
    }

    .sticky-chart {
        position: sticky;
        top: calc(50vh - 715px/2);
    }
}


h2 {
    font-size: 1.8rem;
    font-family: 'Domine', serif;
}

h3 {
    font-size: 1.4rem;
    font-family: 'Domine', serif;
}

p {
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

/* Scroll Progress Bar Styles */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #9db71c;
    z-index: 9999;

    box-shadow: white 0 -0.3rem 1rem;

    /* Animation setup */
    transform-origin: 0 50%;
    animation: scroll-advance linear;

    /* Link animation to scroll progress */
    animation-timeline: scroll();
}

@keyframes scroll-advance {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Scroll to Top Button Styles */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    border: none;
    outline: none;
    background-color: white; /* Matches the green theme #9db71c */
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, opacity 0.3s;

    /* Visibility logic using scroll timeline */
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: scroll();
    animation-range: 0px 500px;
}

#scroll-to-top:hover {
    background-color: #9db71c;
}

#scroll-to-top img {
    width: 32px;
    height: 32px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}
