@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');

@font-face {
    font-family: "Gallient";
    src: url("fonts/Gallient.ttf") format("truetype");
}

:root {
    --main-color: rgb(30, 0, 255);
    --favorite-color: #ff31ba;
    --important-font: 'Gallient';
    --default-font: 'Geist Mono';
    --background-color: white;
}

body {
    font-family: var(--default-font);
    background-color: var(--background-color);
    color: var(--main-color);
    margin: 0;
    padding: 0;
    padding-bottom: 250px;
}

#name {
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    box-sizing: border-box;
    padding: 1em 0 0.5em 2em;
    pointer-events: none;
    z-index: 2000;
    text-align: left;
    white-space: nowrap;
    overflow-x: auto;
    background: linear-gradient(0deg,var(--background-color) 0%, rgba(255, 255, 255, 0) 100%);
}

h1 {
    font-family: var(--important-font);
    font-weight: 400;
    font-size: calc(100vw/9.5);
    padding: 0;
    margin: 0;
    transform: translateY(50px);
    pointer-events: none;
    white-space: nowrap;
    overflow-x: auto;
    text-align: left;
}

h2 {
    font-size: 2em;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
}

a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    pointer-events: all;
}

a:hover {
    text-decoration: underline;
}

.bold {
    font-weight: 900;
}

.def_button, .def_button_small {
    font-size: 1.5em;
    padding: 5px;
    text-transform: uppercase;
    border: 2px solid var(--main-color);
    box-sizing: border-box;
}

.def_button:hover, .def_button_small:hover {
    background: var(--main-color);
    color: white;
}

.def_button_small{
    font-size: .75em;
}

#name_links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 2em;
    text-align: left;
    white-space: nowrap;
}

#name_links h2 {
    flex: none;
    text-align: left;
    margin-right: 2em;
}

#name_links div {
    display: flex;
    gap: 1em;
    justify-content: flex-start;
    margin-left: auto;
    margin-right: 10px;
}

#assignment_list {
    flex: 0 0 50vw;
    max-width: 50vw;
    min-width: 320px;
    padding: 1em;
    background: white;
    height: auto;          /* laat de lijst meegroeien */
    overflow: visible;     /* geen interne scroll */
    display: block;
}

#assignment_list li {
    break-inside: avoid;
    margin-bottom: 0px;
    cursor: pointer;
    padding: 5px;
    max-width: 340px;
    min-width: 180px;
    box-sizing: border-box;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    align-items: flex-start;
    justify-content: flex-start;
    display: block;
}

#assignment_list li:hover {
    background-color: var(--main-color);
    color: white;
}

#assignment_list a{
    text-decoration: none;
}

#main_content {
    display: flex;
    flex-direction: row;
    overflow: visible;
}

#assignment_list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 30px;
    /* max-height weggehaald zodat alles mee scrolt */
}

@media (max-width: 900px) {
    #assignment_list {
        position: static;
        max-width: 100vw;
        height: auto;
        overflow-y: visible;
    }

    #assignment_preview {
        position: static;
        width: 100vw;
        height: auto;
    }

    #name {
        padding-left: 1em;
    }

    h1 {
        font-size: 3em;
    }
}

.assignment-title {
    font-weight: 700;
    font-size: 1em;
    display: block;
    text-transform: uppercase;
}

.assignment-category {
    font-size: .7em;
    display: block;
    padding-top: 2px;
}

.assignment-desc {
    font-size: .8em;
    margin-top: 0.2em;
}

.favorites {
    color: var(--favorite-color);
}

#assignment_list ul li.favorites:hover {
    background-color: var(--favorite-color) !important;
    color: white;
}

/* --- PREVIEW RECHTS --- */
#assignment_preview {
    flex: 0 0 50vw;
    max-width: calc(50vw - 50px);
    min-width: 320px;
    height: auto;  /* geen vaste hoogte */
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible; /* laat content meescrollen */
    z-index: 1200;
    pointer-events: none;
    padding: 2em 1em 1em 1em;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
}

#assignment_preview img,
#assignment_preview video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#preview_title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}

/* Loader styling */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 2em auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Zacht fade-in effect voor nieuwe content */
#assignment_preview iframe,
#assignment_preview img,
#assignment_preview video {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#assignment_preview iframe.loaded,
#assignment_preview img.loaded,
#assignment_preview video.loaded {
    opacity: 1;
}

img {
    width: 100%;
}

#seth_photo {
    max-width: calc(100vh - 400px);
}

#left_side {
    margin-top: 60px;
    margin-left: 20px;
}

#bio figure {
    margin: 0 10px 0 0;
}

#bio {
    display: inline-flex;
    margin-top: 20px;
}

#bio h2 {
    font-family: var(--important-font);
    font-weight: bolder;
}

#bio div {
    width: 600px;
}

.bold {
    font-weight: bold;
}

#showcase_large, #assignment_desc{
    width: 50vw;
    padding-top: 20px;
    margin: 0 auto;
}

#showcase_large h2{
    text-align: center;
    font-size: 3em;
    font-weight: bolder;
} 

#back_button {
    position: fixed;   /* zwevend */
    top: 20px;         /* afstand van boven */
    left: 20px;        /* afstand van links */
    z-index: 3000;     /* boven alles */
}

#assignment_desc h3{
    font-size: 1.2em;
    margin-top: 30px;
    text-transform: uppercase;
    font-weight: bolder;
}

h3{
    margin: 20px 0 20px 0;
}

#multibox{
    padding: 0px;
    margin: 0px;
}

#multibox div{
    display: flex;
}