* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html {
    width: 100%;
    height: 100%;
    color: #242424;
}

body {
    width: 100%;
    height: 100%;
}

#page-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    flex-flow: column nowrap;
    align-items: stretch;
    overflow: hidden;
}

#background {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #242424;
    z-index: -1;
}

header {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    position: relative;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: stretch;
    color: #242424;
    background-color: #f4f4f4;
    z-index: 10;
}

#header-bar {
    padding: 5px;
    flex: 1 0 auto;
    display: flex;
    position: relative;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    z-index: 11;
}

#heading {
    flex: 0 0 auto;
    display: flex;
    position: relative;
    flex-flow: row nowrap;
    align-items: center;
    font-size: 30px;
}

#heading img {
    flex: 0 0 auto;
    height: 48px;
}

#heading a {
    max-width: calc(100vw - 110px);
    padding-left: 5px;
    flex: 0 0 auto;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

#menu-button {
    flex: 0 0 auto;
    height: 48px;
    width: 48px;
    display: block;
    background-color: transparent;
    border: none;
}

.menu-icon-bar {
    width: 36px;
    height: 5px;
    margin: 6px auto;
    background-color: #242424;
    border-radius: 2px;
}

#navigation {
    width: 100%;
    padding-top: 10px;
    margin-bottom: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: inherit;
    z-index: 10;
    transition: margin-bottom 400ms ease;
}

#navigation.show {
    margin-bottom: calc(-30px - 1rem);
}

#navigation ul {
    width: 100%;
    display: flex;
    position: relative;
    flex-flow: column nowrap;
    align-items: center;
}

#navigation ul li {
    flex: 0 0 auto;
    padding: 15px;
    list-style-type: none;
}

#navigation ul li a {
    color: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

#page-content-wrapper {
    min-width: 100%;
    flex: 1 0 auto;
    height: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: stretch;
    overflow: auto;
    scroll-behavior: smooth;
    position: relative;
}

#cover {
    width: 100%;
    padding: 100px 40px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: reveal 0.8s 0s ease forwards;
}

@keyframes reveal {
    from { opacity: 0 }
    to { opacity: 1 }
}

#cover h1 {
    max-width: 800px;
    font-size: 2.5rem;
}

#cover p {
    padding-top: 10px;
    font-size: 1.5rem;
}

#cover #bc-thesis {
    font-weight: 600;
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px 10px 10px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.content {
    width: 100%;
    flex: 1 1 auto;
    margin: 10px 10px 20px 10px;
    background-color: #f4f4f4;
    border-radius: 7px;
    overflow: hidden;
}

.content h2 {
    padding: 5px 0 5px 10px;
    color: #f4f4f4;
    font-size: 2rem;
    background-color: #3f3f3f;
}

.content .text-wrapper {
    padding: 10px;
    font-size: 1.2rem;
}

.content .text-wrapper h3 {
    padding-top: 5px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.content .text-wrapper p {
    text-indent: 2em;
    text-align: justify;
}

.content .text-wrapper p:not(:last-child) {
    margin-bottom: 10px;
}

.content .text-wrapper ol {
    padding: revert;
}

.content .timeline-wrapper {
    padding-left: 11px;
}

.content .timeline-milestone {
    padding: 10px 0 10px 19px;
    border-left: 4px solid #3f3f3f;
}

.content .timeline-milestone .milestone-time {
    padding-top: 0;
    position: relative;
}

.content .timeline-milestone .milestone-time::before {
    content: '';
    width: 22px;
    height: 22px;
    position: absolute;
    top: 3px;
    left: -32px;
    background-color: #3f3f3f;
    border-radius: 50%;
}

.content .timeline-milestone .milestone-time::after {
    content: '';
    width: 14px;
    height: 14px;
    position: absolute;
    top: 7px;
    left: -28px;
    background-color: #f4f4f4;
    border-radius: 50%;
}

.content .timeline-milestone ul {
    padding: revert;
}

footer {
    padding: 10px 7px;
    color: #f4f4f4;
    font-size: 1.3rem;
    text-align: center;
    background-color: #3f3f3f;
}

footer #image-credit {
    padding-top: 5px;
    font-size: 1rem;
}

footer #image-credit a {
    color: #78c2ff;
}

@media only screen and (min-width: 800px) {
    #menu-button {
        display: none;
    }

    #header-bar {
        background-color: none;
        box-shadow: none;
    }
    
    #navigation {
        transition: none;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        padding-top: 0;
        position: relative;
        margin-top: 0;
        background-color: none;
        box-shadow: none;
    }
    
    #navigation ul {
        height: 100%;
        flex-direction: row;
    }

    #navigation ul li a {
        transition: color 100ms ease;
    }

    #navigation ul li a:hover {
        color: #1f8de7;
    }
}

@media only screen and (min-width: 1000px) {
    #annotation, #aim {
        width: 48%;
    }
}