:root {
    --primary: #59bcc1;
    --secondary:#a53c0e;
    --ternary:#b4afae;
    --fourth:#f4eae1;
    --textOnPrimary:#000;
    --textOnSecondary:#fff;
    --whiteOverlay: rgba(255, 255, 255, 0.7);
    --whiteOverlayHover: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--fourth);
    font-size: 14pt;
    font-family: "REM", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 1.7em;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 0.2em;
    text-align: right;
    margin-top: -0.5em;
    
}
h3 {
    font-size: 1.5em;
    margin-top: 0.2em;
    font-variant: small-caps;
    color: rgba(0,0,0,0.6);
}
h4 {
    font-size: 1.2em;
    padding-bottom: .2em;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.5);
    margin-bottom: 0.4em;
}

h5 {
    font-weight: bold;
    padding-bottom: 3px;
}

p {
    line-height: 1.2em;
    padding-top: 0.2em;
}

ul, p {
    padding-bottom: 0.6em;
}
    ul li {
        line-height: 1.4em;
    }

dl {
    margin-bottom: 24px;
    column-count: 2;
}

strong {
    font-weight: bold;
}

.brandingFont, h1 {
    font-family: "Playwrite IN", cursive;
    font-optical-sizing: auto;
    font-weight: 300;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
}

.faded {
    opacity: 0.4;
}

.jobSection, .educationSection {
    margin-bottom:30px;
}

.workSection, .courseSection, .degreeSection {
    padding: 15px 15px 0 15px;
    background-color: rgba(255,255,255,0.8);
    margin: 0;
}

.shaded {
    background-color: rgba(255,255,255,0.4);
}

ul.itemsList {
    list-style-type: disc;
    margin-left: 40px;
}
    ul.itemsList li {
        padding:0.3em 0;
    }

#mainHeader {
    position: fixed;
    top:0;
    left:20px;
    border:10px solid rgba(255,255,255,0.7);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 50;
}
    #mainHeader h1 {
        margin: 0;
        padding: 20px;
        background-color: var(--primary);
        color: var(--textOnSecondary);
    }
        #mainHeader h1 a {
            color: var(--textOnSecondary);
            text-decoration: none;
        }
nav#desktopPrimary {
    position:fixed;
    top:20px;
    left:405px;
    background-color: var(--whiteOverlay);
    line-height: 1.2em;
    z-index: 49;
    backdrop-filter: blur(8px);
    border-radius: 0 5px 5px 0;
    border:1px solid #fff;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.6);
    overflow: hidden;
    white-space: nowrap;
    padding-top: 2px;
    padding-right: 15px;
}
    nav#desktopPrimary a {
        display: inline-block;
        color: var(--textOnPrimary);
        text-decoration: none;
        padding:10px;
        margin:0 5px;
        
    }
    nav#desktopPrimary a:hover {
        background-color: var(--whiteOverlayHover);
        color: var(--secondary);
        border-radius: 3px;
    }

#mobilePrimaryToggle {
    display: none;
    position: fixed;
    top: 5px;
    right: 20px;
    background-color: var(--whiteOverlay);
    padding: 8px;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.6);
    z-index: 60;
    cursor: pointer;
    opacity: 0;
}
    #mobilePrimaryToggle iconify-icon {
        font-size: 1.5em;
        color: var(--textOnPrimary);
    }   

#mobilePrimary {
    display: none;
    position: fixed;
    top: 55px;
    right: 20px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 0 0 10px 10px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.6);
    z-index: 30;
    overflow: hidden;
    backdrop-filter: blur(5px);
    width: 180px;
    height: 0;
}
    #mobilePrimary a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.2);
        color: var(--textOnPrimary);
        text-decoration: none;
    }
        #mobilePrimary a iconify-icon {
            margin-right: 10px;
        }
    #mobilePrimary a:hover {
        background-color: var(--whiteOverlayHover);
        color: var(--secondary);
    }


section#primaryContent {
    margin: 120px auto 60px auto;
    max-width: 92vw;
}

#xpgHome {
    background-color: var(--secondary);
    position:absolute;
    top: calc(25vh - 150px);
    bottom: calc(25vh - 150px);
    left: 25%;
    width: 50%;
    min-height: 300px;
}

#pgSkills h3{
    font-size: 2.4em;
    margin-left: 15px;
    margin-bottom: -7px;
}

#pgSkills section {
    border:3px solid rgba(0,0,0,0.2);
    background-color: rgba(255,255,255,0.7);
    border-radius:10px;
    margin-bottom: 15px;
}
    #pgSkills section > div {
        margin:15px;
        min-width: 360px;
    }
        #pgSkills section > div span {
            color: var(--secondary);
        }
        #pgSkills section > div span.noChange {
            color: var(--textOnPrimary);
        }

