/* Fonts */
@font-face {
    font-family: DancingScript;
    src: url("fonts/DancingScript.ttf");
}

@font-face {
    font-family: FontAwesomeBrands;
    src: url("fonts/FontAwesomeBrands.woff2")
}

/* Globals */
:root {
    box-sizing: border-box;
    text-size-adjust: 100%;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    -o-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Media */
a:hover {
    opacity: 0.7;
}

img {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
}

.background {
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
}

figure {
    margin: 1rem;
    position: relative;
}

figcaption {
    bottom: 0;
    width: 100%;
    color: black;
    font-size: 2.5rem;
    position: absolute;
    text-align: center;
    line-height: 4rem;
    font-family: DancingScript;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    background: rgba(250, 250, 250, 0.8);
}

/* Sections */
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 5rem;
    text-align: center;
    font-family: DancingScript;
}

h2 {
    font-size: 2.5rem;
    font-family: DancingScript;
}

header {
    height: 50rem;
    font-size: 8rem;
    line-height: 9rem;
    font-family: DancingScript;
    background-image: url(images/backgrounds/header.webp);
}

main {
    padding: 0 1rem;
}

.fundraisers,
.sponsors,
.milestone,
.column {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

footer {
    font-size: 4rem;
    line-height: 6rem;
    font-family: FontAwesomeBrands;
    background-image: url(images/backgrounds/footer.webp);
}

.fa {
    color: white;
    padding: 0 1rem;
    text-decoration: none;
}

@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    figcaption {
        font-size: 3rem;
        line-height: 4rem;
    }

    .background {
        background-position: center;
    }

    .milestone {
        flex-direction: row;
    }

    .fundraisers,
    .sponsors {
        display: grid;
        grid-template-columns: 32% 32% 32%;
    }
}
