@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/cascadia-code.min.css");

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

html {
    --accent: #FF0061;
    --front: black;
    --back: white;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--front);
}

a {
    color: var(--front);
}

hr {
    color: var(--front);
    opacity: 0.2;
}

body {
    margin: 0;
    padding: 0;
    background: var(--back);
}

translate-me {
    font-weight: inherit;
}

footer {
    padding: 50px 0 20px 0;
    text-align: center;
    opacity: 50%;
    font-size: 14px;
}

h1 {
    font-weight: 500;
    text-align: center;
}

.content {
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}

.navigation-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 65px;
    grid-template-areas: "logo links lang";
    padding: 15px 20px;
    position: relative;
    overflow-x: hidden;

    align-items: stretch;
    gap: 30px;

    margin-bottom: 20px;
}

.navigation-bar .flagje {
    position: absolute;
    width: calc(100vw / 64);
    height: 1vw;
    transform-origin: top center;
    transform: scaleY(50%);
    perspective: 4vw;
}

.flagje>div {
    width: 100%;
    height: 100%;
    transform-origin: top center;
    /* opacity: 0.2; */
    transform-style: preserve-3d;
    animation: wapperen 1s cubic-bezier(0.37, 0, 0.63, 1) 0s infinite forwards alternate-reverse;
}

.flagje svg {
    fill: var(--accent);
    width: 100%;
    height: 100%;
}

pre *,
pre span {
    font-family: "Cascadia Code", monospace !important;
}

code,
pre {
    font-family: "Cascadia Code", monospace !important;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;

    ::-webkit-scrollbar {
        width: 0px;
        height: 0px;
        background: transparent;
        /* make scrollbar transparent */
    }
}

pre>code:first-child {
    outline: 1px solid gray;
    display: block;
    overflow-x: auto;
    padding: 1em;
}

@keyframes wapperen {
    0% {
        transform: rotateX(-15deg) skew(-5deg);
    }

    100% {
        transform: rotateX(15deg) skew(5deg);
        filter: brightness(75%) saturate(0.8);
    }
}

.mobile-navigation-bar {
    display: grid;
    grid-template-columns: auto min-content min-content;
    grid-template-rows: 45px;
    grid-template-areas: "logo lang menu";
    padding: 5px 15px;

    align-items: stretch;
    position: relative;
}

.mobile-page-list {
    width: 100%;
    height: max-content;
    position: absolute;

    display: inline-flex;
    flex-direction: column;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: var(--back);

    transition: clip-path 120ms ease-in-out;
    clip-path: inset(0 0 100% 0);

    z-index: 100;
}

.mobile-page-list[open=true] {
    clip-path: inset(0 0 -50% 0);
}

.main-logo {
    grid-area: logo;
    width: 85px;
    height: 100%;
    cursor: pointer;
    fill: var(--accent);
}

.navigation-link-container {
    grid-area: links;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.navigation-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-page-list>.navigation-link {
    text-decoration: none;
    display: flex;
    padding: 10px 5px;
    align-items: center;
    justify-content: center;
}

.navigation-link>translate-me {
    color: var(--accent);
    display: block;
    padding: 0 10px;
    font-weight: 500;
    transform: translateY(-2px);
    text-transform: lowercase;
    transition: opacity 100ms ease-in-out;
}

.navigation-link:hover>translate-me {
    opacity: 80%;
}

.lang-picker {
    width: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lang {
    width: 24px;
    height: 18px;
    cursor: pointer;
    opacity: 50%;
    transition: opacity 100ms ease-in-out;
    background-size: cover;
}

.lang:hover {
    opacity: 100%;
}

#member-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.member-card {
    height: 150px;
    margin-bottom: 20px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "pfp username"
        "pfp subtitle"
        "pfp personal-text";
}

.member-pfp {
    grid-area: pfp;
    width: 150px;
    margin-right: 10px;
}

.member-username {
    grid-area: username;
    font-weight: 550;
}

.member-subtitle {
    grid-area: subtitle;
    font-size: 14px;
    opacity: 80%;
}

.member-personal-text {
    grid-area: personal-text;
    margin-top: auto;
    margin-bottom: auto;
}

wave-text {
    display: block;
    margin-left: 20px;
}

.wave-char {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    animation: wave 2s infinite ease-in-out;
}

.wave-word {
    margin-right: 4px;
    display: inline-block;
}

@keyframes wave {
    0% {
        transform: translateY(-1px);
    }

    50% {
        transform: translateY(1px);
        opacity: 75%;
    }

    100% {
        transform: translateY(-1px);
    }
}

#project-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.project-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 10px;
}

