body, html {
    min-height: 100%;
    width: 100%;
    background-color: black;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-size: 1.15rem;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: grey;
    opacity: 0.8;
}

.nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 1rem;
}

.nav-item > a {
    letter-spacing: 2px;
    text-decoration: none;
    color: black;
}

.nav-item > a > img {
    max-height: 2rem;
}

.nav-item > a:visited {
    color: black;
}

.content {
    background-color: darkgray;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 1rem;
}

.quote {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin: 0;
    background-color: lightgrey;
    text-align: center;
    letter-spacing: 3px;
}

.career-path {
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0.25rem 0.25rem 0 0.25rem;
}

.career-path > h4 {
    max-width: 7rem;
    padding: 0.75rem;
    background-color: rgba(230, 230, 230, 0.8);
    border-radius: 6px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 0 4rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgba(230, 230, 230, 0.8);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.circle {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.circle::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid orange;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid rgba(100, 100, 100, 0.9);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(100, 100, 100, 0.9);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid rgba(100, 100, 100, 0.9);
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(100, 100, 100, 0.9) transparent transparent;
}

.right::after {
    left: -16px;
}

.wrapper {
    padding: 20px 30px;
    background-color: rgba(100, 100, 100, 0.9);
    position: relative;
    border-radius: 6px;
}

img {
    max-width: 100%;
}

@media (min-width: 601px) {

    .career-path > h4 {
        margin: auto;
    }

}

@media (max-width: 600px) {

    .career-path > h4 {
        margin: 0;
    }

    h4 {
        margin: 0;
    }

    .timeline::after {
        left: 31px;
    }

    .circle {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .circle::before {
        left: 60px;
        border: medium solid rgba(100, 100, 100, 0.9);
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(100, 100, 100, 0.9) transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0;
    }

}

@media (min-width: 501px) {

    #careerPath {
        background-image: url("assets/ls.jpg");
    }

    #navMobile {
        display: none;
    }

    #navDesktop {
        display: block;
    }

    .card {
        transition: transform .2s;
    }

    .card:hover {
        transform: scale(1.03);
    }

    .card > a {
        height: 256px;
        display: flex;
        justify-content: center;
    }

    .card > a > img {
        align-self: center;
        max-height: 256px;
    }

}

@media (max-width: 500px) {

    #careerPath {
        background-image: url("assets/ls-mobile.jpg");
    }

    #navMobile {
        display: block;
    }

    #navDesktop {
        display: none;
    }

}

.portfolio {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 500px));
    justify-content: center;
}

.card {
    display: flex;
    flex-flow: column wrap;
    background-color: grey;
    padding: 0.5rem;
    border-radius: 5px;
}

.card > h2, h3 {
    text-align: center;
    letter-spacing: 2px;
}

.card > h2 {
    border-top: 3px solid black;
    border-bottom: 3px solid black;
}

a {
    text-align: center;
    text-decoration: none;
    color: darkblue;
}

a:visited {
    color: darkblue;
}

.details {
    flex: 1 0 auto;
}

.details > .summary {
    text-align: center;
    font-weight: bold;
}

.notes {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-flow: row nowrap;
    border-top: 1px solid black;
    padding: 0.5rem;
    font-weight: bold;
}

.left-note {
    flex: 1 0 auto;
    text-align: left;
}

.right-note {
    flex: 1 0 auto;
    text-align: right;
}

footer {
    text-align: center;
    background-color: lightgrey;
    padding: 0.5rem;
    letter-spacing: 2px;
}

.contact {
    display: flex;
    flex-flow: column nowrap;
    max-width: 800px;
    margin: auto;
    padding: 2rem 0 2rem 0;
}

.contact-row {
    display: flex;
    flex-flow: row wrap;
    flex: 0 0 auto;
    padding: 0.25rem;
    justify-content: center;
}

.contact-col {
    display: flex;
    flex-flow: column wrap;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.5rem;
}

.contact-col > img {
    max-height: 3rem;
}

.contact-col > label {
    padding: 0.25rem;
}

.contact-col > input, textarea {
    font-size: 1.2rem;
    font-family: inherit;
}

.contact-btn {
    min-width: 8rem;
    padding: 0.5rem;
    font-weight: bold;
    background-color: rgba(20, 20, 20, 1);
    color: white;
    margin: auto;
}

.contact-btn:hover {
    background-color: rgba(35, 35, 35, 1);
}
