:root {
    --color-background: #789B95;
    --color-orange: #E69725;
    --color-shadow: rgba(30, 30, 30, 0.46);
    --color-white: #f1f1f1;
    --color-text: #121212;
    --width: 67rem;
    --height-links: 50px;
    --tilt-angle: 2deg;
}

@font-face {
    font-family: "Pico8";
    src: url("../ttf/PICO-8.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
    background-color: var(--color-background);
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
    flex-direction: column;
    font-family: sans-serif;
    overflow-x: hidden;
}

h1 {
    color: var(--color-orange);
    font-family: "Pico8", sans-serif;
    font-size: 80px;
    text-shadow: 2px 2px 8px var(--color-shadow);
    user-select: none;
    transform: rotate(calc(var(--tilt-angle) * -1));
}

h2 {
    color: var(--color-white);
    font-family: "Pico8", sans-serif;
    font-size: 28px;
}

h3 {
    z-index: 1;
}

.content-container {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--width);
    display: flex;
}

#header {
    justify-content: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: relative;
}

#header video {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 450px;
}

#header #header-elements {
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 10;
}

#header #header-elements #header-left {
    max-width: 50%;
}

#header #header-elements #header-right {
    max-width: 50%;
}

#header h3 {
    color: white;
    font-size: 20px;
    width: 650px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -25px;
    transform: rotate(-1deg);
    text-shadow: 2px 2px 8px var(--color-shadow);
}

#header img {
    filter: drop-shadow(0px 0px 6px var(--color-shadow));
    margin-top: 16px;
}

#content {
    display: flex;
    flex-direction: column;
}

#content #mailing-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#content .content-section {
    position: relative;
    overflow: visible;
    z-index: 1;
}

#content .content-section.centered {
    text-align: center;
}

#content .content-section.centered p {
    margin-left: 20%;
    margin-right: 20%;
}

#content .content-section.highlighted {
    overflow: visible;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#content .content-section.highlighted::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: calc(-55vw + 50%);
    right: calc(-55vw + 50%);
    background-color: var(--color-orange);
    transform: rotate(calc(var(--tilt-angle) * -1));
    transform-origin: center center;
    z-index: -1;
}

#content .content-section {
    justify-content: space-evenly;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
}

#content .content-section:nth-child(odd) {
    flex-direction: row-reverse;
}

#content .content-section .content-image {
    padding: 0;
    margin: 16px;
    border: 4px solid var(--color-orange);
    overflow: hidden;
}

h2 {
    transform: rotate(-2deg);
}

#content .content-section.highlighted .content-image {
    border-color: var(--color-background);
}

#content .content-section .content-image:hover {
    border-color: var(--color-white);
    transition: .2s;
}

#content .content-section .content-image img {
    display: block;
    max-width: 100%;
}

#content .content-section .content-text {
    margin: 16px;
    flex: 1 1 300px;
    color: var(--color-text);
}

#content #partners {
    flex-direction: column;
    align-items: center;
}

#content #partners > div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#content #partners > div > div > * {
    margin: 16px;
}

#links {
    padding: 24px;
    display: flex;
    justify-content: center;
}

#links img {
    height: var(--height-links);
    transition: .2s;
    margin-left: 12px;
    margin-right: 12px;
}

#links img:hover {
    filter: drop-shadow(0px 0px 6px var(--color-white));
}

#footer {
    width: 100%;
    background-color: var(--color-orange);
    display: flex;
    flex-direction: column;
}

.separated-links a {
    color: white;
    margin-top: 12px;
    margin-bottom: 12px;
    border-right: 2px solid var(--color-white);
    padding-right: 10px;
    margin-right: 10px;
}

.separated-links a:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

#footer #footer-logos {
    display: flex;
    flex-direction: row;
}

#footer #footer-logos img {
    height: 100px;
    margin: 12px;
}

#footer #footer-copyright {
    color: var(--color-white);
    text-align: center;
    margin: 8px;
    user-select: none;
}

#void {
    flex-grow: 1;
    background-color: var(--color-orange);
}