* {
    margin: 0;
    padding: 0;
    font-family: system, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", "Roboto", "Ubuntu", Arial, sans-serif;
    font-weight: 300;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: url('../img/bg.png');
    min-width: 560px;
}

strong, header span[id|="gh"], header span[id|="tw"] {
    font-weight: 600;
}

table {
    margin: auto;
    width: 99%;
    max-width: 1100px;
    table-layout: fixed;
}

.letterpress {
    text-shadow: 0px 1px 0px white;/*, 0px -1px 0px rgba(0,0,0,0.42);*/
}

video {
    background: black;
    color: white;
}

/* HEADER */

.altTitleColor {
    color: rgba(255, 255, 255, 0.75);
}

@-webkit-keyframes SlideBG {
    0%{background-position:0% 50%}
    100%{background-position:100% 50%}
}
@-moz-keyframes SlideBG {
    0%{background-position:0% 50%}
    100%{background-position:100% 50%}
}
@keyframes SlideBG { 
    0%{background-position:0% 50%}
    100%{background-position:100% 50%}
}

header {
    padding: 15px 0px 10px 0px;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    background-color: #FF4260;
    background: linear-gradient(108deg, #FF3431 0%, #FFBD41 8.3%, #8FCB3F 16.6%, #00E5FF 25%, #3277FF 33.3%, #FB67FF 41.6%, #FF3431 50%, #FFBD41 58.3%, #8FCB3F 66.6%, #00E5FF 75%, #3277FF 83.3%, #FB67FF 91.6%, #FF3431 100%);
    background-size: 1000% 200%;
    animation: SlideBG 90s linear infinite alternate;
    transform: translateZ(0);   /* Use GPU optimization */
}

header h1 {
    font-size: 3.4em;
    font-weight: 800;
}

header h2 {
    margin-top: 11px;
    font-size: 1.2em;
    font-weight: 600;
}

header nav {
    margin: 20px 0px;
}

header a {
    color: inherit;
    text-decoration: none;
}

header #avatar {
    height: 110px;
    width: 110px;
    margin: 20px auto -5px auto;
    background: white url('../img/avatar.jpg') no-repeat;
    background-size: cover;
    background-position: center center;
    background-clip: content-box;
    border-radius: 65px;
    border: 5px solid rgba(255, 255, 255, 0.75);
}

header #avatar:hover {
    position: relative;
    animation: bounce 0.8s infinite;
    animation-timing-function: cubic-bezier(0.455, 0.030, 0.515, 0.955);
    transform-origin: center bottom;
}

@keyframes bounce {
    0% { bottom: 0px; }
    30% { transform: scaleY(1); }
    50% { bottom: -20px; transform: scaleY(.9); }
    60% { transform: scaleY(1); }
    100% { bottom: 0px; }
}

/* BUTTONS */

.button {
    display: inline-block;
    margin: 5px 8px;
    padding: 9px 15px 8px 15px;
    height: 25px;
    width: 120px;
    position: relative;
    top: 0;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    mix-blend-mode: overlay;
    font-size: 1.25em;
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: top 0.2s ease-in-out, background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
}

.button:hover {
    top: -6px;
    box-shadow: 0px 1px 8px white;
    background: white;
    color: #FF4260;
    mix-blend-mode: initial;
}

.button:active {
    top: 0px;
    background: #FF4260;
    color: white;
}

.button .slash {
    display: inline-block;
    height: 105%;
    width: 1px;
    position: absolute;
    top: -1px;
    background: black;
    transform: rotate(18deg);
}

.button:hover .slash {
    background: #FF4260;
}

.button:active .slash {
    background: white;
}
    
header td .hiddenButtons { 
    display: none;
}
    
header .standardButtons {
    display: table-row;
}

/* HEADER INFOS */

header td, th {
    min-width: 210px;
    padding: 5px 20px;
    line-height: 25px;
}

.flags {
    font-size: 1.8em;
    line-height: 30px;
    white-space: nowrap;
}

.flags .highlighted {
    text-shadow: 0 0 10px white;
}

.gitnote {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
}


/* SKILLS */

@font-face {
  font-family: 'SFMono-Heavy';
  font-style: normal;
  font-weight: 700;
  src: url('../res/SFMono-Heavy.otf') format('opentype');
}
@font-face {
  font-family: 'SFMono-Regular';
  font-style: normal;
  font-weight: 700;
  src: url('../res/SFMono-Regular.otf') format('opentype');
}

#skills {
    height: 400px;
    background-color: #383835;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid white;
}

#boxLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 30px 30px -30px rgba(0,0,0,0.6), inset 0 -30px 30px -30px rgba(0,0,0,0.6);
}

#skills h1, #projects, #paint {
    display: block;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

#skills h1, #projects h1, #projects h3, #paint h1 {
    font-family: 'SFMono-Heavy', 'SF Mono', 'Inconsolata', Monaco, 'Lucida Console', monospace;
    font-weight: 900;
    font-size: 2em;
    color: #FF4260;
}

#skills h1 {
    text-shadow: 0 0 25px black;
    position: relative;
    z-index: 100;
}

#skillsCanvas {
    position: absolute;
    top: 0;
    opacity: 0;
    transition: 0.7s opacity ease-in-out;
}


/* PROJECTS */

#projects table {
    max-width: 1160px;
}

#projects td {
    padding: 0px 15px 50px 15px;
    vertical-align: top;
}

