html {
    background-color: var(--bg);
    color: var(--fg);
}



#projects-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}



a,
.link {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
.link:hover {
    text-decoration: underline;
}

a:visited,
.link:visited {
    color: var(--primary-30);
}



.project-header {
    padding: 1em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--primary-90);
}

.project-title {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0;
}

.project-subtitle {
    font-size: 1.2em;
    margin-top: 0;
    color: var(--primary-10);
    opacity: 0.5;
}



.project-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}

.project-link {
    text-align: center;
    flex-grow: 1;
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0.5em;
    border-radius: 10em;
    box-shadow: rgba(0, 0, 0, 0.025) 0px 6px 24px 0px, rgba(0, 0, 0, 0.028) 0px 0px 0px 1px;
    transition: all 0.5s ease-in-out;
}

.project-link:hover {
    cursor: pointer;
    background-color: var(--primary-90);
    color: var(--primary-fg);
    transform: scale(1.01);
}

.project-link:active {
    background-color: var(--primary-80);
    color: var(--primary-fg);
    transform: scale(0.98);
}



.project-factsheet {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1em;

    margin-top: 1em;
}

.fact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5em;
    word-break: keep-all;
    word-wrap: break-word;
}

.fact-label {
    font-weight: bold;
    color: var(--primary);
}

.fact-value {
    margin-left: 0.5em;
}

.fact-value.fact-boolean.boolean-true {
    color: var(--positive);
    padding: 0.5em;
    border-radius: 0.5em;
    background-color: var(--positive-90);
}

.fact-value.fact-boolean.boolean-false {
    color: var(--negative);
    padding: 0.5em;
    border-radius: 0.5em;
    background-color: var(--negative-90);
}



.stage {
    background-color: var(--bg);
    padding: 0.5em;
    border-radius: 0.5em;
    color: var(--fg);
}

.stage-code {
    font-weight: bold;
}

*[class*="stage-00"] {
    background-color: #d4ebff;
    color: #033772;
}

*[class*="stage-20"] {
    background-color: #bad9fc;
    color: #02244c;
}

*[class*="stage-40"] {
    background-color: #d6d4f9;
    color: #140f78;
}

*[class*="stage-60"] {
    background-color: #d8f8d8;
    color: #157617;
}

*[class*="stage-80"] {
    background-color: #fbedd4;
    color: #83580a;
}

*[class*="stage-90"] {
    background-color: #f8cece;
    color: #670d0d;
}

@media (prefers-color-scheme: dark) {
    *[class*="stage-00"] {
        color: #d4ebff;
        background-color: #033772;
    }

    *[class*="stage-20"] {
        color: #bad9fc;
        background-color: #02244c;
    }

    *[class*="stage-40"] {
        color: #d6d4f9;
        background-color: #140f78;
    }

    *[class*="stage-60"] {
        color: #d8f8d8;
        background-color: #157617;
    }

    *[class*="stage-80"] {
        color: #fbedd4;
        background-color: #83580a;
    }

    *[class*="stage-90"] {
        color: #f8cece;
        background-color: #670d0d;
    }
}



.project-description {
    margin-top: 1em;
    padding: 1em;
    border-top: 1px solid var(--primary-90);
}

.project-description p {
    text-align: justify;
}

.project-description pre {
    background-color: var(--bg-90);
    padding: 0.5em;
    border-radius: 1em;
    overflow-x: auto;
    font-family: var(--font-mono);
}

.project-description code,
.project-description output {
    font-family: var(--font-mono);
}



.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
    margin-top: 1em;
    align-items: center;
}

@media screen and (max-width: 600px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery-item.gallery-item-document {
        grid-column: unset !important;
    }
}

.project-gallery-item {
    display: block;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.project-gallery-item:hover {
    cursor: pointer;
    transform: scale(1.01);
}

.project-gallery-item.gallery-item-document {
    grid-column: span 2;
    box-shadow: rgba(0, 0, 0, 0.025) 0px 6px 24px 0px, rgba(0, 0, 0, 0.028) 0px 0px 0px 1px;
    cursor: pointer;
    width: 100%;
    min-height: 400px;
    border: none;
}



.project-navigation {
    position: sticky;
    left: 50%;
    bottom: 2em;
    font-size: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;
    gap: 1em;
    z-index: 1000;
    padding: 0.5em 1em;
    min-width: 50%;
    text-align: center;

    background: rgba(255, 255, 255, 0.25);
    border-radius: 10em;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);

    transition: all 0.5s ease-in-out;
}

@media screen and (max-width: 600px) {
    .project-navigation {
        font-size: 1rem;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 0.5em;
        padding: 0.25em 0.5em;
        width: fit-content;
    }

    .project-navigation a {
        padding: 0.25em !important;
    }
}

