:root {
    --text_color: rgb(255, 255, 255);
    --background_color: rgb(40, 40, 40);
    --background_image_color: rgb(255, 98, 0);

    --white: rgb(255, 98, 0);
    --black: rgb(255, 255, 255);
}

* {
    font-family: monospace;
    text-align: center;
}

h1,
h2,
h3,
h4,
p::selection {
    /* filter: invert(0); */
    color: var(--black);
    background-color: var(--white);
}


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

html,
body,
main,
.nav_container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    align-items: center;
}

@view-transition {
    navigation: auto;
}

html {
    background-color: var(--background_color);
    height: 100%;
    color: var(--text_color);
    justify-content: center;
    display: flex;
}

body {
    margin: 0;
    /* position: relative; */
    top: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow-y: overlay;s */
}

main {
    position: fixed;
    top: 4vh;
    bottom: 4vh;
    z-index: 10;
    justify-content: space-between;
}

#cover {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--background_color);
    z-index: 9999;
}


.back_div {
    position: fixed;
    top: 4vh;
    z-index: -10;
    justify-content: space-between;
}



.nav_container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.link_container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.basic_button_no_bg {
    background: none;
    border: none;
    border-radius: var(--space_8px);
    padding: 5px var(--space_8px) var(--space_4px) var(--space_8px);
    cursor: pointer;
    text-decoration: none;
}

.horizontal_highlight {
    color: var(--text_color);
    transition: color 200ms;
    width: 100%;
    line-height: 20px;
    position: relative;
}

.horizontal_highlight>div {
    background-color: var(--white);
    position: absolute;
    z-index: -1;
    inset: 0 50% 0 50%;
    transition: inset 200ms ease;
}

.remco_logo {
    width: 100px;
    /* height: 100px; */
    /* position: fixed; */
    z-index: -10;
    /* top:0; */
    filter: invert(1);
}

/* For largest screens only */
#about_text,
#work_text,
.project_text {
    width: 32%;
    max-width: 300px;
}

.project_text {
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credit_container {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.credit_container>div:nth-child(1) {
    text-align: left;
    justify-content: start;
}

.credit_container>div:nth-child(2) {
    text-align: right;
    justify-content: end;
}

.bg_img_container {
    position: fixed;
    inset: 0;
}

#bg_img {
    position: fixed;
    object-fit: cover;
    /* inset: 0; */
    bottom: 0;
    left: 0;
    width: 100%;
}

.imgs_container {
    position: absolute;
    top: 80vh;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    /* box-sizing: border-box; */
    /* height: 0; */
    /* scrollbar-gutter: stable both-edges; */
}

.scroll_container {
    position: relative;
    max-height: 100%;
    width: 100%;
    overflow: auto;
}

.scroll_container>div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: end;
}

@media (hover: hover) {
    p:hover {
        cursor: crosshair;
    }

    .horizontal_highlight:hover {
        color: var(--black);
    }

    .horizontal_highlight:hover>div {
        inset: 0 0 0 0;
        transition: inset 200ms ease;
    }
}

@media (768px < width < 2300px) {

    #about_text,
    #work_text,
    .project_text {
        width: 32%;
        max-width: unset;
    }
}

@media (width < 768px) {

    #about_text,
    #work_text,
    .project_text {
        width: 100%;
        max-width: 300px;
    }

    .credit_container {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .credit_container>div:nth-child(2) {
        text-align: left;
        justify-content: start;
    }

    .scroll_container>div {
        grid-template-columns: 1fr 1fr;
    }
}