.largeProjectStar {
    color: #000;
    background-color: rgba(248, 217, 39, 0.8);
    border-radius: 5px;
    padding:3px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}
.bigStar {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1.5em;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.project {
    background-color: rgba(255,255,255,0.2);
    width: 400px;
    height: 225px;
    border-radius: 10px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    margin:10px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
    float: left;
}
    .project:hover {
        box-shadow: 4px 4px 7px rgba(0,0,0,0.4);
        cursor: pointer;
    }
    .project img {
        width: 400px;
        height: 225px;
        border-radius: 10px;
    }
    .projectYear, .projectTitle {
        position: absolute;
        background-color: rgba(255,255,255,0.7);
        padding: 7px;
        backdrop-filter: blur(4px);
        text-shadow: 1px 1px rgba(255,255,255,0.6);
    }
    .projectYear {
        top:0;
        right:0;
        border-radius: 0 9px 0 10px;
    }
    .projectTitle {
        bottom:0;
        left:0;
        right:0;
        border-radius: 0 0 9px 9px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.7);
    }

#projectDetails {
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    z-index:80;
    display: flex;
    justify-content: center;
    align-items: center;
}
    #projectDetails > div {
        background:rgba(255,255,255,1);
        max-width: 90vw;
        max-height: 90vh;
        width: 600px;
        border-radius: 10px;
        box-shadow: 4px 4px 7px rgba(0,0,0,0.4);

        overflow-y: scroll;
    }
    #projectDetails header {
        position: fixed;
        background:rgba(255,255,255,0.7);
        backdrop-filter: blur(6px);
        width:550px;
        padding: 15px 15px 0 15px;
        border-radius: 10px 0 0 0;
        z-index: 80;
    }
    #projectDetails header + section {
        margin-top: 70px;
    }
    #projectDetails a.closeBtn {
        background:#a53c0e;
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
        text-decoration: none;
        float: right;
        margin: 0 0 4px 4px;
    }
        #projectDetails a.closeBtn:hover {
            background:#d94f1a;
            color: #fff;
        }
    #projectDetails h3 {
        border-bottom: 2px solid #000;
        padding: 0 5px 9px 5px;
        margin:0 auto 2px auto;
    }
    #projectDetails div section {
        padding: 0 15px 15px 15px;
    }

    #projectDetails .gallery {
        background: #333;
        position: relative;
        width: 550px;
        height: 235px;
        overflow: hidden;
        border-radius: 5px;
        margin: 0 auto;
    }
        #projectDetails .gallery img {
            border-radius: 5px;
            box-shadow: 3px 3px 7px #222;
            z-index:70;
            position: absolute;
            left: 75px;
            top: 5px;
            width: 400px;
        }
        #projectDetails .gallery img#previousImg, #projectDetails .gallery img#nextImg {
            width: 200px;
            height: 112px;
            top: 57px;
            border-radius: 3px;
            z-index: 69;
            opacity: 0.3;
            filter: blur(2px);
        }
         #projectDetails .gallery img#previousImg {
            left: 5px;
         }
         #projectDetails .gallery img#nextImg {
            left: 345px;
         }

    #projectDetails p,  #projectDetails dl{
        font-size: 0.9em;
    }
    #projectDetails dl {
        column-count: 1;
        margin-bottom: 0;
    }
        #projectDetails dl dt {
            color:#fff;
            font-weight: bold;
            background: #000;
            padding:5px;
            text-transform: uppercase;
            margin: 5px 0;
        }
        #projectDetails dl dd {
            line-height: 1.2em;
            padding: 4px 0;
            margin-left:20px;
        }
             #projectDetails dl dd iconify-icon {
                margin-left: -20px;
            }

#pgEmploymentHistory h3, #pgEducation h3 {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);

    padding-top: 15px;
}

#pgEmploymentHistory h3 span {
    font-size: 0.8em;
    float: right;
}

ul.tasks {
    column-count: 2;
    margin: 0 10px;
}
    ul.tasks li {
        margin-left:20px;
        break-inside: avoid-column;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
    }
        ul.tasks li iconify-icon {
            margin-left: -20px;
        }

footer {
    background-color:  var(--whiteOverlay);
    color: var(--textOnPrimary);
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--ternary);
    border-bottom: 1px solid var(--ternary);
    position:fixed;
    left:0;
    right:0;
    bottom: 0;
    font-size: 0.8em;
    backdrop-filter: blur(8px);
    z-index: 40;
}
    footer p {
        padding-bottom: 0;
    }