:root {
    --menu-item-visibility: block;
    --offcanvas-menu-visibility: collapse;
    --header2-display: block;

    --altcha-border-width: 1px;
    --altcha-border-radius: 0.375rem;
    --altcha-color-base: #ffffff;
    --altcha-color-border: #dee2e6;
    --altcha-color-text: currentColor;
    --altcha-color-border-focus: currentColor;
    --altcha-color-error-text: #f23939;
    --altcha-color-footer-bg: #f4f4f4;
    --altcha-max-width: 360px;

    --languageSelect-justify-content: space-between;
}

@media (max-width: 970px) {
    :root {
        --menu-item-visibility: none;
        --offcanvas-menu-visibility: visible;
        --language-menu-visibility: collapse;
        --header2-display: none;
    }
}

@media (max-width: 525px) {
    :root {
        --languageSelect-justify-content: center;
    }
}

body {
    background-image: url("../images/background-KiDEVsd.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    position: relative;
    font-family: Ubuntu;
    font-weight: 300;
}

body::before {
    z-index: -1;
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center center;
    background-repeat: repeat;
    background-color: rgb(229 229 229 / .75);
    box-sizing: border-box;
}

div.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;

    & > div.curtain {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: none;
        transition: backdrop-filtercolor 0.125s ease-in-out;
        z-index: 10;
    }

    & > div.scroller {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        z-index: 15;
    }

    &.languageSelect > div.scroller > div.buttons {
        position: relative;
        font-size: 1.2em;
        margin: 0 auto 0 auto;
        max-width: 1272px;
        padding: 24px;
        line-height: 1.7em;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: var(--languageSelect-justify-content);
        z-index: 15;
        user-select: none;

        & > a {
            display: block;
            width: 220px;
            border-radius: 6px;
            background-color: rgb(255 255 255 / .9);
            box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
            box-sizing: border-box;
            color: black;
            text-decoration: none;

            & > div {
                font-weight: 500;
                text-align: center;
            }

            &.selected {
                background-color: rgb(178 178 178 / .9);
            }
        }
    }

    &.mobileNavigation > div.scroller > div.buttons {
        position: relative;
        font-size: 1.2em;
        margin: 0 auto 0 auto;
        max-width: 1272px;
        padding: 24px;
        line-height: 1.7em;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        z-index: 15;
        user-select: none;

        & > a {
            display: block;
            padding: 0.5rem;
            width: 220px;
            border-radius: 6px;
            background-color: #3791ac;
            box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
            box-sizing: border-box;
            color: white;
            text-decoration: none;

            & > span {
                font-weight: 500;
            }

            &.selected {
                background-color: #005e89;
            }

            &:hover {
                background-color: rgb(226 105 3);
            }
        }
    }
}

header {
    margin: 0;
    background-color: rgb(0 126 169 / .75);
    color: white;
    text-align: center;
    padding: 0 30pt;
}

header > div.header2 {
    display: var(--header2-display);
}

nav > a,
nav > div {
    transition: background-color 0.125s ease-in-out, border-color 0.125s ease-in-out;
}

nav > a.navitem {
    display: var(--menu-item-visibility);

    &:hover {
        background-color: rgb(226 105 3);
    }
}

nav > a.selected {
    background-color: rgb(0 126 169);
}

nav > div > span::before,
a.navitem > span::before {
    font: var(--fa-font-solid);
    margin-right: 5px;
    width: 1.55rem;
    display: inline-block;
}

a.navitem {
    &.start > span::before {
        content: "\f015";
    }

    &.media > span::before {
        content: "\f478";
    }

    &.about > span::before {
        content: "\e533";
    }

    &.contact > span::before {
        content: "\f0e0";
    }

    &.directions > span::before {
        content: "\f59f";
    }
}

nav > div.spacer {
    flex-grow: 1;
}

nav > div.menu > span::before {
    margin: 0;
    font-size: 25px;
    line-height: 19.2px;
    content: "\f0c9";
    transition: color 0.125s ease-in-out;
    cursor: pointer;
}

