@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Light.otf) format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-LightItalic.otf) format("opentype");
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Regular.otf) format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Italic.otf) format("opentype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Bold.otf) format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-BoldItalic.otf) format("opentype");
    font-weight: 700;
    font-style: italic;
}

:root {
    --zoones-blue: hsl(230, 40%, 55%);
    --zoones-blue-hsl: 230, 40%, 55%;

    --zoones-header-foreground: white;
    --zoones-header-foreground-inactive: hsl(0, 0%, 88%);
    --zoones-header-foreground-active: white;
    --zoones-border-radius: 30px;
    --zoones-border-radius-light: 6px;

    --zoones-decorator-window-height: 10rem;

    --zoones-blue-50: hsl(235, 41%, 95%);
    --zoones-blue-100: hsl(229, 40%, 86%);
    --zoones-blue-200: hsl(230, 40%, 77%);
    --zoones-blue-300: hsl(231, 40%, 68%);
    --zoones-blue-400: hsl(230, 40%, 61%);
    --zoones-blue-500: hsl(230, 40%, 55%);
    --zoones-blue-600: hsl(230, 38%, 52%);
    --zoones-blue-700: hsl(231, 39%, 48%);
    --zoones-blue-800: hsl(231, 43%, 45%);
    --zoones-blue-900: hsl(232, 51%, 38%);

    --zoones-gray-50: hsl(0, 0%, 95%);
    --zoones-gray-100: hsl(0, 0%, 89%);
    --zoones-gray-200: hsl(0, 0%, 81%);
    --zoones-gray-300: hsl(0, 0%, 73%);
    --zoones-gray-400: hsl(0, 0%, 68%);
    --zoones-gray-500: hsl(0, 0%, 62%);
    --zoones-gray-600: hsl(0, 0%, 59%);
    --zoones-gray-700: hsl(0, 0%, 55%);
    --zoones-gray-800: hsl(0, 0%, 51%);
    --zoones-gray-900: hsl(0, 0%, 44%);
    --zoones-black: black;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, ::before, ::after {
    box-sizing: inherit;
}

body, div, p, h1, h2, h3, h4, h5, ul {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    min-width: 300px;

    color: var(--zoones-gray-900);
}

body {
    font-family: Aileron, sans-serif;
    -moz-osx-font-smoothing: grayscale;
}

/**
 * ===================================================================
 * preloader
 *
 * -------------------------------------------------------------------
 */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--zoones-blue-200);
    z-index: 9999999;
    height: 100%;
    width: 100%;
}

.no-js #preloader {
    display: none;
}

#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    padding: 0;
    background-color: var(--zoones-blue-500);
    border-radius: 100%;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}

