:root
{
    --lightGold: #FFFFB8;
    --hoverGold: #FFE44B;
}

*{
    box-sizing: border-box;
}

html
{
    font-size: 62.5%;
}

body
{
    background-color: var(--lightGold);
    color: rgb(255, 255, 245);
    line-height: 1.2;
    font-family: -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Helvetica,
        Arial,
        sans-serif,
        'Apple Color Emoji',
        'Segoe UI Emoji',
        'Segoe UI Symbol';
}

h1,
h2,
h3,
h4,
h5
{
    display: block;
    color: var(--lightGold);
    font-weight: 700;
    font-size: 3.0rem;
    padding: 0 1rem;
}

h1,
h2
{
    color: var(--hoverGold);
    font-family: "Ephesis";
    font-size: 10rem;
    padding: 10% 0 0 10%;
    text-align: left;
}

h3
{
    color: var(--hoverGold)
}

h4
{
    font-size: 1.5rem;
}

p
{
    font-size: 2.5rem;
}

a
{
    color: var(--lightGold);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 500;
}

/* --- Header and Footer --- */
header,
footer
{
    text-align: center;
    height: 6rem;
    background-color: rgb(0, 0, 0);
}

header
{
    margin-bottom: 0.1rem;
}

footer
{
    padding: 2rem 0 0 0;
    margin-top: 0.1rem;
}

/* --- Main --- */
main
{
    display: flex;
}

.hoverScale
{
    /* Scale speed for hover elements */
    transition: transform 0.25s ease;
}

/* My pics style */
.profilePic
{
    max-width: 30%;
    float: right;
    margin: 5% 3% 0 3%;
    border-radius: 20px;
    filter: saturate(0%);
    transition: filter 0.25s ease;
}

/* --- Navigation Sidebar --- */
.menu
{
    top: 0;
    padding: 5% 5%;
    margin-right: 0.1rem;
    background-image: linear-gradient(black, grey, black);
}

.sticky
{
    /* Make the sidebar not scroll with site */
    position: sticky;
    top: 15rem;
}

.menu img
{
    position: relative;
    top: 0;
    right: 0.5rem;
    margin-bottom: 10%;
    width: 3.5rem;
    opacity: 0.9;
    border-radius: 0 12px 12px 0px;
}

.menu ul,
li
{
    padding: 5rem 0;
}

.menu .material-icons
{
    /* Hide nav icons for larger resolutions */
    display: none;
    padding-right: 2rem;
    vertical-align: middle;
}

/* --- Main Content --- */
.content
{
    min-height: 100vh;
    text-align: center;
    background-image: linear-gradient(black, grey, black);
}

.parallax
{
    /* Scrolling parallax background between sections */
    height: 50vh;
    background-image: url(../images/binary-code.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat-x;
    background-size: cover;
    animation: sideScrollAnimation 20s infinite linear reverse;
    opacity: 1;
}

/* About Display */
.aboutText
{
    display: block;
    position: relative;
    top: 3rem;
    left: 10%;
    width: 50%;
    max-width: 700px;
    text-align: left;
}

.aboutText p
{
    margin: 0 0 0px 0;
    text-indent: 5rem;
}

/* Work Display */
.workGrid ul
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 1rem;
}

.workGrid li
{
    max-width: 100%;
    max-height: 100%;
}

.workGrid li img
{
    max-width: 100%;
    border: 5px ridge var(--lightGold);
}

.workGrid li:first-child
{
    /* Adjust column/rows to size the first list element */
    grid-column: 1 / 3;
    grid-row: 1 /2;
}

.tagContainer
{
    /* Image and Tag container for project pics */
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.tag
{
    /* Position and hide tag. Reveal on hover */
    float: left;
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 100;
    background-color: grey;
    padding: 1rem;
    opacity: 0;
    transition: opacity .4s ease;
}

/* Contact Info Display */
.contactContent
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 5% 0 0 5%;
    text-align: left;
}

.contactLeft,
.contactRight
{
    width: 50%;
}

/* Table layout for Contact display */
table
{
    display: table;
    border-spacing: 0rem 3rem;
}

table td h3
{
    /* Displays '...' instead of cropping the text*/
    text-overflow: ellipsis;
}

table ul li
{
    padding: 0 0 3rem 0;
}

table tr:last-child td
{
    vertical-align: top;
    padding: 0 4rem 0 0;
}

/* --- Hover Effects --- */
.profilePic:hover
{
    filter: saturate(100%);
}

.hoverShadow:hover
{
    box-shadow: inset 0 0 8px var(--hoverGold), 0 0 15px var(--hoverGold);
}

.hoverScale:hover
{
    color: var(--hoverGold);
    transform: scale(1.2);
}

.workGrid .hoverShadow:hover
{
    transform: scale(.98);
}

.tagContainer:hover .tag
{
    opacity: 1;
}

.underlineAnimation
{
    display: inline-block;
    position: relative;
}

.underlineAnimation::after
{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--lightGold), var(--hoverGold));
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.underlineAnimation:hover::after
{
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Keyframes for parallax scroll --- */
@keyframes sideScrollAnimation
{
    from
    {
        background-position: 0 0;
    }

    to
    {
        background-position: 100% 0;
    }
}

/* --- Media Screen 1440px --- */
@media screen and (max-width: 1440px)
{
    /* Shift the Contact info tables to take 100% width forcing them to stack */
    table, .contactRight,
        .contactLeft
    {
        width: 100%;
        table-layout: fixed;
        padding-right: 10rem;
    }

    a
    {
        font-size: 2.1rem;
    }
}

/* --- Media Screen 768px --- */
@media screen and (max-width: 768px)
{
    .menu
    {
        padding: 3% 0 0 3%;
        width: 12%;
    }

    .menu ul,
    li
    {
        padding: 4.0rem 0.1rem;
    }

    .menuItem
    {
        display: none;
    }

    .menu .material-icons
    {
        display: block;
    }

    p
    {
        font-size: 2rem;
    }

    h1
    {
        font-size: 6rem;
        padding: 5% 0 0 10%;
    }

    h2
    {
        font-size: 8rem;
        padding: 20% 0 0 5%;
    }

    h3,
    a
    {
        font-size: 1.5rem;
    }

    .aboutText
    {
        width: 90%;
        left: 2rem;
    }

    .workGrid ul
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .contactContent
    {
        margin: 5% 0 0 0;
    }

    .profilePic
    {
        max-width: 65%;
        float: unset;
    }

    .parallax
    {
        height: 25vh;
    }
}