:root {
    --text-color: #f1f0ea;
    --background-color: #2d232e;
    --icon-color: #f1f0ea;
    --light-gold: #fffdf3;
    --gold: #FFE59F;
    --dark-green: #3f605a;
    --mid-green: #58897f;
    --light-green: #7ac2b3;
    --link-green: #89dccb;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family:'Roboto Serif', serif;
    font-size: 0.9rem;
    max-width: 1600px;
    margin: 10px auto;
}

header {
    width: 80%;
    margin: 0px auto;
    text-align: center;
    background-color: var(--mid-green);
    border: 2px solid var(--mid-green);
}

header h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-color); 
}

header h3 {
    font-size: 1.05rem;
    margin-top: 5px;
    margin-bottom: 20px;    
}

hr {
    background-color: var(--light-green);
}

.content-wrapper {
    padding-top: 30px;
    margin: 0% auto;
    width: 80%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto 1fr;
    text-align: center;
    row-gap: 0;
    grid-row-gap: 0;
    grid-template-areas:
        "profile-card about-me"
        "profile-card work-experience"
        "skills work-experience"
        "education work-experience"
        "education skills-summary";
}

#footer-extension{
    display: none;
}

#profile-card {
    margin: 0px 10px;
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    grid-template-areas:
        "profile-pic"
        "social-links"
        "contact"
        "download-button";
}

a {
    color: var(--link-green);
    text-decoration: none;
    transition: color 0.5s ease-in-out;
}

a:hover {
    color: var(--gold);
    text-decoration: none;
}

#profile-pic {
    display: inline-block;
    max-height: 125px;
    background-color: var(--mid-green);
    border-radius: 10%;
    border: 6px solid var(--text-color);
    margin: auto;
    margin-top: 10px;
}

#social-links {
    padding-top: 10px;
}

.social-link {
    padding: 1px;
    margin: 1px;
    margin-bottom: 6px;
    width: 24px;
    height: 24px;
    line-height: 20px;
    border-radius: 50%;
    border: 2px solid var(--icon-color);
    background-color: var(--icon-color);
    text-align: center;
    display: inline-block;
    color: var(--background-color);
    transition: color 0.5s ease, background-color 0.25s ease, border-color 0.12s ease, transform 0.5s ease;
}

.social-link i {
    margin-right: 0px;
}

.social-link:hover {
    border: 2px solid var(--dark-green);
    background-color: var(--dark-green);
    color: var(--gold);
    transform: translate(0, -2px);
}

.social-icon{
    width: 20px;
    height: 20px;
    display: inline-flex;
    vertical-align: middle;
}

.skill-icon {
    object-fit: contain;
    width: 20px;
    height: 20px;
    display: inline-flex;
    padding: 4px 2px;
    vertical-align: middle;
    transition: color 0.5s ease-out;
}

.skill-icon:hover {
    color: var(--gold);
}

#skills {
    margin-top: 10px;
    margin-bottom: 0px;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
}

h3{
    font-size: 0.95rem;
}

#education h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--gold);
}

#skills h3, #additional-training h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--light-green);
}

#education {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 10px;
    margin-left: 10px;
}

#education p {
    margin-top: 5px;
    font-size: 0.80rem;
}

#about-me, #work-experience, #skills-summary {
    border-left: 2px solid var(--mid-green);
    text-align: left;
    margin-right: 0px;
    padding-right: 0px;
    padding-top: 0px;
    margin-left: 10px;
    padding-left: 10px;
    width: 100%;
    box-sizing: border-box;
}

#about-me hr, #work-experience hr, #skills-summary hr {
    margin-left: 10px;
    background-color: var(--mid-green);
    height: 2px;
    border: none;
    width: calc(100% - 20px);
    box-sizing: border-box;
    margin-top: 0px;
}

h2 {
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0.75rem;
}

#education {
    margin-top: 10px;
}

#skills hr, #education hr {
    background-color: var(--mid-green);
    height: 2px;
    border: none;
}

.contact-info {
    display: inline-flex;
    align-items: center;
    margin: 5px auto;
    font-size: 0.8rem;
}