.project-navigation a {
    color: var(--secondary);
    text-decoration: none;
    text-wrap: nowrap;
    padding: 0.5em;
    transition: all 0.5s ease-in-out;
}

.project-navigation a:hover {
    cursor: pointer;
    transform: scale(1.05);
    color: var(--secondary-50);
}

.project-navigation a:active {
    transform: scale(0.95);
    color: var(--secondary-70);
}



.footer {
    text-align: center;
    margin-top: 10em;
    padding: 1em;
    border-top: 1px solid var(--primary-90);
    opacity: 0.75;
}



.hide {
    visibility: hidden;
}



.project-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.project-cards .project-card {
    width: 100%;
}



.project-card {
    padding: 1em;
    border-radius: 1em;
    box-shadow: rgba(0, 0, 0, 0.025) 0px 6px 24px 0px, rgba(0, 0, 0, 0.028) 0px 0px 0px 1px;
    position: relative;
    transition: all 0.5s ease-in-out;
    max-width: 600px;
}

.project-card:hover {
    background-color: var(--primary-90);
    color: var(--primary-fg)
}

@media (prefers-color-scheme: dark) {
    .project-card {
        background-color: var(--bg-90);
    }
}



.project-not-found {
    padding: 1em;
    border: 1px solid var(--negative);
    background-color: var(--negative-90);
    box-shadow: rgba(0, 0, 0, 0.025) 0px 6px 24px 0px, rgba(0, 0, 0, 0.028) 0px 0px 0px 1px;
    border-radius: 2em;
    margin-top: 2em;
}

.project-not-found h1 {
    color: var(--negative);
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
}



.project-card-header .project-card-title {
    color: var(--primary);
    margin: 0;
    font-size: 1.5em;
}

.project-card-header .project-card-subtitle {
    font-size: 1em;
    margin-top: 0;
    color: var(--primary-10);
    opacity: 0.5;
}



.project-card-latest {
    background-color: var(--positive-90);
    padding: 0.5em;
    border-radius: 0.5em;
    color: var(--positive);
    display: inline-block;
}

.project-card-description {
    text-align: justify;
    margin-top: 1em;
    line-height: 2;
}



.timeline-points {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: smaller;
    align-content: center;
    flex-wrap: wrap;
}



.timeline-title {
    font-size: 2.5em;
    margin: 0;
    color: var(--primary);
    text-align: center;
}

.timeline-subtitle {
    font-size: 1.5em;
    color: var(--primary-10);
    opacity: 0.5;
    text-align: center;
    margin-top: 0.5em;
}



.timeline-points .project-card:first-child::before {
    background-color: transparent;
    border: 0.5em solid var(--primary);
    width: 2em;
    height: 2em;
    box-shadow: 0 0 0 10px var(--primary-90);
    animation: pulsatingWaveShadow 1.5s ease-in-out infinite;
}

.timeline-points .project-card::before {
    content: '';
    position: absolute;
    left: -4em;
    top: 1em;
    width: 3em;
    height: 3em;
    background-color: var(--primary-90);
    border-radius: 50%;
    z-index: 4;
}

.timeline-points .project-card::after {
    content: '';
    position: absolute;
    left: -2.5em;
    top: 3.5em;
    width: 1px;
    height: calc(100% - 3.5em);
    background-color: var(--primary);
    z-index: 3;
}

@keyframes pulsatingWaveShadow {
    0% {
        box-shadow: 0 0 0 0 var(--primary);
    }

    100% {
        box-shadow: 0 0 0 10px transparent;
    }
}
																																														
																																														
																																														
.project-description h1,
h2,
h3,
h4 {
    color: var(--secondary);
}

.project-description h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}



.project-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    overflow-x: auto;
}

.project-description table th {
    color: var(--secondary);
    font-weight: bold;
}

.project-description table th,
.project-description table td {
    padding: 0.5em;
    text-align: left;
}

.project-description table tr {
    border-bottom: 1px solid var(--fg-90);
}

.project-description table tr:nth-child(even) {
    background-color: var(--bg-90);
}



.project-description blockquote {
    border-left: 0.5em solid var(--secondary);
    padding: 1em;
    border-radius: 0.5em;
    margin-top: 1em;
    box-shadow: rgba(0, 0, 0, 0.025) 0px 6px 24px 0px, rgba(0, 0, 0, 0.028) 0px 0px 0px 1px;
}



.project-description code:not(pre code),
.project-description output {
    background-color: var(--bg-90);
    padding: 0.25em;
    border-radius: 0.5em;
    font-family: var(--font-mono);
}



.fact,
.project-title {
    word-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
}