@font-face {
    font-family: RastaRegular;
    src: url(Rasta-Regular.otf);
    font-weight: regular;
}

@font-face {
    font-family: RastaOutline;
    src: url(Rasta-Outline.otf);
    font-weight: regular;
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    cursor: url(/images/cursor.svg), auto;
}

@media (min-aspect-ratio: 1/1) {
    #widescreen {
        display: block;
    }
}

@media (max-aspect-ratio: 1/1) {
    #widescreen {
        display: none;
    }
}


/* 
---------
Selectors
---------
*/

html {
    cursor: url(/images/cursor.svg), auto;
}

a {
    color: #aaa;
    text-decoration: none;
}

body {
    color: #fff;
    background-color: #222;
    text-align: center;
    width: 100%;
}

figcaption {
    display: none;
}

figcaption a {
    color: #bbb;
    line-height: 1.96em;
    padding: 0 0.5em 0 0.5em;
}

h1 {
    font-family: RastaRegular;
    font-size: 7vh;
    line-height: 0.91;
    padding-top: 10vh;
}

h2 {
    font-family: RastaRegular;
    font-size: 5vh;
    line-height: 0.91;
    margin-top: 20vh;
    padding-top: 10vh;
    border-top: 2px solid #fff;
    margin-bottom: 5vh;
}

h3 {
    font-family: RastaRegular;
    font-size: 3.5vh;
    line-height: 0.91;
    margin-top: 10vh;
}

h4 {
    font-family: RastaRegular;
    font-size: 3.5vh;
    line-height: 0.91;
    margin-top: 5vh;
}

h5 {
    margin-top: 2vh;
    font-family: 'Quicksand', sans-serif;
    font-size: 2vh;
    width: 80%;
    margin-left: 10%;
    color: #fff;
}

h6 {
    font-family: RastaRegular;
    font-size: 2.5vh;
    text-align: left;
    margin-top: 5vh;
    margin-bottom: 2.5vh;
    margin-left: 5%;
}

header {
    position: fixed;
    top: 0;
    left: -7vh;
    padding: 10vh 1vh 0 1vh;
    background-color: #222;
    filter: grayscale();
    transition: all 0.5s;
    z-index: 3;
}

header a {
    font-family: 'Quicksand', sans-serif;
    display: block;
    margin: 0 0 0 0;
    line-height: 2;
}

header a img {
    width: 5vh;
    height: 5vh;
    filter: invert();
}

main {
    width: 90vw;
    max-width: 100vh;
    text-align: center;
    margin: auto;
}

p {
    font-size: 1.8vh;
    font-family: 'Quicksand', sans-serif;
    text-align: left;
    width: 80%;
    margin-left: 10%;
    line-height: 3.5vh;
    margin-bottom: 0.5vh;
}

sub {
    text-decoration: none;
    color: #888;
    bottom: 0.5em;
    right: 0.5em;
    text-align: right;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.71em;
}


/* 
-------
Classes
-------
*/

.figshow {
    display: block;
    position: relative;
    padding: 2vh 0 2vh 0;
    margin-top: -1vh;
    font-family: 'Quicksand', sans-serif;
    font-size: 2vh;
    text-align: center;
    width: 100%;
}

.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    transition: all 0.5s;
    overflow: hidden;
    margin: 5vh 0 5vh 0;
}

.art:hover {
    filter: none;
}

.icon {
    max-height: 50vh;
    max-width: 80vw;
    filter: invert();
    left: 10vw;
    position: absolute;
    z-index: -1;
    opacity: 25%;
    display: none;
}

.logo {
    width: 19vw;    
    max-width: 20vh;
    background-color: rgba(34, 34, 34, 0.0);
    transition: all 0.5s; 
    transition-timing-function: cubic-bezier(0, .99, 0, .99);
    padding: 1.5vw;
    filter: grayscale() contrast(1.1) brightness(1.2);
}

.art {
    background-color: rgba(34, 34, 34, 0.0);
    transition: all 0.5s; 
    transition-timing-function: cubic-bezier(0, .99, 0, .99);
    width: 32.5vw;
    padding: 1.5vw;
    filter: grayscale();
}

.clicked {
    position: fixed;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background-color: rgba(34, 34, 34, 0.9);
    padding: 10vh 10% 100vh 10%;
    top: 0;
    transition: width 0.5s, height 0.5s, background-color 1s; 
    z-index: 1;
    filter: none;
}

.clicked .work{
    max-height: 85vh;
}

.logopen {
    position: fixed;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 20vh !important;
    background-color: rgba(34, 34, 34, 0.9);
    padding: 25vh 25% 100vh 25%;
    top: 0;
    transition: width 0.5s, height 0.5s, background-color 1s; 
    z-index: 1;
    filter: none;
}

/* one item */
.art:first-child:nth-last-child(1) {
    width: 65vw;
}

.work {
    max-width: 100%;
    max-height: 50vh;
}

/*
.work:active {
    border: 15px solid rgba(34, 34, 34, 0);
}
*/

.tool {
    background-color: rgba(34, 34, 34, 0.0);
    transition: all 0.5s; 
    transition-timing-function: cubic-bezier(0, .99, 0, .99);
    width: 32.5vw;
    padding: 1.5vw;
}

.yt {
    min-height: 25vh;
    min-width: 50vw;
}


/* 
-----
 IDs 
-----
*/

#cookie {
    position: absolute;
    width: 90vw;
    margin-left: 5vw;
    height: 8vh;
    margin-top: 0;
    background-color: #222;
    transition: all 1s;
    z-index: 1;
}

#widescreen {
    position: absolute;
    width: 90vw;
    margin-left: 5vw;
    height: 8vh;
    margin-top: 0;
    background-color: #222;
    transition: all 1s;
    z-index: 2;
}

#ae {
    filter: brightness(1.25);
}

#ai {
    filter: brightness(1.4) contrast(1.1);
}

#indd {
    filter: brightness(2.5) contrast(1.5);
}

#info {
    position: absolute;
    left: 49%;
}

#html5 {
    position: absolute;
    left: 35%
}

#rhino {
    margin-left: 2em;
}

#office {
    filter: brightness(1.5);
}

#big {
    background-color: #888;
    width: 100%;
}

#small {
    background-color: #888;
}

#menu {
    position: fixed;
    left: 8vh;
    top: 1vh;
    border-radius: 0;
    transition: all 0.5s;
    border: none;
    background-image: url(../images/AF_signet_square.jpg);
    width: 5vh;
    height: 5vh;
    background-position: center;
    background-size: contain;
}

#mineroom {
    max-height: 50vh;
    max-width: 70vw;
    left: 15vw;
    margin-bottom: 5vh;
}


@media (pointer: none), (pointer:coarse) {
    .art, .logo {
        filter: none;
    }
    
    #shadingright, #shadingleft, #shadingtop, #shadingbottom {
        opacity: 0.9;
    } 
    
    #widescreen {
        display: none;
    }
    
}