nav > div.language > span::before {
    margin: 0;
    font-size: 25px;
    line-height: 19.2px;
    content: "\f0ac";
    transition: color 0.125s ease-in-out;
    cursor: pointer;
}

nav > div.language:hover > span::before {
    color: rgb(226 105 3);
}

nav > div.menu {
    visibility: var(--offcanvas-menu-visibility);

    &:hover > span::before {
        color: rgb(226 105 3);
    }
}


nav > div > span,
nav > a > span {
    font-size: 19.2px;
    margin: 8px 16px;
    display: inline-block;
    text-decoration: none;
    color: white;
}

nav > div.menu > span {
    margin: 8px 0;
}

section.quote > q:before,
section.quote > q:after {
    display: none;
    content: none;
}

div.downloadTeaser,
div.streams {
    padding: 0 30pt;
    max-width: 1272px;
    display: flex;
    flex-wrap: wrap;
    gap: 19.2px;
    margin: 0 auto;
    justify-content: space-between;

    &.streams > div {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: content;
        display: flex;
        justify-content: space-between;
        column-gap: 19.2px;
    }
}

div.streams {
    margin-bottom: 2rem;
}

div.downloadTeaser > div,
div.streams > div > div {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    background-color: rgb(255 255 255 / .75);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
    margin: 0;
    padding: 15px;

    & > img {
        max-width: 150px;
        width: 12vw;
        object-fit: scale-down;
    }

    & > h1 {
        color: rgba(38, 114, 140, 1);
        margin: 0;
        margin-bottom: .5rem;
        font-size: 1.68em;
        font-weight: 600;
    }

    & > ul {
        margin: 0;
        font-size: 1.2em;
    }
}

div.streams > div > div {
    text-align: center;
}

