body {
    /* Restored Open Sans font from the style guide */
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: #333;
    /* Added flexbox properties to create a sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes at least the full viewport height */
}

header {
    /* Changed background to the "Electric Blue" from the README */
    background-color: #00b2ec;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.cover-image {
    width: 300px;
    height: auto;
    background: white;
    padding: 0px;
}

.logo {
    width: 100px;
    height: auto;
    background: white;
    padding: 15px;
}

nav {
    background: #f0f0f0;
    padding: 0.75rem 1rem;
    text-align: center;
    /* This is needed to correctly position the mobile menu */
    position: relative; 
    /* This ensures the links don't wrap and cause the hamburger to misalign */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Initially hide the hamburger on larger screens */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    display: inline-block;
    margin: 0 1rem;
}

.nav-links li a {
    color: black;
    text-decoration: none;
}

main {
    padding: 2.5rem 1rem;
    text-align: center;
    background: white;
    flex-grow: 1; /* Allows the main content to grow and push the footer down */
}

footer {
    background: #c7c9c7;
    text-align: center;
    /* Reduced top and bottom padding to make the footer shorter */
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    /* Added the thin red accent line below the footer */
    border-bottom: 2px solid #da291c;
}

/* Media Query for mobile screens */
@media (max-width: 768px) {
    nav {
        /* On mobile, align the hamburger to the right */
        justify-content: flex-end;
        padding-right: 2rem;
    }

    .hamburger {
        /* Show the hamburger icon */
        display: block;
    }

    .nav-links {
        /* Hide the navigation links by default and position them for the dropdown effect */
        position: absolute;
        top: 100%; /* Position it right below the nav bar */
        left: -100%; /* Start off-screen */
        background-color: #f0f0f0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        transition: left 0.3s ease-in-out;
        z-index: 10; /* Ensure it appears above other content */
    }

    .nav-links.active {
        /* This class will be toggled by JavaScript to show the menu */
        left: 0;
    }

    .nav-links li {
        /* Make nav items take full width and add some padding */
        display: block;
        padding: 1rem 0;
        margin: 0;
    }
}