@font-face {
    font-family: "VT323";
    src: url("../assets/fonts/VT323/VT323-Regular.woff") format('woff');
}

* {
    margin: 0;
    padding: 0;
}

.img-pixellated-scale {
    image-rendering: optimizeSpeed;
    /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;
    /* Firefox                        */
    image-rendering: -o-crisp-edges;
    /* Opera                          */
    image-rendering: -webkit-optimize-contrast;
    /* Chrome (and eventually Safari) */
    image-rendering: pixelated;
    /* Universal support since 2021   */
    image-rendering: optimize-contrast;
    /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;
    /* IE8+                           */
}

body {
    font-family: VT323, sans-serif;
    background: whitesmoke;
    font-family: 'Arial';
    font-size: 150%;
    font-weight: bold;
    text-transform: uppercase;
    height: auto;
    padding: 0;
    margin: 0;
    width: 100%;
}

.index-body {
    background-image: url("../assets/bgs/koji-logo-01.png");
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 375px;
    height: 100%;
    background-attachment: scroll;
}

@media only screen and (max-width: 750px) {
    .index-body {
        background-size: 50%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
h7,
h8 {
    font-weight: bold;
    font-size: 1em;
}

a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

ul,
li {
    list-style: none;
}

figure {
    margin: 0;
    padding: 0;
}

img {
    padding: 0;
    margin: 0;
    display: block;
}

hr {
    border-top: 0px solid black;
    border-style: solid;
    margin: 0;
}

.centered {
    text-align: center;
    position: relative;
}


/** --------------------------- STRUCTURE ----------------------------- **/

#header {
    display: block;
    position: fixed;
    height: 1.5em;
    white-space: nowrap;
    width: 100%;
    background: whitesmoke;
    border-bottom: black solid 1px;
    color: black;
    font-size: 1em;
    z-index: 999;
}

#main-content {
    clear: both;
    display: block;
    height: auto;
    margin: 0 auto;
    padding: 0;
    position: relative;
    text-align: center;
}

.panel {
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
}

#left-sidebar {
    padding: 1.35em 0 0 0;
    position: fixed;
    display: block;
    padding: .5em;
    text-align: left;
    width: 100%;
    height: auto;
    z-index: 99;
    border-bottom: 1px solid black;
    padding-top: 2em;
}

.index {
    background: whitesmoke;
}


.menu-collapsed {
    right: -100%;
}

#center-section {
    padding: 1.5em 0 0 0;
    width: 100%;
}

#right-sidebar {
    position: relative;
    padding: .5em;
}

#footer {
    font-size: 75%;
    position: relative;
    bottom: 0;
    padding: .5em;
}

.reel-contents li {
    text-transform: none;
    display: inline-block;
    padding: .1rem .2rem;
    margin: .2rem .2rem .2rem 0;
    border: black 1px solid;
}

#proj-nav-buttons {
    position:fixed;
    height:1.5em;
    bottom:0em;
    left:75%;
    margin:0 -1.5em;
    display:block;
    border:1px solid black;
}

.proj-nav {
    z-index:99;
    position:fixed;
    display:block;
    height:1.5em;
    width:1.5em;
    color:black;
}

#proj-nav-previous {
    border-left:none;
    left:0px;
    top:50%;
}   

#proj-nav-next {
    right:0px;
    border-right:none;
    top:50%;
}


/** ---------------------------- NAV STYLING ---------------------------- **/

#navigation li {
    display: block;
}

/** ---------------------------- GALLERY STYLING ---------------------------- **/
.gallery {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    position: relative;
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    white-space: wrap;
}

.index-image {
    position: fixed;
    display: block;
    box-sizing: content-box;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    left: 0px;
    top: 0px;
    overflow: hidden;
}

.index-image img {
    width: auto;
    height: 50%;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.gallery-view {
    -webkit-transition: display 0.5s ease-in-out;
    -moz-transition: display 0.5s ease-in-out;
    transition: display 0.5s ease-in-out;
}

.list-view {
    -webkit-transition: display 0.5s ease-in-out;
    -moz-transition: display 0.5s ease-in-out;
    transition: display 0.5s ease-in-out;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.text {
    display: block;
    padding: .5em;
    text-align: left;
    font-size: 1em;
    position: relative;
}

.gallery-illos .th {
    position: relative;
    padding: 5px 0;
}

.illo-caption-wrapper {
    z-index:99;
    opacity: 1;
    display: flex;
    align-items: center;
    position:relative;
    width: 100%;
    height: 100%;
    left: 0px;
    top:0px;
    text-align: right;
    padding: .5em 0 1em 1em;
    font-size: .5em;

}

.illo-caption {
    background: transparent;
    color: black;
    padding: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}


.th {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: auto;
}

.th-fullwidth {
    width: 100%;
}

.th-fullwidth:nth-of-type(2n) {}

.th-75 {
    width: 100%;
}

.th-60 {
    width: 100%;
}

.th-half {
    width: 100%;
}

.th-quarter {
    width: 100%;
}

.th-third {
    width: 100%;
}

.th:nth-child(2n) {}

.th>div {
    box-sizing: border-box;
}

#mobile-menu-button {
    z-index: 999;
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: auto;
    height: 1.5em;
    background: orangered;
    color: black;
    border-right: 1px solid black;
    padding: 0 .5em;
    line-height: 1.5em;
}

#mobile-menu-button:hover {
    cursor: pointer;

    background: black;
    color: white;
}

