* {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5;
}
h1, h2 {
    font-weight: 450;
}

:root {
    font-size: 20px;
    color: #536942;
}
body {
    margin: 0;
}

a {
    color: #a08d2c;
    &:hover {
        color: #dab200;
    }
}
.button {
    font-size: 1rem;
    padding: 0.75em 1.5em;
    border-radius: 1.5em;
    margin: 0 auto;
    background-color: #eae5dd;
    width: fit-content;

    & * {
        text-decoration: unset;
    }
}

#content img, #content .img {
    margin: 0.5em 0;
    &.right {
        float: right;
        margin-left: 3em;
    }
    &.left {
        float: left;
        margin-right: 3em;
    }
}

body > :not(#banner) {
    max-width: 50rem;
    margin: 1em auto;
    padding: 0 2em;
}

#header, #footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & ul {
        padding: 0;
        display: flex; list-style-type: none;
        flex-flow: row wrap;
        line-height: 2.5;
    }
    & .selected {
        color: #dab200;
    }
    &#footer ul {
        max-width: 14em;
    }

    &#header nav li {
        margin-left: 2em;
    }
    &#footer nav li {
        margin-right: 2em;
    }
    &#footer * {
        font-size: 0.8rem;
    }
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3em;
    &.halved > * {
        max-width: 23.5rem;
    }
}

#headerLogo, #footerLogo, #dropDownButton {
    &, & img {
        height: 5em;
        width: 5em;
    }
    filter: brightness(0%);
    &:not(#footerLogo):hover {
        filter: brightness(50%);
    }
}
#dropDownButton {
    display: none;
}

#banner {
    padding: 7em 2em;
    margin-bottom: 3em;
    background-image: url(./img/background.webp);
    background-position: center;

    box-shadow:
        inset 0 1em 1em -1em rgb(0 0 0 / 75%),
        inset 0 -1em 1em -1em rgb(0 0 0 / 75%);

    & * {
        text-align: center;
        color: white;
        text-shadow: 3px 6px 10px black;
        margin: 0;
    }
    & h1 {
        font-size: 100px;
    }
    & p {
        margin-top: 1em;
        font-size: 30px;
    }
}

#content {
    text-align: justify;
    & p:not(.largefont) {
        font-size: 80%;
        margin-bottom: 2em;
    }
}

.showcase {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;

    text-align: center;

    & > div {
        width: 15em;
        display: flex;
        flex-direction: column;
        justify-content: end;
        margin-bottom: 3em;
    }

    & img {
        display: block;
        max-width: 15em;
        filter: drop-shadow(0 1em 1em rgb(0 0 0 / 50%));
    }
}

hr {
    border: 0.05em solid grey;
}

@media screen and (width <= 1000px) {
    :root { font-size: 40px; }
    #banner > h1 { font-size: 80px; }
    #banner > p { font-size: 40px; }
    #content img, #content .img {
        display: block;
        margin: 0.5em auto;
        &.right, &.left {
            float: none;
            margin: 0.5em auto;
        }
    }
    #header, #footer {
        flex-flow: wrap;
        &#footer {
            flex-direction: column;
            & > * {
                margin: 0.5em 0;
            }
        }
        & ul {
            flex-direction: column;
            line-height: 2.5;
        }
        &#footer ul {
            max-width: 14em;
        }

        &#header nav li, &#footer nav li {
            margin: 0.4em 0;
            text-align: center;
        }
        &#footer * {
            font-size: 0.8rem;
        }
    }
    .row {
        display: block;
        justify-content: space-between;
        margin-bottom: 3em;
        &.halved > * {
            max-width: 100%;
        }
    }

    #headerLogo, #footerLogo, #dropDownButton {
        &, & img {
            height: 3em;
            width: 3em;
        }
    }
    #dropDownButton {
        display: block;
    }

    #header nav {
        display: none;
        width: 100vw;
        &.down {
            display: block;
        }
    }
}