#contact {
    margin-bottom: 10px;
}

.contact-info svg { 
    padding-right: 5px;
}

#download-button a {
    background-color: var(--mid-green);
    border: 2px solid var(--text-color);
    color: var(--text-color);
    margin: 4px 2px;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    cursor: pointer;
    border-radius: 16px;
    align-items: center;
    transition: border-color 0.5s ease, color 0.5s ease, background-color 0.5s ease;
    margin-top: 12px;
}

#download-button a:hover {
    background-color: var(--dark-green);
    color: var(--gold);
    border-color: var(--gold);
}

#download-button a:active {
    background-color: var(--background-color);
    transition: background-color 0.1s ease;
}

#download-button svg {
    padding-right: 5px;
}

footer {
    text-align: center;
    font-size: 0.75rem;  
    margin: 16px auto; 
    width: 80%; 
    text-align: center;
    background-color: var(--mid-green);
    border: 2px solid var(--mid-green);
    color: var(--text-color);
}

#about-me-content p {
    align-self: left;
    text-align: left;
    padding-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    line-height: 1.25rem;
}

#work-experience-content, #skills-summary-content {
    margin-left: 10px;
    margin-right: 10px;
}

ul{
    padding-left: 0px;
}

li{
    font-size: 0.85rem;
    padding-bottom: 7px;
    list-style: none;
}

ul > li > ul > li {
    font-size: 0.8rem;
    padding: 7px 0px;
    padding-left: 30px;
    padding-top: 7px;
    
}

.workplace {
    color: var(--light-green);
    padding-top: 6px;
}

.workplace-details {
    color: var(--text-color);
    text-align: left; 
    line-height: 1.25rem;
    margin-bottom: 0px;   
}

.workplace-project-header {
    color: var(--mid-green);
    font-weight: bold;
}

