.title-text-holder{
    position: fixed;

    width: 80%;
    justify-self: center;

    font-size: 2em;
    margin-top: -50px;

    z-index: 10;
}
.title-text{
    width: fit-content;
    background-color: var(--background-color);
    box-shadow: 0px 0px 5px 5px var(--background-color);

    padding-left: 20px;
    padding-right: 20px;

    border-radius: 1000px;
}

.thumbnail{
    justify-self: center;
    width: min(800px, calc(100vw - 32px));

    margin-top: 60px;
    border-radius: 6px;

    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.363);
    margin-bottom: 50px;
}

.text-thumbnail-container{
    margin-top: 150px;
    width: 100%;
    display: grid;
}

.project-text{
    line-height: 30px;
    word-spacing: -1px;
    border-radius: 7px;
    text-align: justify;
    padding: 20px;
    margin-top: 13px;

    height: fit-content;
    background-color: var(--surface-color);
    font-size: 20px;
}

/* minmax(0, 1fr) keeps code blocks from stretching the page; they scroll inside their box instead. */
.page-middle-offseter{
    width: min(1000px, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr);

    display: grid;
    justify-self: center;
}

.content-image-holder{
    display: flex;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 22px;
}

.title-holder{
    margin-top: 100px;
    justify-self: baseline;
}

.sub-title{
    margin: 0px;
    text-align: left;
    width: fit-content;
}

.content-image{
    width: 100%;
    cursor: zoom-in;
}

.video-embed{
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
}

.code-block{
    background-color: var(--surface-deep);
    border-radius: 6px;
    padding: 16px;
    margin: 10px 0px;

    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 16px;
    line-height: 24px;
    word-spacing: normal;
    text-align: left;
    white-space: pre;
    tab-size: 4;
    overflow-x: auto;
}

.code-block code{
    font-family: inherit;
}

.hljs-keyword,
.hljs-literal{
    color: var(--accent-color);
}
.hljs-type,
.hljs-built_in{
    color: #7FC8C0;
}
.hljs-title{
    color: #8FB8F0;
}
.hljs-string{
    color: #E5C07B;
}
.hljs-number{
    color: #D19A66;
}
.hljs-comment,
.hljs-meta{
    color: var(--muted-color);
}
.hljs-comment{
    font-style: italic;
}

.inline-code{
    background-color: var(--surface-deep);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.step-list{
    margin: 0px;
    text-align: left;
}

.image-zoomin-bg{
    z-index: 99999999;
    top: 0;
    left: 0;
    position: fixed;
    width: 95vw;
    height: 100vh;
    
    pointer-events: none;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
}

.image-zoomin{
    display: flex;

    border-radius: 0.5vw;

    width: 90%;
    height: 90%;

    background-color: var(--surface-color);

    margin-left: 7.5%;
    margin-top: 5vh;

    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;
}

.image-zoomin-content{
    border-radius: 0.3vw;
    user-select: none;
}

.contribution-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 13px;
}

.contribution-card{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;

    background-color: var(--surface-color);
    border-radius: 7px;
    border-left: 4px solid var(--accent-color);

    color: inherit;
    text-decoration: none;
    transition: transform 200ms, background-color 200ms;
}
.contribution-card:hover{
    transform: translateY(-3px);
    background-color: var(--surface-raised);
}
.contribution-card-static:hover{
    transform: none;
    background-color: var(--surface-color);
}

.contribution-title{
    font-size: 24px;
    font-weight: bold;
}
.contribution-desc{
    font-size: 18px;
    line-height: 28px;
    color: var(--muted-color);
    flex-grow: 1;
}

.contribution-tags{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.contribution-tags span{
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 1000px;
    background-color: var(--surface-deep);
}

.contribution-link{
    color: var(--accent-color);
    font-size: 16px;
}

@media (max-width: 800px) {
    .contribution-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .title-text {
        justify-self: center;
    }
}

/* Phones: the title sits at the top of the page instead of floating over the text,
   and text is left-aligned because justified text leaves big gaps in a narrow column. */
@media (max-width: 700px) {
    .text-thumbnail-container{
        margin-top: 100px;
    }

    .title-text-holder{
        position: static;
        width: 100%;
        margin-top: 0px;

        display: grid;
        font-size: 1.5em;
        text-align: center;
    }

    .title-text{
        max-width: 100%;
        box-sizing: border-box;
    }

    .thumbnail{
        margin-top: 24px;
        margin-bottom: 30px;
    }

    .project-text{
        text-align: left;
        word-spacing: normal;
        font-size: 17px;
        line-height: 28px;
        padding: 16px;
    }

    .content-image-holder{
        padding: 14px;
    }

    .title-holder{
        margin-top: 60px;
    }

    .code-block{
        font-size: 14px;
        line-height: 21px;
    }
}