:root {
    --colorB1: #222;
    --primary: blue;
    --background: white;

    --footer-height: 4rem;
}
@media (max-width: 768px) {
    :root {
        --footer-height: 2rem;
    }   
}

main {
    min-height: 200vh;
    margin-bottom: var(--footer-height);
}

body {
    font-family: "Crimson Text", serif;
    font-size: 18px;
}

h1, h2, h3, h4, h5, .title-font {
    font-family: "Funnel Sans", sans-serif;
}


footer {
    position: fixed;
    bottom: 0;
    height: var(--footer-height);
    width: 100%;
    background: var(--background);
    border-top: 1px solid var(--colorB1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

footer ul {
    position: relative;
    height: 100%;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    width: 875px;
    max-width: 100%;
}
footer ul li {
    position: relative;
    text-align: center;
    width: calc(100% / 8);
}
footer ul li a {
    color: var(--colorB1);
    text-decoration: none;
    font-size: 16px;
    margin: 0 18px;
}
@media (max-width: 768px) {
    footer ul {
        margin: 0 .5rem;
    }
    footer ul li {
        width: fit-content;
        flex-grow: 1;
        max-width: calc(100% / 8);
    }
    footer ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        margin: 0;
    }
    footer ul li a span {
        display: inline-block;
        width: fit-content;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        
    }
    footer ul li a::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        height: 8px;
        width: 8px;
        background: var(--colorB1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }
    footer ul li a.active span {
        max-width: 65px;
        transition: .25s;
    }
    footer ul li a.active::after {
        display: none;
    }
}
footer ul .selector {
    position: absolute;
    bottom: 0;
    left: calc(var(--scroll, 0) * 1%);
    height: 2px;
    width: calc(100% / 8);
}
footer ul .selector::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 75%;
    background: var(--colorB1);
}

.flex-grow {
    flex-grow: 1;
}
figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

section {
    position: relative;
    height: calc(100vh - var(--footer-height, 0px));
    
}
section:nth-child(even) {
    background: yellow;
}

#title .container {
    flex-grow: 1;
}
#title {
    padding: 0;
    display: flex;
    flex-direction: column;
}
#title figure {
    margin: 0;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 18px 18px 18px 18px;

}
#title .title {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    height: fit-content;
    min-width: 25%;
    min-height: 25%;
    background: var(--background);
    padding: 32px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@media (max-width: 768px) {
    #title figure {
        height: 75%;
    }
    #title .title {
        width: 100%;
        top: unset;
        bottom: 0;
        left: 0;
        transform: none;
    }
}
#title h1 strong {
    font-size: 69px;
}