html {
    background-color: #f2f2f2;
    overflow: hidden;
}

body {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    text-rendering: geometricPrecision;
    margin: 0px;
    overflow: hidden;
}

img {
    max-width: 100%;
    margin-top: 5px;
}

p {
    margin: 0px;
    margin-bottom: 10px;
}

*:focus {outline:0;}

.project-title, .close-project-btn {
    display: none;
}

.project-details img,
.project-details iframe,
.project-details video {
    max-width: calc(100% + 162px);
}

.project-details video {
    width: unset !important;
    height: unset !important;
}

.main-title .letter {
    transition: color 1s ease;
}

.main-title .letter.custom-colour {
    transition: color 0s ease;
}

h1, h2, h3, h4, h5 {
    margin: 0px;
}

h1 {
    font-family: 'Major Mono Display', monospace;
    margin-bottom: 30px;
    font-size: 3.1em;
    position: relative;
}

h1 a {
    text-decoration: none;
}

h2 {
    text-transform: uppercase;
    font-size: 1.1em;
    position: relative;
}

h3 {
    font-size: 3em;
    color: rgb(150, 150, 150);
    margin-bottom: 20px;
}

.container {
    max-width: 650px;
    margin: auto;
    transform: translateX(-100px);
    padding-top: 100px;
    display: grid;
    grid-template-columns: 300px auto;
    grid-gap: 30px;
}

.container > div {
    margin-top: -7px;
    margin-bottom: -4px;
    position: relative;
}

a {
    color: inherit;
}

.project-details {
    position: absolute;
}

.projects {
    text-transform: uppercase;
    text-align: right;
    position: absolute;
    right: 0px;
}

.projects a {
    text-decoration: none;
    display: block;
    color: rgb(150, 150, 150);
    margin-bottom: 17px;
    font-size: 1.4em;
    /* transition: all 0.2s ease; */
    position: relative;
}

.projects a:hover:not(.active) {
    text-decoration: underline;
}

.projects a.active {
    font-weight: bold;
    color: inherit;
    font-size: 3em;
    margin-bottom: 12px;
    line-height: 60px;
    margin-top: -5px;
}

.corner {
    border: 1px solid black;
}

.corner.top-left {
    position: absolute;
    bottom: 5px;
    right: 0px;
    height: 90px;
    width: 90px;
    border-left-width: 0px;
    border-top-width: 0px;
}

.corner.bottom-right {
    margin-top: 26px;
    height: 45px;
    width: 45px;
    border-right-width: 0px;
    border-bottom-width: 0px;
}

.corner.bottom-right.short-margin {
    margin-top: 9px;
}

@media (max-width: 1111px) {
    .container {
        margin-left: 30px;
        transform: translateX(0px);
    }
}

@media (max-width: 999px) {
    .container {
        margin-left: 30px;
        transform: translateX(0px);
        max-width: 450px;
        grid-template-columns: 200px auto;
    }
    h1, h2 {
        margin-right: -20px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 0.9em;
    }
    .project-details img,
    .project-details iframe,
    .project-details video {
        max-width: calc(100% + 115px);
    }
}

@media (min-width: 701px) {
    h3 {
        margin-top: 0px !important;
    }
}

@media (max-width: 700px) {
    body {
        padding: 0px 10px;
    }
    .project-title {
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 3em;
        width: calc(100% - 50px);
        margin-bottom: 20px;
        line-height: 40px;
        opacity: 1;
        transition: opacity .2s;
    }
    .container {
        margin-left: 0px;
        transform: translateX(0px);
        max-width: 100%;
        grid-template-columns: 100%;
        padding-top: 20px;
        grid-gap: 20px;
    }
    h1 {
        font-size: 35px;
        /*font-size: 11.6vw;*/
        margin-left: -4px;
    }
    h2 {
        font-size: 1.25em;
        width: 100%;
    }
    .project-details img,
    .project-details iframe,
    .project-details video {
        max-width: calc(100% + 20px);
        position: relative;
        left: -10px
    }
    .corner {
        display: none;
    }

    .projects {
        text-align: left;
    }

    .projects a, .projects a.active {
        font-weight: bold;
        font-size: 3em;
        margin-bottom: 0px;
        line-height: 30px;
        margin-top: 20px;
        margin-bottom: 25px;
        color: black;
        width: calc(100% - 50px);
        line-height: 40px;
    }

    .projects a.active {
        color: rgb(150, 150, 150);
    }

    .projects, .project-details {
        opacity: 1;
        transition: opacity .2s;
    }

    .projects {
        background-color: #f2f2f2ed;
    }

    .project-details .close-project-btn {
        display: block;
        position: absolute;
        right: -5px;
        top: -16px;
        transform: rotate(45deg);
        font-size: 4.5em;
        z-index: 10000;
        cursor: pointer;
    }

    .project-details.fixed-header .close-project-btn {
        position: fixed;
        top: -10px;
    }

    .project-details.fixed-header .project-title {
        position: fixed;
        top: 5px;
        z-index: -10;
        opacity: 0.05;
    }

    .project-details.fixed-header h3 {
        margin-top: unset;
    }

    body.project-open .projects,
    body:not(.project-open) .project-details {
        opacity: 0;
        pointer-events: none;
    }

    .projects a:hover:not(.active) {
        text-decoration: none;
    }
}