@font-face {
    font-family: 'mono';
    src: url('./mono.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

html {
    font-family: mono;
    display: -webkit-box;
    white-space: pre;
    unicode-bidi: isolate;
    background-color: #101010;
    color: ghostwhite;
}

body {
    padding: 0px;
    margin: 0px;
    width: 100%;
}

#header {
    position: fixed;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 100%;
    height: 75px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(
        to bottom,
        #101010 0%,
        #101010 55%,
        transparent 100%
    );
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #990000;
    text-decoration: overline;
}

code {
    text-decoration: none;
    text-emphasis: none;
    font-weight: normal;
    font: inherit;
}

code {
    display: inline-block;
    background-color: #450000;
    border: 0.1px solid #450000;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px 0;
    color: #eeeeee;
    font-family: mono, monospace;
    font-size: 0.85rem;
}

.link-spacer {
    background: none;
    border: none;
}

#intro {
    width: 100%;
    max-width: 600px;
    white-space: normal;
}

#container {
    max-width: 600px;
    margin: 0 auto;
    
}

#timeline-menu {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background-color: #101010;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 2px solid ghostwhite;
    z-index: 1000;
}

#timeline-menu a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

@media (max-width: 650px) {
    html {
        font-size: 0.95rem;
    }

    #header {
        justify-content: space-around;
    }

    #container {
        margin: 0 5%;
    }

    code {
        display: none;
    }

    #timeline-menu {
        display: none;
    }
}

@media (max-width: 1245px) {    
    #timeline-menu {
        left: 3%;
    }
}

@media (max-width: 1050px) {
    #timeline-menu {
        display: none;
    }
}

@media (max-width: 550px) {
    #header {
        justify-content: space-around;
    }

    .course-code {
        display: none;
    }
    html {
        font-size: 0.90rem;
    }
}

#four-oh-four h1 {
    font-size: 3rem;
    color: #990000;
}