/** ---------------------------- TEXT STYLING ---------------------------- **/

p {
    text-transform: none;
    font-size: 1em;
}

#main-content p {
    text-align: left;
}

#footer p {
    text-transform: none;
}

.skills {
    font-size: 75%;
}

.skills li {
    display: inline-block;
    list-style: none;
    background: #ccc;
    padding: 0 .2em;
    margin: .1em 0em;
}

#header p {
    display: inline-block;
    width: 100%;
    line-height: 1.5em;
    padding: 0 .5em;
}


/** ---------------------------- PROJECT INDEX STYLING ---------------------------- **/

.projects li {
    padding: .2em 0;
    border-top: 1px dashed grey;
}

.projects li:nth-child(2n) {}

.projects li.year,
.projects li:first-of-type {
    border-top: none;
}

.projects li.year {
    margin: .75em 0;
    text-align: right;
    background: transparent;
}

.client {}

/** ---------------------------- LINK STYLING ---------------------------- **/
a:link {
    color: blue;
}

a:active {
    color: blue;
}

a:visited {
    color: blue;
}

a:hover {
    color: blue;
    cursor: pointer;
}

#center-section img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
}

#header a:hover {
    color: black;
    cursor: hover;
}

/** ----- Ticker Animation ----- **/


@-webkit-keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    overflow: hidden;
    height: 1.66em;
    padding-left: 100%;
    box-sizing: content-box;
}

.ticker-wrap .ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-name: ticker;
    animation-name: ticker;
    -webkit-animation-duration: 12s;
    animation-duration: 12s;
}

.ticker-wrap .ticker__item {
    display: inline-block;
    padding: 0 1em;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2) {
    body {
        font-size: 150%;
    }
}

/** ------------------------------- DESKTOP ------------------------- **/

@media screen and (min-width: 1080px) {

    body {
        font-size: 150%;
        width: 100%;
    }

    /** --------------------------- STRUCTURE ----------------------------- **/
    #header {
        height: 2em;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    #main-content {
        left: 0px;
        top: 0px;
        position: relative;
        padding: 3.5em 0;
        height: 100%;
    }

    .text {
        text-align: left;
        padding: 0;
    }

    .text-p {
        margin: 0 auto;
        padding: 0 0 .5em 0;
    }

    #header p {
        padding: 0;
    }

    .panel {
        width: auto;
        display: block;
    }

    #left-sidebar {
        text-align: left;
        position: fixed;
        left: 0%;
        top: 0%;
        width: 50%;
        height: 100%;
        margin: 0;
        margin-bottom: none;
        padding: 0;
        padding: 3.5em 1.5em;
        border-bottom: none;
        border-right: 1px solid black;
    }

    .index {
        background: transparent;
    }

    #center-section {
        position: relative;
        left: 50%;
        width: 50%;
        margin-bottom: 1.2em;
        padding: 0 2em 2em 1.5em;
        min-height: 100%;
    }

    #footer {
        position: fixed;
        bottom: 0;
        margin: 0;
        margin-bottom: none;
        padding-left: calc(5% + .5em);

    }

    #right-sidebar {
        position: fixed;
        left: 75%;
        width: 20%;
        margin: 0;
        margin-bottom: none;
        padding: 0;
    }

    .gallery-illos .th {
        padding: 2.5%;
    }

    .illo-caption-wrapper {
        font-size: .5em;
    }

    .th-75 {
        width: 75%;
    }

    .th-60 {
        width: 60%;
    }

    .th-half {
        width: 50%;
    }

    .th-quarter {
        width: 25%;
    }

    .th-third {
        width: 33.33%;
    }


    .ticker-wrap {
        position: relative;
        top: .25em;
        width: 100%;
        overflow: hidden;
        height: 2em;
        padding-left: 0%;
        box-sizing: content-box;
    }

    .ticker-wrap .ticker {
        display: inline-block;
        white-space: nowrap;
        padding-right: 0%;
        box-sizing: content-box;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-name: ticker;
        animation-name: ticker;
        -webkit-animation-duration: 0s;
        animation-duration: 0s;
    }

    .ticker-wrap .ticker__item {
        display: inline-block;
        padding: 0;
    }

    #mobile-menu-button {
        display: none;
    }

    #proj-nav-previous {
        left:50%;
    }   
    
    #proj-nav-next {
    }

}