@charset "utf-8";

/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    height: 2000px;
}

p {
    font-size: 1vw;
    font-stretch: semi-condensed;
    text-shadow: 0px 0px;
    background-color: #FFFFFF;
    top: 0px;
    text-align: justify;
    vertical-align: top;
    letter-spacing: 0px;
    margin-top: -0.2vh;
    margin-left: 1vh;
}

td {
    text-align: left;
    vertical-align: top;
}


/* =========================
   HEADINGS
========================= */

h2 {
    height: 0px;
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
    display: inline;
}

h3 {
    font-style: italic;
}


/* =========================
   HEADER
========================= */

#header {
    width: 100%;
    height: 30vh;

    position: fixed;
    top: 0;
    left: 0;

    background-color: white;

    display: flex;
    align-items: center;

    padding-left: 24px;
    padding-top: 1%;
    padding-bottom: 1%;

    z-index: 1000;

    overflow: hidden;

    /*
       ONLY the height changes when
       your scroll script changes
       30vh -> 7vh.
    */
    transition: height 0.8s ease-in-out;
}


/* =========================
   HEADER IMAGE
========================= */

#header > img {
    display: block;

    /*
       Width stays at 48.5%.
       It does NOT animate horizontally.
    */
    width: 48.5%;

    /*
       Fill the available header height.
       This deliberately allows the image
       to squash vertically when the header
       shrinks.
    */
    height: 100%;

    object-fit: fill;

    object-position: left center;

    image-rendering: pixelated;

    flex-shrink: 0;
}


/* =========================
   HEADER LINKS
========================= */

.header-link {
    position: absolute;

    top: 0;
    height: 100%;

    display: block;

    z-index: 1001;

    text-decoration: none;
}


/*
   PORTFOLIO
*/

.portfolio-link {
    left: 24px;
    width: 17%;
}


/*
   RESUME
*/

.resume-link {
    left: 20.5%;
    width: 15%;
}


/*
   MISCELLANEA
*/

.miscellanea-link {
    left: 39%;
    width: 30%;
}


/* =========================
   TABLES
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

td {
    width: 50%;
    padding: 10px;
    vertical-align: top;
}


/* =========================
   CONTENT
========================= */

.content {
    padding: 20px;
}

.content2 {
    padding: 30%;
}


/* =========================
   IMAGES
========================= */

img {
    image-rendering: pixelated;
}

img.sticky {
    image-rendering: auto;
}

.pixelated {
    image-rendering: pixelated;
}

.smooth {
    image-rendering: auto;
}


/* =========================
   IMAGE CONTAINERS
========================= */

.image-container {
    width: 100%;
    position: relative;
    display: block;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;

    transition: opacity 0.3s ease-in-out;
}

.image-container .hover-img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    image-rendering: auto;
}

.image-container:hover .hover-img {
    opacity: 1;
}

.image-container:hover .default-img {
    opacity: 0;
}


/* =========================
   BACKGROUND
========================= */

.background-page {
    background-repeat: repeat-y;
    background-attachment: fixed;
    background-size: cover;

    image-rendering: pixelated;
}


/* =========================
   SHRINK CLASSES
========================= */

.shrink {
    height: 60px;
}

.shrink img {
    height: 40px;
}


/* =========================
   CENTRED IMAGES
========================= */

.center {
    display: block;

    margin-left: auto;
    margin-right: auto;

    width: 80%;

    image-rendering: auto;

    z-index: -1000;
}

.centerwide {
    display: block;

    margin-left: auto;
    margin-right: auto;

    width: 99.5%;

    image-rendering: auto;
}

.centeradjust {
    display: block;

    margin-left: auto;
    margin-right: auto;

    image-rendering: auto;
}


/* =========================
   SECOND TABLE
========================= */

.tabletwo {
    width: 50%;

    border-collapse: collapse;
    table-layout: fixed;
}