body {
    text-align: justify;
    margin: 0;
    font-family: "PT Serif", "Baskerville", "Libre Baskerville", "Droid Serif", "Times New Roman", "Times", serif, "Noto Emoji", "Quivira";
    font-size: 19px;
    font-weight: 400;
    background-color: #f9f9f7;
    color: #333;
}

main, footer {
    margin: auto;
    width: 40%
}

footer {
    padding: 20px 0;
}

footer p {
    font-size: 12px;
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-weight: 500;
    color: #a1a1a1;
    text-transform: uppercase;
    line-height: 16px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

nav h1 {
    margin: 0;
}

p {
    text-align: justify;
    line-height: 25px;
    color: #414141;
}

header {
    width: 55%;
    margin: auto;
    display: flex;
    align-items: baseline;
}

.back {
    margin: 0 20px;
}

.resume-frame {
    width: 55%;
    height: 75vh;
    border: none;
    margin: auto;
    display: block;
}

li {
    margin: 10px 0;
    padding-left: 1em;
    text-indent: -1em;
}

ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

li:before {
    content: "+";
    padding-right: 5px;
    font-weight: 900;
    font-size: 12px;
}

a {
    color: #588157;
    text-decoration: underline;
    text-underline-offset: 3px;
}

div.work {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

span.work-item {
    padding: 4px;
    border-radius: 7px;
    display: block;
    font-family: Helvetica, sans-serif;
    font-size: 16px;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.4s;
}

span.work-item:hover {
    transform: scale(1.05) rotate(2deg);
}

span.work-item a {
    text-decoration: none;
    color: #333;
}

:root {
    --blue: #b3d7ff;
    --green: #c0eeb3;
    --orange: #ffe2b3;
}

.legend-p {
    align-content: center;
    color: #333;
}

.blue-legend::before {
    content: " ";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--blue);
    border-radius: 50%;
    margin-right: 5px;
}

.blue-work-item {
    background-color: #e7f3ff;
    border: var(--blue) 1px solid;
}

.green-legend::before {
    content: " ";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--green);
    border-radius: 50%;
    margin-right: 5px;
}

.green-work-item {
    background-color: #e7fff2;
    border: var(--green) 1px solid;
}

.orange-legend::before {
    content: " ";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--orange);
    border-radius: 50%;
    margin-right: 5px;
}

.orange-work-item {
    background-color: #fff3e7;
    border: var(--orange) 1px solid;
}

@media (max-width: 800px) {
    main, footer {
        width: 90%;
    }

    .resume-frame {
        width: 100%;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }
}