body {
    font-family: "Work Sans","Helvetica Neue",Helvetica,Arial,sans-serif
}

.header {
    padding: 15px;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 77px;
    z-index: 99;
}

.logo {
    flex: 1 auto;
    margin-right: 1em;
}

.logo img {
    width: 198px;
}

.title {
    flex: 5 auto;
    margin: 0;
}

th, td {
    padding: 5px;
    border: 1px solid #999;
}

th {
    background: #e5e5e5;
}

table#assign th, table#assign td {
    text-align: center;
}

table#grades th:not(:last-child), table#grades td:not(:last-child) {
    text-align: center;
}

table#grades th:last-child, table#grades td:last-child {
    text-align: left;
}

table#table_notes th, table#table_notes td {
    text-align: center;
}

.navigation {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20em;
    padding: 77px 0px 15px 0px;
    background-color: #fafafa; 
    z-index: 1;
}

.navigation h2 {
    color: #80001f;
    background-color: #eee;
    border-bottom: solid 1px #a2a2a2;
    margin: 0;
    padding: 10px 15px;
    font-size: 1.75em;
    font-weight: 700;
}

.nav li a {
    color: #000;
    font-weight: 700;
    border-right: solid 5px #eee;
    border-bottom: solid 1px #eee;
}

.nav li a:hover {
    border-color: #ffa5aa;
}

.nav li.active a {
    color: #80001F;
    border-right: solid 5px #670019;
    border-bottom: solid 1px #670019;
}

.nav li.active a:hover {
    background-color: #dfdfdf;
    border-color: #80001F;
}

.content {
    margin-left: 20em;
    margin-top: 77px;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        position: static;
        height: auto;
        z-index: 1;
    }

    .header h1 {
        margin-top: 0.5em;
        font-size: 2em;
    }

    th, td {
        padding: 2px;
    }

    .navigation {
        width: 100%;
        padding: 0;
        z-index: 99;
    }

    .navbar-collapse .navbar-toggle {
        font-size: 2.5em;
        padding: 0;
        position: absolute;
        right: 0;
        top: 0;
        line-height: 1em;
        margin: -2px 5px 5px 5px;
    }

    .nav-button {
        color: #80001F;
        display: flex;
        margin: 10px;
        padding: 5px;
        border: none;
        background: #fff;
    }

    .nav-button > span {
        display: block;
        margin-right: 5px;
    }
    
    .nav-button .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: #80001F;
        margin-top: 4px;
    }

    .content {
        margin-left: auto;
        margin-top: 0;
    }
}

@media screen and (min-width: 768px) {
    .nav-button {
        display: none;
    }
}