/********************************
Resume header
*********************************/

#resume-header-container {
    max-width: 60rem;
    margin: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    row-gap: 1.5rem;
}

/* Make sure that the links appear under my name after a certain width.
@media only screen and (max-width: 850px) {
    #resume-header-name {
        font-size: 2.5rem;
    }

    #resume-header-container {
        flex-direction: column;
        justify-content: flex-start;
    }
}*/


/* Make it look like I am a cool hacker with the terminal prompt and programming font.*/
#resume-header-name {
    font-size: 3rem;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#resume-header-name:before {
    content:"> ";
}

/* Make sure my name stays on one line even on a small screen */
@media only screen and (max-width: 450px) {
    #resume-header-name {
        font-size: 2.5rem;
    }

    #resume-header-container {
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media only screen and (max-width: 350px) {
  #resume-header-name {
      font-size: 2.25rem;
  }
}


#resume-header-name:hover {
    color: rgb(34 197 94 / 0.75);
}

#resume-header-link-container {
    list-style-type: none;
    padding: 0;
    column-gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
}

.resume-header-link {
    flex-grow: 1;
}

.resume-header-link-icon {
    vertical-align: text-top;
}

/********************************
Resume content
*********************************/
#resume-content-container {
    max-width: 60rem;
    margin: auto;
}

.resume-content-section {
    margin-left: 1rem;
    margin-right: 1rem;
}

.resume-content-section-title {
    border-bottom: 2px solid;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.resume-content-company-and-title-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid;
    margin-bottom: .5rem;
}

.resume-content-company-name {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    align-self: flex-end;
    flex-grow: 1;
}

.resume-content-job-title-list {
    list-style-type: none;
    /*padding: 0;*/
    margin-top: 0;
    margin-bottom: 0;
    flex-basis: 22rem;
}

.job-title-list-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 1rem;
    font-style: italic;
}

/* TODO: Can we align this some other way? */
.job-title-years {
}


.job-accomplishments-list {
    padding-left: 2rem;
}

.job-accomplishments-list > li {
    padding: 0.25rem 0 .25rem 0;
}

.job-technologies {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.resume-content-work-job {
    margin-bottom: 1rem;
}

.resume-content-education-and-years-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.program-name {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: normal;
    vertical-align: baseline;
}

/* Download link */
#resume-download-link {
    margin-top: 5rem;
    color: blue;
}

/* Print formatting */
@media print {
    #resume-download-link {
        display: none;
    }

    /* Include white ATS background text */
    #background-text {
        display: block !important;
    }

    :root {
        font-size: 12px;
    }

    @page {
        margin: 0;
        padding: 0;
        size: 8.5in 11in
    }

    /* Don't include link back to home page on printed pdf. */
    #resume-header-name:after {
        display: none !important;
    }

    /* Self-hosted fonts setup for printing. Needed for resume generation automation. */
    @font-face {
        font-family: "Fira Code";
        font-style: normal;
        src:
            local("Fira Code");
    }

    @font-face {
        font-family: "DejaVu Sans";
        font-style: normal;
        font-weight: 400;
        src:
            local("DejaVuSans")
            local("DejaVu Sans")
    }

    @font-face {
        font-family: "DejaVu Sans";
        font-style: bold;
        font-weight: 700;
        src:
            local("DejaVuSans-Bold")
            local("DejaVu Sans Bold");
    }

    @font-face {
        font-family: "DejaVu Sans";
        font-style: italic;
        font-weight: 400;
        src:
            local("DejaVuSans-Oblique")
            local("DejaVu Sans Oblique");
    }

    @font-face {
        font-family: "Noto Color Emoji";
        font-style: normal;
        font-weight: 400;
        stretch: 100;
        src:
            local("Noto Color Emoji");
    }
}

/********************************
Common styling
*********************************/
/* Zeroes out browser default margins. */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Creates header that is consistent with the rest of the site. */
header {
    background-color: rgb(229 231 235 / 0.75);
    border-bottom: 3px solid;
    margin: 0;
    padding: 0;
}

/* Select intended fonts if they are available, if not use sans serif system fonts. */
body {
    font-family: "DejaVu Sans", "Noto Color Emoji", ui-sans-serif,  sans-serif, system-ui;
    line-height: 1.5;

}

/* Undecorate links */
a {
    color: inherit;
    text-decoration: inherit;
}

/* Needed to render emojis properly in print to PDF and to make them aligned. */
span {
    font-weight: normal;
    vertical-align: text-bottom;
}

/* Background text for ATS */
#background-text {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    overflow: hidden;
    white-space: pre-line;
    font-size: 1rem;
    color: white;
    display: none;
}
