:root {
    --backgroundColor:#D2D0D8;
    /* --jkTextColor: #FF4F03; */
    --jkTextColor: #D2D0D8;
    --gridPadding: 10px;
}

@font-face {
    font-family: 'FairplayScript';
    src:
        url('../fonts/FairplayScript-Regular.woff2') format('woff2'),
        url('../fonts/FairplayScript-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lawrence';
    src:
        url('../fonts/Lawrence-Regular.woff2') format('woff2'),
        url('../fonts/Lawrence-Regular.woff') format('woff'),
}

@-webkit-keyframes jacko {
    0%{background-position:0% 0%}
    20%{background-position:20% 0%}
    40%{background-position:40% 0%}
    60%{background-position:60% 0%}
    80%{background-position:80% 0%}
    100%{background-position:100% 0%}
}
@-moz-keyframes jacko {
    0%{background-position:0% 0%}
    20%{background-position:20% 0%}
    40%{background-position:40% 0%}
    60%{background-position:60% 0%}
    80%{background-position:80% 0%}
    100%{background-position:100% 0%}
}
@keyframes jacko {
    0%{background-position:0% 0%}
    20%{background-position:20% 0%}
    40%{background-position:40% 0%}
    60%{background-position:60% 0%}
    80%{background-position:80% 0%}
    100%{background-position:100% 0%}
}

@keyframes hovercolor {
    0%{color: red;}
    100%{color: blue}
}


html {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--backgroundColor);
    margin: 3em 0 0 0;
}

#about {
    position: fixed;
    right: 30px;
    top: 20px;
    z-index: 1;
}

#home {
    position: fixed;
    left: 30px;
    top: 20px;
    z-index: 1;
}

.oval {
    background-color: var(--backgroundColor);
    filter: drop-shadow(10px 10px 10px #000);
    padding: 10px;
    border-radius: 50%;
}

#flower {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    z-index: 10;
    width: 15vw;
    mix-blend-mode: multiply;
}

.JK {
    position: absolute;
    font-size: 500px;
    word-break: break-all;
    text-align: center;
    font-family: 'Chomsky';
    text-transform: uppercase;
    color: var(--jkTextColor);
    z-index: -1;
}

.JK h1 {
    margin-top: 100px;
    font-weight: normal;
    line-height: 700px;
    margin-bottom: -100px;
}

h2 {
    font-family: sans-serif;
}

a {
    text-decoration: overline;
    color: #4a3097;
    transition: font-size 60s;
}

.fairplay {
    font-family: 'FairplayScript';
}

a:hover {
    /* color: magenta; */
    animation-name: hovercolor;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    font-size: 100px;
}

.grid-parent {
    display: grid;
    grid-template-columns: 10px repeat(3, 10fr) 10px;
    grid-template-rows: 10px repeat(3, 10fr) 10px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    position: relative;
    min-height: 100px;
    max-height: 80vh;
    width: 100%;
}

.fullscreen-true,
.fullscreen-true .grid-image img, 
.fullscreen-true .grid-image video {
    max-height: none;
}

.grid-image { 
    grid-area: 1 / 1 / 6 / 6; 
    width: 100%;
    text-align: center;
    align-self: center;
    justify-self: center;
}

.grid-image img, .grid-image video {
    max-height: 100vh;
    max-width: 100%;
}

.no-image-title {
    font-size: 140px;
    letter-spacing: -1px;
    font-family: 'Lawrence';
    text-transform: uppercase;
    filter: blur(2px);
    color: rgb(52, 4, 52);
    line-height: 80%;
    margin: 10vh;
}

.no-image-title a {
    font-size: inherit;
    transition: none;
}

.no-image-title a {
    text-decoration: none;
}

.grid-text { 
    grid-area: 3 / 2 / 4 / 5; 
    position: absolute;
    font-size: 10px;
    padding: 10px;
    text-align: center;
    background-color: var(--backgroundColor);
    filter: drop-shadow(10px 10px 10px #000);
}

h2 {
    padding: 0;
    margin: 0;
}

.projectpage {
    margin: 20px
}

.credits {
    width: 30vw;
    font-family: sans-serif;
    padding: 20px;
    margin: 0 auto;
    background-color: var(--backgroundColor);
    filter: drop-shadow(10px 10px 10px #000)
}


.credits em {
    color: red;
    font-style: normal;
    animation-name: jacko;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    background: linear-gradient(45deg, #ff0404, #d7ae0e, #3aff00, #0011ff, #ff00df);
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projectpage .credits p {
    filter: none;
}

.projectpage h1 {
    text-align: center;
    font-family: cursive;
    transform: scaleX(4);
    width: 20vw;
    margin-left: auto;
    margin-right: auto;
}

.project-desc p {
    font-size: 18px;
    line-height: 140%;
    width: 60vw;
    max-width: 700px;
    padding: 20px;
    margin: 20px auto;
    background-color: var(--backgroundColor);
    filter: drop-shadow(10px 10px 10px #000)
}

.projectpage figure {
    text-align: center;
}

.projectpage img {
    max-width: 100%;
    image-rendering: -moz-crisp-edges;         /* Firefox */
    image-rendering:   -o-crisp-edges;         /* Opera */
    image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;  /* IE (non-standard property) */
}

.projectpage video {
    max-width: 100%;
}

@keyframes movin {
    0% { margin-left: 0 }
    100% { margin-left: 100% }
}

@media screen and (max-width: 400px) {

    #home {
        left: 5px;
        top: 5px;
    }

    #about {
        right: 5px;
        top: 5px;
    }

    body {
        margin-top: 5em;
    }

    .grid-parent {
        grid-template-columns: 40px repeat(3, 1fr) 10px;
        grid-template-rows: 20px repeat(3, 1fr) 10px;
        margin-bottom: 20px;
    }

    .grid-text {
        grid-area: 1 / 1 / 6 / 6; 
        justify-self: center;
        align-self: start;
        text-align: center;
        transform-origin: bottom left;
        /* transform: rotate(90deg); */
    }

    .grid-image {
        grid-area: 2 / 1 / 6 / 6; 
        align-self: center;
    }

    .no-image-title {
        font-size: 48px;
    }

    .JK {
        font-size: 10px;
    }

    #flower {
        bottom: 2vh;
        right: 2vw;
        width: 30vw;
    }

    .projectpage {
        margin: 5px;
    }

    .credits {
        width: inherit;
        font-size: 1em;
        padding: 15px;
    }

    .projectpage h1 {
        max-width: 100%;
        width: 50vw;
        line-height: 1em;
        text-align: center;
        font-size: 2em;
        transform: scale(2,1);
        margin: 20px auto;
    }

    .project-desc p {
        width: inherit;
        font-size: 1.2em;
        line-height: 1.2em;
    }

    .projectpage figure {
        margin: 0;
        max-width: 100%;
    }

    .projectpage img {
        max-width: 100%;
    }


}