:root {
    --auca-dark-blue: #1F3058;
    --auca-light-blue: #2D457C;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --auca-red: #b71c1c;
}

td.lecture {
    background-color: #fcfa8e;
}

td.special {
    background-color: #8085ff;
}

td.bonus {
    background-color: #80dbff;
}

td.important {
    background-color: #ffa9ac;
}

td.holiday {
    background-color: #9df081;
}

.reading {
    color: #3350ea;
}

.assignment {
    color: #1bb71a;
}

.deadline {
    color: #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

pre code {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    color: var(--auca-light-blue);
    border-radius: 5px;
}

code {
    color: var(--auca-light-blue);
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.footer a:link,
.footer a:visited,
.footer a:hover,
.footer a:active,
.content a:link,
.content a:visited,
.content a:hover,
.content a:active {
    color: dodgerblue;
    text-decoration: underline;
}

ul:not(.navbar-links), ol:not(.navbar-links) {
    padding-left: 1em;
    margin-top: 0;
    margin-bottom: 0;
    list-style-position: outside;
}

li {
    margin-bottom: 0.25em;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--auca-dark-blue);
    color: white;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    z-index: 1;
}

.navbar-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.navbar-brand a {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-brand span {
    line-height: 1;
    font-size: 1.2rem;
}

.navbar-links {
    display: flex;
    list-style: none;
}

.navbar-links li {
    margin-left: 1.5rem;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.navbar-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 30px;
    padding: 0;
}

.navbar-toggle span {
    display: block;
    background: white;
    height: 3px;
    width: 100%;
    border-radius: 2px;
}

.navbar-links .dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    margin-left: -2.67em;
    display: block;
    padding: 8px 4px;
    text-decoration: none;
    color: black;
    font-size: 0.9em;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 0.75em;
}

h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem 0;
    width: 100%;
}

h1 {
    text-align: center;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: black;
}

.menu {
    text-align: center;
    padding: 1em
}

.menu a:link,
.menu a:visited,
.menu a:hover,
.menu a:active {
    color: dodgerblue;
    text-decoration: underline;
}

.assignment a, .reading a, .deadline a {
    color: dodgerblue;
    text-decoration: none;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.footer {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    font-size: smaller;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.schedule-table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
    border: 2px solid black;
    margin: 1rem 0 2rem;
}

.schedule-table th {
    background-color: var(--auca-light-blue);
    padding: 0.1rem;
    text-align: center;
    color: white;
    border-bottom: 2px solid var(--auca-dark-blue);
}

.schedule-table td {
    padding: 0.1rem;
    border: 1px solid #ddd;
    vertical-align: top;
    font-size: 0.9em;
    line-height: 1.2;
}


hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 1rem;
    }

    .navbar-brand span {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--auca-dark-blue);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links li {
        margin: 0.5rem 0;
        padding: 0 2rem;
    }

    .dropdown-menu {
        display: none;
        position: static;
        background-color: var(--auca-dark-blue);
        box-shadow: none;
        list-style: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: white;
        padding-left: 1rem;
        font-size: 1.1em;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}