html, body {
    inset: 0;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

@keyframes fade-in {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;

    z-index: 5;

    background-color: #ffffff;
    pointer-events: none;

    animation: fade-in 400ms ease-out 300ms forwards;
}

#top {
    height: 0;
    width: 0;
}

#appbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ff9800;
    z-index: 4;
    transition: height 400ms cubic-bezier(0,1,.5,1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    overflow: hidden;
}

.title-bar {
    display: flex;
    height: 56px;
    overflow: hidden;

    align-items: center;
}

.pfp-image {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    margin-left: 8px;
}

.title-text {
    margin-left: 8px;
    font-size: 20px;
}

.title-links {
    margin-left: auto;
    margin-right: 8px;
}

.title-links a {
    color: #000;
    text-decoration: none;
    font-size: 24px;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms ease-in-out;
}

.title-links a:hover {
    background-color: rgba(0, 0, 0, 20%);
}

.title-links a:active {
    background-color: rgba(0, 0, 0, 40%);
}

.title-links a:visited {
    color: #000;
}

#navbar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    overflow-x: auto;
}

@media only screen and (max-width: 750px) {
    #navbar {
        justify-content: left;
    }
}

.navbar-item {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    box-sizing: border-box;
    padding: 0 30px;
    font-weight: 400;
    transition: all 100ms ease-in-out;
    cursor: pointer;
}

.navbar-item:hover {
    font-weight: 700;
}

@media (hover: none) {
    .navbar-item:hover {
        font-weight: 400;
    }
}

.navbar-item.navbar-item-active {
    border-bottom: 5px solid #000;
    font-weight: 700;
}

.initial {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
}

.initial #initial-header {
    flex: 1;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed;
}

#initial-sidebar h4, #initial-header h4 {
    margin: auto 0 0;
    font-size: 2rem;
    width: 100vw;
    text-align: center;
}

#initial-sidebar h1, #initial-header h1 {
    margin: 0;
    font-size: 6rem;
    width: 100vw;
    text-align: center;
    box-sizing: border-box;
    padding: 0 5vw;
}

@media only screen and (max-width: 750px) {
    #initial-sidebar h4, #initial-header h4 {
        font-size: 1.5rem;
    }

    #initial-sidebar h1, #initial-header h1 {
        font-size: 4rem;
    }
}

.initial #initial-sidebar {
    background-image: url("images/headshot.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    z-index: 3;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

@keyframes scroll-down-bounce {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg);
    }

    12% {
        transform: translate3d(0, -10px, 0) rotate(45deg);
    }

    25% {
        transform: translate3d(0, 0, 0) rotate(45deg);
    }

    37% {
        transform: translate3d(0, -10px, 0) rotate(45deg);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(45deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(45deg);
    }
}

.initial-scroll-down-indicator {
    margin-top: auto;
    margin-bottom: 30px;

    align-self: flex-start;
    margin-left: calc(50vw - 14px);

    border: solid black;
    border-width: 0 8px 8px 0;
    display: inline-block;
    padding: 10px;

    transform: rotate(45deg);

    animation: scroll-down-bounce 1.5s ease-in-out 1s infinite;

    cursor: pointer;
}

#initial-sidebar .initial-scroll-down-indicator {
    border: solid white;
    border-width: 0 8px 8px 0;
}

#content {
    margin-top: 104px;
    padding: 5px 10vw;
    display: block;
    transition: opacity 400ms cubic-bezier(0,1,.5,1);
}

@media only screen and (max-width: 750px) {
    #content {
        margin-top: 120px;
        padding: 0.5rem;
    }
}

.section {
    margin: 1em;
}

h2.section-header {
    font-size: 3rem;
    font-style: italic;
    font-weight: 700;
    margin: 0;
    padding: 1em 10vw;
}

@media only screen and (max-width: 750px) {
    h2.section-header {
        font-size: 2rem;
        padding: 1.5rem 5vw;
    }
}

#resume-container {
    display: flex;
    justify-content: center;
}

#resume-canvas {
    box-shadow: none;
    opacity: 0;
    transition: opacity 400ms cubic-bezier(0,1,.5,1), box-shadow 400ms ease-in;
}

#resume-canvas.loaded {
    opacity: 1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

@media only screen and (max-width: 750px) {
    #resume-canvas {
        max-width: 90vw;
    }
}

.portfolio-list {
    list-style-type: none;
}

@media only screen and (max-width: 750px) {
    .portfolio-list {
        padding: 0;
    }
}

.portfolio-list-item {
    display: grid;
    min-height: 8rem;
    grid-template-columns: [start] 8rem [content] 1fr [end];
    grid-template-rows: [start] 3rem [content] 2fr [links] 1fr [end];
    margin: 20px 0;
}

.portfolio-list-item img {
    height: 8rem;
    width: 8rem;
    grid-column-start: start;
    grid-row-start: start;
    grid-row-end: end;
}

.portfolio-list-item h5 {
    margin: 0 0 0 20px;
    font-size: 2rem;
}

.portfolio-list-item p {
    margin: 10px 20px;
}

@media only screen and (max-width: 750px) {
    .portfolio-list-item {
        min-height: unset;
        grid-template-columns: [start] 4rem [content] 1fr [end];
        grid-template-rows: [start] 3rem [content] 1fr [links] auto [end];
        margin: 20px 0;
    }

    .portfolio-list-item img {
        height: 4rem;
        width: 4rem;
    }

    .portfolio-list-item h5 {
        font-size: 1.75rem;
    }
}

.portfolio-list-item-links {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0 10px;
    align-items: center;
}

.portfolio-list-item-links li {
    padding: 12px 5px;
}

@media only screen and (max-width: 750px) {
    .portfolio-list-item-links {
        padding: 0;
    }
}

.portfolio-list-item-links li a {
    background-color: #ff9800;
    color: #000000;
    text-decoration: none;
    transition: all 100ms ease-in-out;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.portfolio-list-item-links li a:hover {
    background-color: #ffa730;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.portfolio-list-item-links li a:active {
    background-color: #ce7c00;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}