#projects h1, #paint h1 {
    padding-top: 5px;
    padding-bottom: 40px;
}

#projects h2 {
    font-weight: bold;
    color: #383835;
}

#projects h2 span {
    font-size: 12px;
    font-weight: normal;
    color: #A2A2A2;
}

#projects h3 {
    color: #888;
    padding: 40px 0;
    font-size: 1.5em;
}

#projects p {
    color: #515151;
    font-weight: 400;
    padding: 10px 0;
}

#projects a {
    display: block;
    text-decoration: none;
    color: #8A8A8A;
    padding-bottom: 5px;
    text-shadow: 0 1px 0 white;
    font-weight: 400;
    line-height: 1.35;
}

#projects a span {
    position: relative;
    left: 0;
    transition: 0.2s all ease-in-out;
}

#projects a:hover span {
    left: 7px;
}

#projects a:hover {
    color: #5A5A5A;
}

#projects a img {
    margin: 0;
    padding-right: 2px;
    vertical-align: text-bottom;
    height: 20px;
    opacity: 0.8;
    box-shadow: none;
}

#projects .projectWrapper:hover a img {
    box-shadow: none;
}

#projects .projectWrapper a:hover img {
    opacity: 1;
}

#projects img, #projects video {
    margin-right: 40px;
    max-width: 100%;
    max-height: 400px;
    margin-bottom: 10px;
    transition: 0.4s box-shadow ease-out;
}

#projects img, #projects video, #paint img {
    border-radius: 5px;
    box-shadow: 0px 0px 15px #999;
}

#projects .projectWrapper:hover img, #projects .projectWrapper:hover video {
    box-shadow: 0px 0px 30px #555;
}

#projects td.large p {
    padding: 20px 0;
}

#projects td.large img, #projects td.large video {
    margin-bottom: 0;
    float: left;
    max-width: 60%;
    max-height: 500px;
}


/* MISC */

#paint table {
    margin-top: -30px;
    vertical-align: middle;
    table-layout: auto;
}

#paint h1 {
    font-size: 1.5em;
    padding-top: 35px;
    padding-left: 15px;
}

#paint #gallery {
    width: 320px;
    height: 200px;
    padding-right: 10px;
    position: relative;
}

#paint img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0px;
    right: 15px;
    opacity: 0;
    cursor: pointer;
    transition: 1s opacity ease-in;
}

.playButton {
    display: block;
    position: relative;
    z-index: 10;
    height: 100px;
    width: 100px;
    border-radius: 50px;
    background: url('../img/play.png') rgba(0, 0, 0, 0.42);
    background-size: 50px;
    background-position: 31px center;
    background-repeat: no-repeat;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 4px black;
    margin-bottom: -100px;
    transition: 0.2s transform ease-in;
    cursor: pointer;
}

.playButton:hover, #projects img:hover ~ .playButton {
    transform: scale(1.1, 1.1);
}

.playButton:active {
    transform: scale(1.1, 1.1);
    background-color: rgba(255, 255, 255, 0.42);
}


/* FOOTER */

#footerContacts {
    padding-top: 15px;
    text-align: center;
}

#footerContacts .button {
    color: white;
    background: #FF4260;
    mix-blend-mode: normal;
}

#footerContacts .button .slash {
    background: white;
}

#footerContacts .button:hover {
    box-shadow: 0px 2px 8px #777;
}

#footerContacts .button:active {
    color: #FF4260;
    background: white;
}

#footerContacts .button:active .slash {
    background: #FF4260;
}

#footerContacts div {
    display: inline;
}

footer {
    clear: both;
    padding: 20px 0 10px 0;
    text-align: center;
    color: #A2A2A2;
    font-size: 0.8em;
}


/* MOBILE */
@media only screen and (max-width: 735px) {
    td, th {
        display: block;
    }
    
    header th {
        display: none;
    }
    
    header td:before { 
        content: attr(data-th);
        display: block;
        color: rgba(255, 255, 255, 0.75);
        font-size: 16px;
        padding-top: 10px;
    }
    
    header td .hiddenButtons { 
        display: block;
    }
    
    header #gitHubHiddenButtons a {
        position: relative;
        top: -6px;
    }
    
    header #gitHubHiddenButtons a:hover {
        top: -12px;
    }
    
    header .standardButtons {
        display: none;
    }
    
    .gitnote {
        top: 0px;
    }
    
    #skills {
        height: 600px;
    }
    
    .stayInline {
        display: inline-block;
        width: 42%;
    }
    
    #projects td.large p {
        padding: 10px 0;
    }

    #projects td.large p, #projects td.large a {
        margin-left: 0;
        padding-left: 0;
    }

    #projects td.large img, #projects td.large video {
        margin-bottom: 10px;
        float: none;
        max-width: 100%;
        max-height: 400px;
    }

    #projects td.large a img {
        margin-bottom: 0px;
    }
    
    #paint h1 {
        padding-top: 0;
    }
    
    #paint img {
        left: 15px;
    }
}

@media only screen and (max-width: 850px) {
    #skills {
        height: 600px;
    }
}

@media only screen and (max-width: 900px) {
    #footerContacts div {
        display: block;
        height: 10px;
    }
}

@-moz-document url-prefix() { 
    header h1 {
        letter-spacing: 2px;
    }
    #projects h2 {
        letter-spacing: 1px;
    }
}