@font-face {
    font-family: "GTPMT";
    src: url("../fonts/GT-Pressura-Mono-Text.woff2") format("woff2"),
    url("../fonts/GT-Pressura-Mono-Text.woff") format("woff");
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "GTPMT";
    src: url("../fonts/GT-Pressura-Mono-Text-Italic.woff2") format("woff2"),
    url("../fonts/GT-Pressura-Mono-Text-Italic.woff") format("woff");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --background-color: rgb(247, 247, 247);
    --background-color-contrast: white;
    --text-color: black;
    --border-color: #313131;
    --image-background-color: lightcyan;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #151515;
        --background-color-contrast: black;
        --text-color: white;
        --border-color: #f7f8fa;
        --image-background-color: rgb(41, 42, 48);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 103%;
    scrollbar-width: none;
}

@media (max-width: 1000px) {
    html {
        font-size: 96%;
    }
}

a {
    color: var(--text-color);
    text-decoration: none;
}

p {
    width: fit-content;
    max-width: 1000px;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "GTPMT", ui-monospace, monospace;
    line-height: 110%;
    background-color: var(--background-color);
    color: var(--text-color);
}

#text-container {
    position: fixed;
    inset: 0;
    right: auto;
    width: 50vw;
    height: 100vh;
    padding: 0.8rem 3rem 0.8rem 0.8rem;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#text-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1000px) {
    #text-container .has-link:hover,
    #text-container .has-images:hover,
    #text-container .level-1:hover a,
    a:hover {
        color: var(--background-color);
        background-color: var(--text-color);
        width: fit-content;
        padding-right: 2px;
    }
}

#text-container .projects-container .level-1:hover a {
    background-color: transparent;
}

.has-images {
    cursor: pointer;
}

.has-link a {
    cursor: pointer;
}

.level-0 {
    margin-left: 0;
}

.level-1 {
    margin-left: 1.8rem;
}

.level-2 {
    margin-left: 3.6rem;
}

.timeline-container .level-1 {
    padding-left: 1.8rem;
    text-indent: -1.8rem;
}

#grid {
    pointer-events: none;
    display: grid;
    position: fixed;
    inset: 0;
    left: calc(50vw - 100px);
    z-index: 100;
    grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(18px, 1fr));
    overflow: hidden; /* Prevent scrolling if the grid is larger than the viewport */
}

.grid-cell {
    width: 12px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 14px;
    visibility: hidden; /* Initially hide all characters */
    pointer-events: none;
}

#image-container {
    position: fixed;
    inset: 0;
    left: auto;
    width: 50vw;
    height: 100vh;
    overflow: visible;
    background-color: greenyellow;
}

.curated-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.curated-img {
    cursor: none !important;
    height: 100vh;
    width: 50vw;
    display: block;
    object-fit: cover;
    z-index: 10;
    opacity: 0;
}

.hidden {
    display: none;
}

.rotated {
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
    height: 50vw;
    width: 100vh;
}

.half {
    width: 50%;
}

.project-img-wrapper {
    overflow: scroll;
    width: 100%;
    height: 100%;
    padding: 1px;
}

.project-img-flex-container {
}

.project-first-img-container {
    max-width: 900px;
}

.project-img-wrapper img {
    width: 100%;
    display: block;
    padding: 1px;
    z-index: 0;
}

.close-btn {
    padding: 0.8rem;
    background-color: var(--background-color-contrast);
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 5;
}

@media (min-width: 1700px) {
    .project-img-flex-container {
        column-count: 2;
        gap: 0;
    }
}

.loader-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.loader-img-wrapper {
    background: linear-gradient(#dfdfdf, #e8e8e8);
    position: absolute;
    inset: 0;
    z-index: -10 !important;
}

.loader-img {
    object-fit: contain !important;
    transform-origin: center;
    transform: scale(0.5);
}

#impressum-btn {
    cursor: pointer;
}

.imprint-container {
    display: none;
}

.imprint-container.open {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1000px) {
    #text-container {
        padding: 0.6rem 1rem 0.6rem 0.6rem;
    }

    .level-1 {
        margin-left: 1.4rem;
    }

    .level-2 {
        margin-left: 2.8rem;
    }

    #grid,
    #image-container {
        display: none;
    }

    .mobile-only {
        display: inline;
    }
}

#cursor {
    pointer-events: none;
    position: absolute;
    mix-blend-mode: difference;
    z-index: 1000;
    transform: scale(1);
    opacity: 1;
    transition: transform 150ms ease-out, opacity 150ms ease-out;
}

#cursor svg circle {
    fill: rgb(227, 227, 227);
    z-index: 1000;
}

#cursor.shrinked {
    /*opacity: .7;*/
    transform: scale(0.5);
    transition: transform 150ms ease-out, opacity 150ms ease-out;
}
