/* global */

* {
    font-family: Calibri, sans-serif;
    font-size: 24px;
    text-decoration: none;
    margin: 0;
    padding: 0;
    color: #404040;
    font-weight: normal;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 140px;
}

.rainbow1 { color: #E27193; }
.rainbow2 { color: #FF9F70; }
.rainbow3 { color: #F4C241; }
.rainbow4 { color: #BEDD7E; }
.rainbow5 { color: #64DBD7; }
.rainbow6 { color: #C6C6C6; }

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 26px;
    color: #FFFFFF;
    font-weight: 300;
}

h2 {
    font-size: 25px;
    font-weight: bold;
    /* color in master.tmpl*/
}

h3 {
    font-weight: bold;
}

p, a, h1, h2, h3 {
    line-height: 1.4em;
}

/* header */

#header {
    display: flex;
    justify-content: center;
}

#logo {
    width: 100%;
    max-height: 90px;
    margin-top: 25px;
    padding: 0 25px;
}

#nav {
    position: sticky;
    top: 0;
    z-index: 1;
}

#menu,
#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#nav .elem {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

#nav .elem svg {
    height: 28px;
    width: auto;
    margin-right: 5px;
}

#controls,
.control {
    display: none;
}

#controls {
    padding: 0 20px;
}

#controlthreebar,
#controlx {
    height: 40px;
    cursor: pointer;
}

#controllogo {
    height: 60px;
}

@media (max-width: 699px) {
    #header,
    #menu {
        display: none;
    }

    #nav {
        width: 100%;
        z-index: 1;
    }

    #controls {
        display: flex;
        justify-content: space-between;
    }

    .control.active {
        display: block;
    }

    #nav.active {
        position: fixed;
        top: 0;
        z-index: 2;
    }

    #nav.active #menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    #spacer.active {
        height: 80px;
    }

    #nav .elem {
        padding: 10px;
    }
}

/* banner */

#banner {
    height: 280px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0px 0px 10px 5px rgba(0,0,0,0.5);
}

#banner img {
    height: 100%;
    margin: 0 2px;
    z-index: -1;
}

/* subnav / headline */

#subnav-wrapper.active,
#headline.active {
    visibility: visible;
    position: sticky;
    top: 80px;
}

#headline,
#subnav-wrapper {
    visibility: hidden;
    position: fixed;
    top: -100px;
    z-index: 1;
}

#headline {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    white-space: nowrap;
    /* color in master.tmpl */
}

#subnav-wrapper {
    height: 80px;
    margin-bottom: -20px;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

#subnav-wrapper div {
    height: 60px;
    flex: 1;
    /* color in master.tmpl */
}

#subnav {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

#headline a {
    padding: 0 20px;
}

#subnav a {
    color: #FFFFFF;
    font-weight: 300;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

#subnav a.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    /* border-top in master.tmpl */
}

/* main */

#main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.wrapper {
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

.section {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 100%;
    padding: 40px 40px 0px;
}

.section:last-child {
    padding-bottom: 40px;
}

.section > * {
    margin-bottom: 10px;
}

.section > *:last-child {
    margin-bottom: 0px;
}

/* footer */

#footer {
    display: flex;
    flex-direction: column;
    background-color: #F0F0F0;
    gap: 15px;
    padding: 15px;
}

.footer-top {
    display: flex;
    gap: 10px 40px;
    overflow: hidden;
    justify-content: center;
}

.footer-group {
    display: flex;
    gap: 10px 40px;
}

@media (max-width: 399px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 699px) {
    .footer-group {
        flex-direction: column;
        align-items: center;
    }
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

.footer-bottom p {
    font-size: 16px;
    color: #C6C6C6;
}

#footer a {
    display: flex;
    align-items: center;
    color: #C6C6C6;
}

#footer a span {
    color: #C6C6C6;
}

#footer a svg {
    height: 28px;
    width: auto;
    margin-right: 2px;
}