.workplace-projects {
    color: var(--text-color);
    text-align: left; 
    line-height: 1.25rem;
    margin-bottom: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.workplace-role {
    color:var(--gold);
}

.workplace-role::before{
    content: "- ";
    white-space: pre;
}

.accordion-toggle {
    display: none;
}


#profile-card {grid-area: profile-card;}
#about-me {grid-area: about-me;}
#skills {grid-area: skills;}
#education {grid-area: education;}
#work-experience {grid-area: work-experience;}
#skills-summary {grid-area: skills-summary;}

@media (max-width: 1250px)
{
    .workplace-role {
        font-size: .75rem;
    }

    .workplace-role::before{
        content: "\A";
        white-space: pre;
    }

    .workplace-name{
        
        line-height: 20px;
    }
}


@media (max-width: 767px)
{ 
    body {
        margin: 0px;
        padding: 0px;
        background-color: var(--mid-green);
    }
    
    header {
        padding: 0px;
        margin: 0px;
        text-align: center;
        background-color: var(--mid-green);
        box-sizing: border-box;
        width: 100%;
    } 

    footer {
        width: 100%;
        margin-bottom: 0px;
        box-sizing: border-box;
    }

    .content-wrapper {
        display: grid;       
        box-sizing: border-box;
        
        text-align: left;
        grid-template-areas:
            "profile-card"
            "about-me"
            "skills"
            "work-experience"
            "education"
            "additional-training"
            "skills-summary";
        width: 100%;
        box-sizing: border-box;
        padding-top: 5px;
        background-color: var(--background-color)
    } 

    #profile-pic {
        display: inline-block;
        margin: 10px 20px 0px 20px;
        height: 150px; 
        border-color: var(--text-color);
    }

    #location {
        text-align: left;
        margin-top: 0px;
        margin-bottom: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    #email {
        text-align: left;
        margin-top: 0px;
        margin-bottom: 0px;
        padding-bottom: 0px;
        padding-top: 0px;
    }

    #download-button {
        text-align: left;
        max-width: 250px;
    }

    #download-button a {
        margin-top: 2px;
        content: "Resume";
    }

    #social-links{
        text-align: left;
        padding-bottom: 0px;
        margin-bottom: 0px;
        margin-top: 0px;
        padding-top: 0px;
    }

    .social-link{
        border: 2px solid var(--background-color);
    }

    #profile-card {
        width: 95%;
        margin: 0px auto;
        display: grid;
        grid-template-columns: 1fr auto auto 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
        ". profile-pic email ."
        ". profile-pic location ."
        ". profile-pic social-links ."
        ". profile-pic download-button .";  
        margin-right: 20px;
        
    }

    #profile-card * {
        align-self: end;
    }

    #about-me, #skills, #work-experience, #education, #skills-summary {
        all: unset;
        text-align: center;
        width: 100vw;
    }
    

    #about-me {
        text-align: center;
        padding: 10px 0px;
        padding-bottom: 0px;
        border: 0px;
        width: 100vw;
    }

    #about-me-content {        
        margin-left: 10px;
        margin-right: 10px;
        font-size: small;
    }

    #about-me-content p {
    text-align: center;
    }

    #skills-summary {
        align-self: center;
        text-align: center;
        padding-bottom: 0px;
        border: 0px;
        width: 100vw;
    }

    #skills-summary-content {        
        margin-left: 10px;
        margin-right: 10px;
        font-size: small;
    }

    #skills-summary-content p {
    text-align: center;
    }
   
    #skills hr, #about-me hr, #work-experience hr, #education hr, #skills-summary hr{
        all: unset;
        display: block;
        height: 3px;
        background-color: var(--mid-green);
    }  
    
    footer {
        padding-top: 0px;
        margin-top: 0px;
    }

    .accordion-header {
        display: block;
        cursor: pointer;
        margin: 0px 0;
    }

    .accordion-toggle {
        display: none;
    }

    .accordion-content{
        max-height: 0;
        overflow: hidden;
        transition: max-height 1.0s ease, padding 1.0s ease;        
    }

    #skills-content h3 {
        margin-top: 10px;
        font-size: 1rem;
    }

    .accordion-toggle:checked + .accordion-header + .accordion-content{
        max-height: 2500px;
        padding-top: 0px;
        margin-top: auto;
        margin-bottom: auto;
    }

    #about-me .accordion-toggle:checked + .accordion-header + .accordion-content{
        max-height: 150px;
    }

    #skills .accordion-toggle:checked + .accordion-header + .accordion-content{
        max-height: 220px;
        padding-bottom: 10px;
    }

    #education .accordion-toggle:checked + .accordion-header + .accordion-content{
        padding-bottom: 20px;
        max-height: 600px;
    }

    .contact-info {
        margin: 0px 0px;
    }

    .summary {
        text-align: center;
    }

    .workplace {        
        text-align: center;
        font-size: 1.25rem;
        
    }

    .workplace-name {
        font-weight: bold;
        font-size: medium;
    }

    .workplace-role {        
        text-align: center;
        font-size: 1.0rem;
        font-size: x-small;
        font-weight: bold;
    }

    .workplace-details {
        padding-right: 0px;
        padding-left: 0px;
        font-weight: normal;
        margin-left: 15px;
        margin-right: 15px;
    }

    .workplace-projects {
        text-align: left;
        margin-left: -15px;
    }
        
    .social-link {margin-bottom: 2px;}
    
    #profile-pic {grid-area: profile-pic;}
    #social-links {grid-area: social-links;}
    #contact {grid-area: contact;}
    #location {grid-area: location;}
    #email {grid-area: email;}
    #download-button {grid-area: download-button;}
    
    #profile-card {grid-area: profile-card;}
    #about-me {grid-area: about-me;}
    #skills {grid-area: skills;}
    #education {grid-area: education;}
    #additional-training {grid-area: additional-training;}
    #work-experience {grid-area: work-experience;}
    #skills-summary {grid-area: skills-summary;}
}

@media (max-width: 460px)
{ 
    header h2 {
        font-size: x-large;
    }

    header h3 {
        font-size: x-small;
    }

    .contact-info {
        font-size: x-small;
    }

    #download-button {
        font-size: x-small;
    }

    #footer {
        width: 10ch;
        height: 100vh;
        white-space: normal;
        overflow-wrap: break-word;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        flex-grow: 1;
    }
}