@keyframes sk-scaleout {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

header, .fixed-header {
    z-index: 1;

    width: 100%;

    background-image: linear-gradient(
            180deg,
            transparent 0%,
            hsla(var(--zoones-blue-hsl), 0.5) 2%,
            hsla(var(--zoones-blue-hsl), 0.5) 98%,
            transparent 50%);

    height: 4rem;
    overflow: hidden;

    transition: all 0.3s ease-in-out;

    color: var(--zoones-header-foreground);
    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 0 3px -3px white;
    border-bottom: white solid 1px;
}

header {
    position: absolute;
    top: 1rem;
}

.fixed-header {
    margin-top: 1rem;
    padding-top: 0.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.125rem;
}

body.scrolled > header {
    position: fixed;
    top: 0;

    background-color: hsla(var(--zoones-blue-hsl), 0.95);
}

header > .logo, .fixed-header > .logo {
    padding: 0.25rem;
    height: 100%;

    filter: drop-shadow(0 0 2px white);

    display: inline-block;
}

header > .logo > img, .fixed-header > .logo > img {
    height: 100%;
    max-height: 100%;
}

header > nav {
    font-weight: bold;
    height: 100%;

    display: flex;
    align-items: center;

    padding-right: 5rem;
}

header > nav ul {
    width: 100%;
    height: 100%;

    font-weight: bold;

    list-style: none;
}

header > nav ul > li {
    height: 100%;

    color: var(--zoones-header-foreground-inactive);

    position: relative;

    display: inline-flex;
    align-items: center;
}

header > nav ul > li a {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1rem;
    transition: color 0.3s ease-in-out;
}

header > nav ul > li a:after {
    position: absolute;
    content: '';
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    width: 90%;
    height: 5px;
    display: block;
    border-radius: 999px;
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

header > nav ul > li.current a:after {
    background-color: var(--zoones-header-foreground-active);
}

body.scrolled > header > nav ul > li.current a:after {
    opacity: 1;
}

header > nav ul > li a:hover {
    color: var(--zoones-header-foreground-active);
}

header > nav ul > li.current {
    color: var(--zoones-header-foreground-active);
}

section {
    display: flex;
    flex-direction: column;
    place-content: center;

    margin-bottom: 6rem;
    padding-top: 4rem;
}

section:last-of-type {
    margin-bottom: unset;
}

section#home {
    background-repeat: no-repeat;
    background-position: 35%;
    background-image: url(../images/iStock-1438294954_2500w.jpg);
    background-size: cover;
    width: 100%;
    height: 100%;
    min-height: 600px;

    position: relative;

    color: var(--zoones-header-foreground);

    display: flex;
    flex-direction: column;
    place-content: center;
}

.home-content {
    margin-left: 40%;
    height: 50%;
    width: 50%;

    background-color: hsla(0, 0%, 93%, 0.8);
    color: var(--zoones-blue-500);
    border-radius: var(--zoones-border-radius);
    box-shadow: 0 0 5rem var(--zoones-blue-500);
    text-shadow: 0 0 2px white;

    font-size: 6vh;
    font-weight: bold;

    display: flex;
    flex-direction: column;
    place-content: center;
    align-items: center;

    overflow: hidden;
}

.home-content > h1, .home-content > h2, .home-content > p {
    text-align: center;
}

.home-content > img {
    width: 70%;
    padding-bottom: 8vh;
    filter: drop-shadow(0 0 2px white);
}

.home-content > p {
    text-align: center;
    font-size: 1.5rem;

    padding-left: 1rem;
    padding-right: 1rem;
}

section#intro {
    place-self: center;
    width: 50%;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

section h2 {
    text-align: center;
    font-size: 2.0rem;
    color: var(--zoones-gray-700);
}

section h2 a {
    color: var(--zoones-gray-700);
}

section h3 {
    text-align: center;
    padding-bottom: 2rem;
    font-size: 3rem;
    color: var(--zoones-black);
}

section > p {
    padding-bottom: 1rem;
}

section > a.scroll-indicator {
    padding-top: 80px;

    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

section > a.scroll-indicator > span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    animation: scroll-down-animation 2s;
    animation-iteration-count: infinite;
    opacity: 0;
    box-sizing: border-box;
}

body.scrolled section > a.scroll-indicator > span {
    animation: finish-scroll-down-animation 0.5s ease-in-out;
    animation-iteration-count: 1;
    animation-delay: 0s;
}

section > a.scroll-indicator > span:nth-of-type(1) {
    animation-delay: 0s;
}

section > a.scroll-indicator > span:nth-of-type(2) {
    top: 16px;
    animation-delay: .15s;
}

section > a.scroll-indicator > span:nth-of-type(3) {
    top: 32px;
    animation-delay: .3s;
}

@keyframes scroll-down-animation {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes finish-scroll-down-animation {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.intro-decoration {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-image: url(../images/iStock-1143974084_2500w.jpg);
    background-attachment: fixed;
    width: 100%;
    height: var(--zoones-decorator-window-height);
}

.section-dark {
    background-color: var(--zoones-blue-400);
    color: white;
}

.section-dark h2 {
    color: var(--zoones-gray-200);
}

.section-dark h3 {
    color: white;
}

section#features {
    display: flex;
    flex-direction: column;
}

section#features {
    place-self: center;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    border-top: hsla(0, 0%, 100%, 0.1) solid 1px;
    border-bottom: hsla(0, 0%, 100%, 0.1) solid 1px;
}

.feature-content {
    width: 70%;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: row;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.feature:nth-child(odd) > .feature-content {
    flex-direction: row;
}

.feature:nth-child(even) > .feature-content {
    flex-direction: row-reverse;
}

.feature-content > img {
    max-width: 50%;
    max-height: 25rem;
    margin-right: 3rem;
    margin-left: 3rem;

    border: white solid 2px;
    box-shadow: 0 0 5px white;
    border-radius: var(--zoones-border-radius-light);

    overflow: hidden;
}

.feature-content > a {
    max-width: 50%;
    max-height: 25rem;
    margin-right: 3rem;
    margin-left: 3rem;

    overflow: hidden;
}


.feature-content > a > img {
    width: 100%;

    border: white solid 2px;
    box-shadow: 0 0 5px white;
    border-radius: var(--zoones-border-radius-light);
}

.feature-content > div {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    place-content: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.feature-content > div > p {
    padding-bottom: 2rem;
}

.feature-decoration {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../images/iStock-825774492_2500w.jpg);
    background-attachment: fixed;
    width: 100%;
    height: var(--zoones-decorator-window-height);
}

section#team, section#sponsors {
    width: 100%;

    padding-left: 2rem;
    padding-right: 2rem;

    display: flex;
}

.team-members, .sponsor-members {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-members {
    justify-content: center;
}

.sponsor-members {
    justify-content: center;
}

.team-member, .sponsor-member {
    min-width: 10rem;
    width: 100%;
    max-width: 20rem;
    min-height: 30rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: hsla(var(--zoones-blue-hsl), 0.1) solid 1px;
}

.team-member > img, .sponsor-member > img {
    align-self: center;
    justify-self: flex-start;

    height: 7rem;
    width: 7rem;
    border-radius: 9999px;

    margin-bottom: 1rem;
}

.irian-claim {
    padding: 1.0rem;
    background-color: #0014ff;
}

.team-member > img {
    box-shadow: 0 0 10px var(--zoones-blue-500),
    0 0 10px hsla(var(--zoones-blue-hsl), 0.8),
    0 0 10px hsla(var(--zoones-blue-hsl), 0.5);
}

.sponsor-member > img {
    box-shadow: 0 0 10px hsl(0, 0%, 66%),
    0 0 10px hsla(0, 0%, 66%, 0.8),
    0 0 10px hsla(0, 0%, 66%, 0.5);
}

.team-member > h2, .sponsor-member > h2 {
    text-align: center;
    height: 2rem;
    max-height: 2rem;

    font-size: 1.0rem;
}

.team-member > h3, .sponsor-member > h3 {
    text-align: center;
    color: black;

    height: 4rem;
    max-height: 4rem;

    font-size: 1.5rem;
}

.team-member > h4, .sponsor-member > h4 {
    text-align: center;

    height: 1rem;
    max-height: 1rem;
    line-height: 1rem;
    vertical-align: center;

    padding-bottom: 2rem;
    font-size: 0.8em;
}

.l1-sponsor {
    background-color: hsl(120, 100%, 93%);
    padding: 1rem;
}

.l2-sponsor {
    padding: 1rem;
}

.team-decoration {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    background-image: url(../images/iStock-1142770500_2500w.jpg);
    background-attachment: fixed;
    width: 100%;
    height: var(--zoones-decorator-window-height);
}


section#legal {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-content {
    width: 50%;
}

.legal-content > div {
    border-bottom: hsla(0, 0%, 100%, 0.1) solid 1px;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.legal-content:not(.compressed) > div {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.legal-content p {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.legal-content > div h4 {
    margin-bottom: 1rem;
}

section#contact {
    width: 100%;

    position: relative;
}

.contact-content {
    position: absolute;

    right: 10%;
    width: 50%;
    max-width: 40rem;

    display: flex;
    flex-direction: column;
    place-content: center;
    text-align: center;
}

@media only screen and (max-width: 900px) {
    section {
        padding-top: 6rem;
    }

    .home-content {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }

    section#intro {
        width: 90%;
    }

    section h3 {
        font-size: 2.0rem;
    }

    .feature-content {
        width: 90%;

        flex-direction: column !important;
    }

    .feature-content > a {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        margin-bottom: 1rem;
    }

    .feature-content > p {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .legal-content {
        width: 90%;
    }
}

@media only screen and (max-width: 800px) {
    .contact-content {
        position: relative;
        inset: 0;
        width: 100%;
        max-width: 100%;

        padding-bottom: 5rem;
    }

    .legal-content {
        width: 80%;
    }
}

@media only screen and (max-width: 900px) {
    header {
        flex-direction: column;
        height: auto;
    }

    header > .logo {
        height: 3rem;
    }

    header > nav {
        padding-right: 0;
    }

    header > nav > ul {
        display: flex;
        flex-direction: row;
        place-content: center;
    }
}

@media only screen and (max-width: 500px) {
    header > nav ul > li a {
        padding: 1rem 0.5rem
    }

    header > nav {
        font-size: 0.8rem
    }
}

@media only screen and (max-width: 712px) {
    .team-members, .sponsor-members {
        justify-content: space-around;
    }
}