.project-card[small=true] {
    height: 98px;
}

.project-card {
    margin: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 216px;
    width: 460px;
    transition: opacity 100ms ease-in-out;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;

    margin-bottom: 20px;

    position: relative;
    overflow: hidden;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    text-decoration: none !important;
    transition: background-image 0.5s;
}

straat-orgel {
    height: 215px;
    width: 460px;
    background: magenta;
    margin: auto;
    margin-bottom: 20px;
    background-image: url(media/straatorgel.png);
    background-size: 100% 100%;
}

.project-card>video {
    position: absolute;
    opacity: 0%;
    transition: opacity 200ms ease-in-out;
}

.project-card>.project-title {
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 1), 0 2px 17px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    text-transform: lowercase;
}

.project-card:hover {
    opacity: 90%;
}

.project-card[coming-soon] {
    cursor: unset;
    background: var(--accent);
}

.project-card .heb-geduld,
.project-card .coming-soon {
    text-transform: uppercase;
    color: white;
    font-weight: 550;
    font-size: 20px;
}

.project-card .heb-geduld {
    font-size: 40px;
    font-weight: bold;

    animation: flash ease-in-out 1s alternate-reverse infinite;
}

.project-link {
    display: block;
    margin: 15px 0;
    color: var(--accent);
}

.project-link * {
    color: var(--accent);
}

slide-show {
    display: block;
    overflow: hidden;
    position: relative;
}

slide-show>.image-container {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 450ms;
    cursor: pointer;
}

slide-show .slideshow-arrow {
    position: absolute;
    width: 48px;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 90%;
    background-position: center;
    z-index: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 1));
    cursor: pointer;
    transition: background-color 90ms;
}

slide-show .slideshow-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

slide-show .slideshow-arrow:active {
    background-color: rgba(0, 0, 0, 0.1);
}

slide-show .slideshow-arrow[disabled] {
    opacity: 15%;
}

slide-show .slideshow-image {
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-shrink: 0;
}

mobile-navigation-bar {
    display: none;
}

.mobile-menu-button {
    grid-area: menu;
    width: 32px;
    height: 100%;
    cursor: pointer;
    margin-left: 15px;
}

.invisible-until-hover {
    opacity: 0;
    transition: opacity 200ms;
}

.invisible-until-hover:hover {
    opacity: 1;
}

table {
    margin: 0.5em 0;
}

table,
th,
td {
    border-collapse: collapse;
    border: 1px solid var(--front);
    padding: 0.1em 0.5em;
}

thead {
    color: var(--back);
    background-color: var(--front);
}

@keyframes flash {

    0%,
    40% {
        opacity: 50%;
    }

    60%,
    100% {
        opacity: 100%;
    }
}


@media only screen and (max-width: 940px) {
    .main-logo {
        width: 60px;
        margin-right: 10px;
    }

    navigation-bar {
        display: none;
        /* padding: 15px 10px;
        gap: 5px; */
    }

    mobile-navigation-bar {
        display: unset;
    }

    .navigation-link-container {
        justify-content: space-evenly;
    }

    .navigation-link>translate-me {
        padding: 0;
        white-space: nowrap;
    }

    .lang-picker {
        width: 18px;
    }

    .lang {
        background-size: cover;
        background-position: center;

    }

    #project-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .project-column {
        margin: 0;
    }

    .project-card {
        height: 140px;
        width: 100%;
        max-width: 460px;
    }
}