:root {
    --font-selection: "Open Sans", sans-serif;
    /* Main colors */
    --main-background-color: #C8C8C8;
    --header-background-color: #27334D;
    --header-height-px: 48px;
    --header-padding-px: 4px;
    /* Branded colors */
    --brand-orange-color: #E95B33;
    --brand-green-color: #8BBD3A;
    --brand-blue-color: #04A1D8;
    --brand-purple-color: #6A2A78;
    --brand-orange-bright-color: #ec6a46;
    --brand-green-bright-color: #a7e345;
    --brand-blue-bright-color: #04bdfe;
    --brand-purple-bright-color: #8b379e;
}

html {
    background-color: var(--main-background-color);
    margin: 0;
    padding: 0;
    font-family: var(--font-selection)
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    /*    grid-template-columns: 0.2fr 1fr 0.2fr;*/
}

a {
    color: inherit;
    text-decoration: none;
}

.link-external:after {
    display: inline-block;
    background-image: url("/assets/external-link.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    content: "";
    height: 1em;
    width: 1em;
    vertical-align: middle;
    margin-left: 0.2em;
}

a:hover {
    text-decoration: underline;
}

header {
    transition-duration: 0.2s;
    background-color: var(--header-background-color);
    height: var(--header-height-px);
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
    position: sticky;
    grid-column: 1 / span 3
}

.header-logo {
    height: calc(var(--header-height-px) - var(--header-padding-px));
    background-color: white;
    padding: 2px;
    display: grid;
    grid-template-columns: auto auto;
    justify-items: start;
    justify-content: start;
}

.header-logo .text-block {
    grid-template-columns: none;
}

.header-logo-slice {
    height: var(--header-height-px);
}

.header-logo img {
    height: calc(var(--header-height-px) - var(--header-padding-px));
    margin-right: 8px;
    margin-left: 8px
}

.header-logo .text-block {
    display: grid;
    grid-template-rows: auto auto;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 8px;
    padding: 0;
    height: calc(var(--header-height-px) - var(--header-padding-px));
    align-items: center;
    align-content: center;
}

    .header-logo .text-block span {
        display: block
    }

header a:hover {
    text-decoration: none;
}

.header-button {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 16px;
    margin-left: 16px
}

.header-menu-container {
    display: inline-block;
    height: max-content;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 8px;
    margin-left: 8px;
}

.header-menu-button-container {
    margin-top: auto;
    margin-bottom: auto;
    display: none;
}

.header-menu-button {
    width: fit-content;
    margin-right: 1em;
}

.header-menu {
    list-style: none;
    padding: 0;
    margin: auto 0 auto 0;
}

    .header-menu li {
        float: left;
    }

        .header-menu li a {
            font-weight: 600;
            text-decoration: none;
            color: white;
            display: block;
            text-align: center;
            transition-duration: 0.3s;
            padding: 4px 16px;
        }

            .header-menu li a:hover {
                background-color: var(--brand-green-color);
                color: black;
            }

footer {
    min-height: 50px;
    background-color: var(--header-background-color);
    box-shadow: rgb(0 0 0 / 50%) 0px -2px 4px 0px;
    grid-column: 1 / span 3;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.footer-container {
    margin: 20px;
    padding: 12px;
    color: white;
    text-decoration: none;
}

    .footer-container address {
        font-style: normal;
    }

    .footer-container a {
    }

.footer-logo {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: start;
    justify-content: start;
    margin-bottom: 24px;
}

    .footer-logo img {
        height: 80px;
    }

    .footer-logo span {
        font-weight: 500;
        font-size: 14pt;
        color: white;
        margin-left: 12px;
    }

.footer-contacts {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto auto;
    align-items: start;
    justify-items: start;
    justify-content: start;
}

    .footer-contacts a {
        margin-left: 8px;
    }

.footer-links {
    display: grid;
    grid-template-rows: auto auto;
    align-content: space-between;
    justify-items: end;
    justify-content: end;
    text-align: right;
}

.footer-social {
}

    .footer-social ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-social ul li {
            float: right;
        }

            .footer-social ul li a {
            }

                .footer-social ul li a:hover {
                    filter: invert(45%) sepia(65%) saturate(2782%) hue-rotate(166deg) brightness(98%) contrast(97%);
                }

.footer-legal {
}

    .footer-legal ul {
        list-style: none;
        padding: 0;
        margin: 0;
        float: right;
    }

        .footer-legal ul li {
        }

.container {
    background-color: white;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
    height: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 16pt;
    grid-column: 2;
    grid-row: 2;
}

main {
    width: 70vw;
}

button {
    border: none;
    border-radius: 4px;
    height: 32px;
    width: 150px;
    padding: 4px 16px 4px 16px;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
    transition-duration: 0.3s;
    font-family: var(--font-selection)
}

    button:hover {
        box-shadow: rgb(0 0 0 / 35%) 0px 4px 6px 0px;
        transform: translateY(-0.1em);
    }

    button:active {
        box-shadow: rgb(0 0 0 / 0) 0px 1px 4px 0px;
        transform: translateY(0.1em);
    }

    button:disabled {
        box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px !important;
        background-color: gray !important;
    }

    button[disabled] {
        box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px !important;
        background-color: gray !important;
    }

.button-orange {
    background-color: var(--brand-orange-color);
    color: white;
    font-weight: 600;
    cursor: pointer
}

    .button-orange:hover {
        background-color: var(--brand-orange-bright-color);
    }

    .button-orange:active {
        background-color: var(--brand-orange-color);
    }

.button-green {
    background-color: var(--brand-green-color);
    color: white;
    font-weight: 600;
    cursor: pointer
}

    .button-green:hover {
        background-color: var(--brand-green-bright-color);
        color: dimgray
    }

    .button-green:active {
        background-color: var(--brand-green-color);
        color: white;
    }

.button-blue {
    background-color: var(--brand-blue-color);
    color: white;
    font-weight: 600;
    cursor: pointer
}

    .button-blue:hover {
        background-color: var(--brand-blue-bright-color);
    }

    .button-blue:active {
        background-color: var(--brand-blue-color);
    }

.button-purple {
    background-color: var(--brand-purple-color);
    color: white;
    font-weight: 600;
    cursor: pointer
}

    .button-purple:hover {
        background-color: var(--brand-purple-bright-color);
    }

    .button-purple:active {
        background-color: var(--brand-purple-color);
    }

h1 {
    margin: 0;
    padding: 0;
}

h2 {
    margin: 0;
    font-weight: 400;
    padding: 0;
}

h3 {
    margin: 0;
    padding: 0;
}

.message-container {
    border-radius: 1rem;
    border-style: solid;
    border-color: darkgray;
    background-color: lightgray;
    margin: 1rem;
    padding: 1rem
}

    .message-container h1 {
        font-size: 14pt;
    }

    .message-container h2 {
        font-size: 12pt;
        font-weight: normal;
    }

    .message-container p {
        margin: 0;
        padding: 0;
    }

    .message-container .request-id {
        margin-top: 1em
    }

    .message-container.error {
        background-color: #f4b4b4;
        color: #460000;
        border-color: #ff8484;
    }

    .message-container.success {
        background-color: #cdf4b4;
        color: #1b4700;
        border-color: #bce59f;
    }

.image-404 {
    width: 60%;
}

.error-page {
    height: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-padding {
    padding-left: 16pt;
    padding-right: 16pt;
    padding-top: 24pt;
}

.paginator {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .paginator a {
        color: var(--brand-blue-color);
        margin-left: 8px;
        margin-right: 8px;
        cursor: pointer;
    }

.isDisabled {
    color: gray !important;
    cursor: not-allowed !important;
}

    .isDisabled a {
        color: gray !important;
    }

    .isDisabled:hover {
        text-decoration: none !important;
    }

.selected-page {
    color: var(--brand-orange-bright-color) !important;
    font-weight: bold;
    cursor: not-allowed;
}

    .selected-page:hover {
        text-decoration: none !important;
    }

.required {
    color: red;
}

form {
    display: grid;
    margin-right: auto;
    margin-left: auto;
    width: 30vw;
    margin-bottom: 3rem;
}

    form p {
        margin: 0;
        margin-top: 1rem;
        margin-bottom: 0.3rem;
    }

    form button {
        margin-left: auto;
        margin-right: auto;
        width: 50%
    }

    form[hidden] {
        display: none;
    }

input {
    transition-duration: 0.2s;
    padding: 8px 10px 8px 10px;
    font-family: var(--font-selection);
    border: none;
    border-radius: 0.5rem;
    box-shadow: rgb(0 0 0 / 40%) 0px 2px 4px 0px;
    border-color: lightgray;
    border-style: solid;
    border-width: 1px;
}

    input:focus {
        outline: none;
        box-shadow: rgb(0 0 0 / 20%) 0 4px 6px 0px;
        border-color: var(--brand-blue-color);
    }

textarea {
    transition-duration: 0.2s;
    padding: 8px 10px 8px 10px;
    font-family: var(--font-selection);
    border: none;
    border-radius: 0.5rem;
    box-shadow: rgb(0 0 0 / 40%) 0px 2px 4px 0px;
    border-color: lightgray;
    border-style: solid;
    border-width: 1px;
}

    textarea:focus {
        outline: none;
        box-shadow: rgb(0 0 0 / 20%) 0 4px 8px 0px;
        border-color: var(--brand-blue-color);
    }

.news-title {
    font-weight: 300;
}

.news-info {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    justify-items: end;
    margin-bottom: 1rem;
}

    .news-info p {
        margin: 0;
        margin-top: 1em;
        margin-left: 1rem;
        font-weight: 600;
        font-size: 10pt;
        color: gray;
        text-indent: 1rem;
    }

.news-content .title-image {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    width: 16rem;
    border-radius: 0.5rem;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
}

.news-content a {
    color: var(--brand-blue-color);
}

.news-content hr {
    height: 2pt;
    border: none;
    background-color: var(--brand-purple-color)
}

code {
    display: inline-block;
    border-style: solid;
    border-width: 1px;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
    border-color: darkgray;
    box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px;
}

pre code {
    display: block;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px;
    padding: 1rem;
}

.news-photogallery {
    transition-duration: 0.2s;
    margin-right: auto;
    margin-left: auto;
    margin-top: 1rem;
}

    .news-photogallery dialog {
        max-height: 90vh;
        max-width: 90vw;
        padding: 0.4rem;
        overflow: hidden;
        border-width: 1px;
        border-radius: 1rem;
        box-shadow: rgba(0, 0, 0, 0.5) 0 8px 16px;
        outline: none;
    }

        .news-photogallery dialog::backdrop {
            background-color: rgba(0, 0, 0, 0.4);
        }

        .news-photogallery dialog img {
            max-height: 90vh;
            max-width: 90vw;
            border-radius: 0.8rem;
            margin: auto;
            display: block;
            object-fit: contain;
        }

.news-photogallery-thumb {
    width: 320px;
}

    .news-photogallery-thumb:hover {
        cursor: pointer;
    }

.blurry-load {
    background-size: cover;
    background-position: center;
}

.loader {
    width: 48px;
    height: 48px;
    display: block;
    /*    margin: 15px auto;*/
    top: 50%;
    left: 50%;
    position: relative;
    color: #fff;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

    .loader::after,
    .loader::before {
        content: '';
        box-sizing: border-box;
        position: absolute;
        width: 24px;
        height: 24px;
        top: 0;
        background-color: var(--brand-orange-color);
        border-radius: 50%;
        animation: scale50 1s infinite ease-in-out;
    }

    .loader::before {
        top: auto;
        bottom: 0;
        background-color: var(--brand-green-color);
        animation-delay: 0.5s;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale50 {
    0%, 100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.model-viewer {
    margin-top: 1rem;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px;
    border-radius: 1em;
}

    .model-viewer.loaded {
        height: 90vh;
        max-height: 60vh;
    }

.model-viewer-annotation {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    position: absolute;
    padding: 1em;
    transform: translate(10px, 10px);
    border-radius: 1em;
    display: none;
    grid-template-columns: auto auto;
    font-size: 10pt;
}

    .model-viewer-annotation p {
        margin: 0;
        margin-left: 0.3rem;
        vertical-align: middle;
    }

    .model-viewer-annotation span {
        font-size: 14pt;
    }

    .model-viewer-annotation.visible {
        display: grid;
        justify-items: start;
        align-items: center;
    }

#model-viewer-lazy-load-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: fit-content;
}

.people {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

    .people img {
        width: 12rem;
        margin-right: auto;
        margin-left: auto;
        display: block;
        border-radius: 100%;
        margin-bottom: 1rem;
    }

.person-card {
    display: block;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px;
    width: 18rem;
    margin: 0.5rem;
}

    .person-card p {
        margin: 0;
        text-align: center;
    }

    .person-card .person-names {
        font-weight: bold;
        font-size: 14pt;
        margin-bottom: 1rem;
    }

.header-button-small {
    display: none;
}

@media screen and (max-width: 1280px) {
    .person-card {
        width: 14rem;
        padding: 1rem;
    }

    .news-photogallery-thumb {
        width: 200px
    }
}

@media screen and (max-width: 900px) {

    header {
        grid-template-columns: 10rem 1fr auto auto auto;
        grid-template-rows: auto auto;
    }

        header.open-menu {
            height: calc(var(--header-height-px) * 2);
        }

    .header-menu {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

        .header-menu li {
            display: block;
        }

    .header-menu-container nav {
        grid-row: 2;
    }

    .header-menu-container {
        height: 0;
        overflow: hidden;
        grid-row: 2;
        grid-column: span 4;
    }

        .header-menu-container.open-menu {
            height: var(--header-height-px);
            display: grid;
            grid-template-rows: auto auto;
        }

    .header-menu-button-container {
        display: block;
    }

    h1 {
        font-size: 16pt;
    }

    form {
        width: 60vw;
    }

    .model-viewer-annotation {
        padding: 0.5rem;
        max-width: 16rem;
    }
}

@media screen and (max-width: 640px) {
    footer {
        grid-template-columns: initial;
    }

    .footer-links {
        text-align: initial;
        justify-content: initial;
        justify-items: initial;
    }

    .footer-legal ul {
        float: initial;
    }

    .footer-container {
        margin-bottom: 0;
        margin-top: 0;
    }

    .news-photogallery-thumb {
        width: 180px;
    }

    #model-viewer-lazy-load-button {
        width: max-content;
    }

    .news-info p {
        text-indent: 0;
        margin: 0;
        margin-top: 1rem;
        margin-right: 1rem;
    }

    .news-content .title-image {
        width: 8rem;
    }
}

@media screen and (max-width: 430px) {

    .page-padding {
        padding: 0.5rem;
        padding-top: 1rem;
    }

    .header-button {
        margin-left: 16px;
        margin-right: 16px;
    }

    button {
        padding: 4px 8px 4px 8px;
    }

    main {
        width: 100vw;
    }

    .header-menu {
        flex-wrap: wrap;
    }

    header.open-menu {
        height: calc(var(--header-height-px) * 2);
    }

    .header-menu-container.open-menu {
        height: var(--header-height-px);
    }

    form {
        width: 90vw;
        margin-right: auto;
        margin-left: auto;
    }

    .news-info {
        justify-content: start;
        justify-items: start;
    }

        .news-info p {
            text-indent: 0;
            margin: 0;
            margin-top: 1rem;
            margin-right: 1rem;
        }

    .news-content .title-image {
        width: 8rem;
    }

    .news-photogallery {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 375px) {

    .page-padding {
        padding: 0.5rem;
        padding-top: 1em;
    }

    .header-button button {
        display: none;
    }

    .header-button-small {
        display: contents;
    }

        .header-button-small button {
            margin: 0.5em 1em;
            width: initial;
        }

    .header-menu-container {
        grid-template-rows: max-content max-content;
    }

    header.open-menu {
        height: calc(var(--header-height-px) * 4);
    }

    .header-menu-container.open-menu {
        height: calc(var(--header-height-px) * 3);
        align-items: center;
        justify-items: stretch;
    }

    .footer-container {
        margin: 0;
    }

        .footer-container img {
            width: 4rem;
            height: 4rem;
        }

        .footer-container span {
            font-size: 10pt;
        }

        .footer-container a {
            font-size: 10pt;
        }

    .footer-social img {
        width: 3rem;
        height: 3rem;
    }
}

.privacy-content {
    padding-top: 1em;
}

.privacy-content h2 {
    font-size: 14pt;
    font-weight: 600
}

.person-photo {
    display: block;
    width: 12rem;
    height: 12rem;
    margin-right: auto;
    margin-left: auto;
    background-position: center;
    background-size: cover;
    border-radius: 100%;
    margin-bottom: 1rem;
}

.project-author-page {
    font-weight: 600;
    font-size: 16pt;
}

.event-cards {
    margin-top: 1rem;
}

    .event-cards a {
        text-decoration: none;
    }

        .event-cards a:hover {
            text-decoration: none;
        }

            .event-cards a:hover h1 {
                text-decoration: underline;
            }

.event-card {
    display: grid;
    grid-template-columns: auto 1fr;
    border-radius: 1rem;
    background-color: white;
    transition-duration: 0.2s;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: rgb(0 0 0 / 40%) 0px 2px 4px 0px;
}

    .event-card:hover {
        box-shadow: rgb(0 0 0 / 35%) 0px 4px 8px 0px;
        transform: translateY(-0.1rem)
    }

    .event-card:active {
        box-shadow: rgb(0 0 0 / 35%) 0px 1px 2px 0px;
        transform: translateY(0.1rem)
    }

    .event-card > img {
        width: 200px;
        margin-right: 1rem;
        border-radius: 0.5rem;
        box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
    }

.event-card-header > h3 {
    font-weight: bold;
    font-size: 14pt;
}

.event-card-dates {
    font-size: 8pt;
}

.bold {
    font-weight: bold;
}