:root {
    --max-width: 1100px;
    --color: #111;
    --dim-color: #333;
    --background: #e5e5e5;
    --background-light: #c6c6c6;
    --background-inverted: #111;
    --scrollbar: #50688d;
    --scrollbar-back: #c0c2c4;
    --plate_border: #142533;
    --plate_border_light: #5183ad;
    --key-color: #ffd300;
    --header_height: 42px;
    --project_container_gradient: linear-gradient(to right, rgba(180, 200, 220, 0.3) 0%, rgba(5, 5, 40, 0.3) 100%);
}

.dark-mode {
        --color: #fff;
        --dim-color: #d1d1d1;
        --background: #27272c;
        --background-light: #3d3f41;
        --background-inverted: #e5e5e5;
        --scrollbar: #323638;
        --scrollbar-back: #000000;
        --key-color: #ffd300;
        --project_container_gradient: linear-gradient(to right, rgba(90, 100, 120, 0.3) 0%, rgba(5, 5, 40, 0.3) 100%);
    }


.blackout {
    display: none;
    background-color: black !important;
    color: black !important;
    margin: 0; 
    height: 100vh;
    overflow: hidden;
}

.preload, .preload * {
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

* {
    scrollbar-color: var(--scrollbar) var(--scrollbar-back);
    margin: 0;
    padding: 0;
    border: 0;
    image-rendering: auto;
    box-sizing: border-box;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, outline 0.25s, filter 0.25s, scrollbar-color 0.25s;
}

html {
    height: 100%;
    transition: none;
    background: black;
}

img {
    width: 100%;
    margin-bottom: 8px;
}

.dark-mode .dim {
    filter: brightness(0.7);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
html {
    font-size: 16px;
    overflow: hidden;
}
body {
    color: var(--color);
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .default-background {
        background-color: var(--background);
    }

    .brick-background {
        background-image: url('../Images/darkbricks.png');
        background-position: top left;
        background-repeat: repeat;
        background-size: 160px 160px;
        box-shadow: none;
    }

.dark-mode .brick-background {
    box-shadow: inset 0 0 200px 5px rgba(5, 0, 15, 0.7);
}

    a {
        color: #7dcaed;
        text-decoration: none;
        cursor: pointer;
        font-weight: bold;
    }

    /* ==================================[ HEADER ]============================== */

.header {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--background);
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.5);
    overflow-x: clip;
}

.header-inner {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    flex-shrink: 1;
}

.header-link {
    display: inline-block;
    color: var(--color);
    padding: 10px 20px;
}

        .header-link:hover {
            background-color: var(--background-light);
        }

        .header-link.active {
            box-shadow: inset 0 -5px 0px 0px var(--color);
        }

    .site-links {
        display: flex;

        text-align: left;
        justify-content: flex-start;
        font-size: 18px;
    }

    .user-controls {
        display: flex;
        flex: 1;
        text-align: right;
        justify-content: flex-end;
    }


    /* ==================================[ BODY ]============================== */

h1, h2, h3, h4, p, figure {
    margin-bottom: 10px;
}
h1, h2, h3, h4 {
    margin-top: 10px;
}


.page {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: scroll;
    height: 100%;
    overflow-y: auto; /* or scroll */
}

    .footer {
        max-width: var(--max-width);
        margin: auto auto 0 auto;
    }


.plate {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
    margin: auto;
    max-width: var(--max-width);
    background-color: var(--background);
    box-shadow: none;
    height: fit-content;

}

.dark-mode .plate {
    box-shadow: 0 0 100px 0 rgba(5, 5, 15, 0.5);
}

/* threeCanvasContainer */

#threeCanvasContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #202020;
    pointer-events: none;
}

#long_page {
    min-height: 3000px;
}
    /* threeCanvasContainer */
    .pixel-image {
        image-rendering: pixelated;
        image-rendering: -moz-crisp-edges;
    }

    .plate ul {
        padding-left: 23px;
        margin-bottom: 10px;
    }

    ul > li {
        padding-bottom: 4px;
    }

    .plate figcaption {
        text-align: center;
        font-size: 14px;
        color: #4774a9;
    }


    .plate .code {
        display: inline-block;
        padding: 5px 10px;
        margin: 10px 0;
        width: calc(100% - 20px);
        color: lightgrey;
        background-color: black;
        border-radius: 4px;
        font-size: 12px;
    }

    .year_banner {
        background-color: var(--plate_border_light);
        padding: 5px;
        text-align: center;
    }

        .year_banner span {
            color: white;
            font-weight: bold;
            font-size: 22px;
            letter-spacing: 2px;
        }

    .title-container {
        padding: 30px 20px 10px 20px;
    }

.body-container {
    border-top: 2px solid black;
    padding: 0px 20px 20px 20px;
}

    .project_container {
        border: 0px dashed var(--plate_border_light);
        border-top-width: 1px;
        border-bottom-width: 1px;
        background-color: var(--background-light);
        margin: 0px;
    }

    .project_body, .extra_container {
        padding: 10px 20px;
    }

        .project_body > * {
            margin-bottom: 10px;
        }
    /* radial-gradient(Circle at top right, #9ca9b150 34%, #9ca9b1 39%) */

    .hvor_side {
        background-image: var(--project_container_gradient), url('../Images/hvor_page_censored_screenshot.png');
        background-position: top, top left;
        background-repeat: no-repeat, no-repeat;
        background-size: cover, cover;
    }

    .calendar_and_images {
        background-image: var(--project_container_gradient), url('../Images/CalendarAndImageDisplayer.png');
        background-position: top, top left;
        background-repeat: no-repeat, no-repeat;
        background-size: auto, cover;
    }

    .game_dev {
        background-image: var(--project_container_gradient), url('../Images/Traveler.png');
        background-position: top, center bottom;
        background-repeat: no-repeat, no-repeat;
        background-size: auto, cover;
    }

    .split_table {
        display: flex;
        flex-direction: row;
    }

        .split_table > div:first-child {
            width: 60%;
            padding-right: 10px;
        }

        .split_table > div:last-child {
            width: calc(40% - 10px);
        }


    .button_link {
        font-weight: bold;
        padding: 8px 20px;
        font-size: 14px;
        border-radius: 5px;
        text-decoration: none;
        align-items: center;
        border: 1px solid gray;
    }



.project_page_direct_bottom {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
}

    .project_page_direct {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 5px;
        gap: 5px;
    }

.white_redirect {
    background-color: var(--background);
    color: var(--color);
}

        .white_redirect:hover {
            background-color: var(--background-light);
        }


    .project_end {
        padding: 10px 0px;
    }

.project_footer {
    height: 100px;
}


.GitHub_button {
    display: inline-flex;
    background-color: #24292e;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

        .GitHub_button i {
            margin-right: 12px;
            font-size: 18px;
        }

        .GitHub_button:hover {
            background-color: #444d56;
        }


    .big_project_div {
    }

    .big_project_button {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
    }

    /* ================================================ */


iframe {
    height: 100%;
    width: 100%;
}

.bottomButtonContainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-top: 12px;
}