@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --ui-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --color-dark-blue: #1A384C;
    --color-off-white: #E4E2DF;
}

html, body {
    font-family: var(--ui-font);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background-color: lightgray;
}

/* Headers use bold */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--ui-font);
    font-weight: 700;
    font-style: normal;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    position: sticky;
    top: 0;
    z-index: 100;
}

#logo {
    flex: 0 0 auto;
    height: 7em;
}

.nav-links {
    display: flex;
    flex: 1 1 auto;
    background-color: var(--color-dark-blue);
    height: 5em;
    min-width: 0;
    align-items: center;
}

.nav-items {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.nav-links a {
    color: var(--color-off-white);
    text-decoration: none;
    padding: 0.5em 1em;
}

.current {
    background-color: #132938;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    margin-right: 1.5em;
    z-index: 101;
    align-self: center; /* Center in nav-links */
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--color-off-white);
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        margin-left: auto; /* Push to right side */
    }

    .nav-items {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--color-dark-blue);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5em;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-items.active {
        right: 0;
    }

    .nav-links a {
        padding: 1em;
        width: 100%;
        text-align: center;
    }

    /* Hamburger animation */
    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 9px);
    }

    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -9px);
    }
}

.main {
    flex: 1 1 auto;
    max-width: 80%;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--color-off-white);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.main img {
    max-width: 100%;
}

.links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 50px;
}

footer {
    display: flex;
    justify-content: center;
    background-color: var(--color-dark-blue);
    color: var(--color-off-white);
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: var(--color-dark-blue);
    color: var(--color-off-white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--color-dark-blue);
}

td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

tbody tr:last-child td {
    border-bottom: 2px solid var(--color-dark-blue);
}

td.nowrap {
    white-space: nowrap;
}