div.downloadTeaser {
    margin-bottom: 2.25rem;

    & > div {
        padding: 1.5rem;

        & a {
            color: #1b244f;
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

section.message > div {
    font-size: 1.2em;
    margin: 0 auto 24px auto;
    max-width: 1272px;
    padding: 24px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
    box-sizing: border-box;
    line-height: 1.7em;

    &.failure {
        color: #712b29;
        background-color: #f7dddc;
        border-color: #f4cfce;
    }

    &.success {
        color: #234423;
        background-color: #d9e6d9;
        border-color: #cadcca;
    }
}

footer > div.links {
    margin: 2.25rem auto 14px auto;
    max-width: 1272px;
    padding: 0 30pt;
    font-size: 1.2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

    & > a {
        display: inline-block;
        color: rgba(38, 114, 140, 1);
        text-decoration: none;
        transition: color 0.125s ease-in-out;

        &:hover {
            color: rgba(226, 105, 3, 1);
        }

        & > span::before {
            font: var(--fa-font-solid);
            margin-right: 5px;
        }

        & > span.privacy::before {
            content: "\f577";
        }

        & > span.legal::before {
            content: "\e447";
        }

        & > span.contact::before {
            content: "\f0e0";
        }
    }
}

footer > div.copyright {
    color: rgb(128 128 128);
    text-align: center;
    margin: 0 auto 24px auto;
    max-width: 1272px;
    padding: 0 30pt;
    font-size: 1.2em;
}

main {
    padding: 0 40px;
}

main > div {
    font-size: 1.2em;
    margin: 0 auto 24px auto;
    max-width: 1272px;
}

main > div.article {
    padding: 24px;
    background-color: rgb(255 255 255 / .75);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
    box-sizing: border-box;
    color: rgb(44, 46, 54);
    line-height: 1.7em;

    & hr {
        color: #c4c3c3;
        margin: 1rem 0;
        border: none;
        border-top: 1px solid;
    }

    & h1 {
        color: rgba(38, 114, 140, 1);
        font-weight: 500;
        margin-top: 0;
        margin-bottom: .5rem;
    }

    & h4 {
        font-size: 1.5rem;
        color: rgba(38, 114, 140, 1);
        font-weight: 500;
    }

    & h5 {
        font-size: 1.25rem;
        color: rgba(38, 114, 140, 1);
        font-weight: 500;
    }

    & > div.switcher {
        display: flex;

        & > a {
            display: block;
            padding: 5px 15px;
            color: #fff;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            user-select: none;
            border: 1px solid rgb(253, 126, 20);
            border-radius: 0.25rem;
            background-color: rgb(253, 126, 20);
            transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
            font-weight: 600;
            font-size: 0.875rem;
            line-height: 1.5;

            &.prev {
                margin-right: auto;
                margin-left: 0;

                &::before {
                    content: "\f053";
                    margin-right: 0.25rem;

                    font: var(--fa-font-solid);
                }
            }

            &.next {
                margin-right: 0;
                margin-left: auto;

                &::after {
                    content: "\f054";
                    margin-left: 0.25rem;

                    font: var(--fa-font-solid);
                }
            }
        }
    }
}

main > div.about {
    box-sizing: border-box;
    color: rgb(44, 46, 54);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    & > a {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 626px;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
        background-color: rgb(255 255 255 / .75);
        border-radius: 6px;
        box-sizing: border-box;
        max-width: 1272px;
        padding: 1.5rem;
        margin: 0;
        color: rgb(44, 46, 54);
        text-decoration: none;

        & > h1 {
            color: rgba(38, 114, 140, 1);
            font-size: 1.355em;
            line-height: 1.2em;
            font-weight: 500;
            margin-top: 0;
            margin-bottom: .5rem;
            transition: color 0.125s ease-in-out;
        }

        & > hr {
            margin: 1rem 0;
            color: #c4c3c3;
            border: 0;
            border-top-width: 0px;
            border-top-style: none;
            border-top-color: currentcolor;
            border-top: 1px solid;
        }

        & > div {
            line-height: 1.7em;
        }

        & > div.readmore {
            color: rgba(38, 114, 140, 1);
            font-size: 0.895rem;
            font-weight: bold;
            transition: color 0.125s ease-in-out;
        }

        &:hover {

            & > h1,
            & > div.readmore {
                color: rgba(226, 105, 3, 1);
            }
        }
    }
}

main > div.contact {
    font-size: 1.2em;
    margin: 0 auto 24px auto;
    max-width: 1272px;
    padding: 24px;
    background-color: rgb(255 255 255 / .75);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
    box-sizing: border-box;
    color: rgb(44, 46, 54);
    line-height: 1.7em;

    & h1 {
        color: rgba(38, 114, 140, 1);
        font-weight: 500;
        margin-top: 0;
        margin-bottom: .5rem;
    }

    & div.lastname,
    & div.agree {
        display: none !important;
    }

    & div.captcha,
    & div.submit {
        margin-top: 1em;
    }

    & label {
        display: block;

        &::after {
            content: ' *';
            color: #B94A48;
        }
    }

    & input[type="text"],
    & input[type="email"],
    & textarea {
        font-family: inherit;
        box-shadow: 2px 2px 9px rgb(0 0 0 / .06);
        border: 1px solid #fdfdfd;
        display: block;
        width: 100%;
        padding: 10px .75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: rgb(44, 46, 54);
        appearance: none;
        background-color: white;
        background-clip: padding-box;
        border: 1px solid #dee2e6;
        box-sizing: border-box;
        border-radius: 0.375rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

        &:invalid {
            border-color: #B94A48;
            background: #F2DEDE;
        }

        &:focus {
            color: rgb(44, 46, 54);
            background-color: white;
            border-color: #febf8a;
            outline: 0;
            box-shadow: 0 0 0 .25rem rgb(253 126 20 / .25);
        }
    }

    & input[type="submit"] {
        cursor: pointer;
        display: inline-block;
        padding: 0.5rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.5;
        color: #fff;
        text-align: center;
        text-decoration: none;
        vertical-align: middle;
        user-select: none;
        border: 1px solid #fd7e14;
        border-radius: 0.375rem;
        background-color: #fd7e14;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        box-shadow: 2px 2px 9px rgb(0 0 0 / .06);

        &:hover {
            color: #fff;
            background-color: #fd9137;
            border-color: #fd8b2c;
        }
    }
}