body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #4f2c1d;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    background-color: #333;
    padding-top: env(safe-area-inset-top, 0);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
}

.navbar a:hover {
    background-color: #ddd; 
    color: black; 
}

.navbar a:active {
    background-color: #FD5000;
    color: white;
}

/* Waffle Icon for Mobile */
.navbar-toggle {
    display: none;
    font-size: 24px;
    color: white;
    padding: 14px 20px;
    cursor: pointer;
}

/* Hide the menu by default on mobile */
.navbar-menu {
    display: flex;
}

/* Media query to make navbar responsive */
@media (max-width: 768px) {
    .navbar {
        justify-content: flex-start; /* Aligns items to the left when in mobile mode */
    }

    .navbar ul {
        flex-direction: column;
        text-align: center;
    }

    .navbar-menu {
        display: none; /* Hide menu items initially */
        flex-direction: column;
        width: 100%;
    }
    .navbar-menu.active {
        display: flex; /* Show menu items when active */
    }
    .navbar-toggle {
        display: block; /* Show waffle icon on mobile */
    }
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    background-color: #1e1e1e;
}

header h1 {
    font-size: 2.5rem;
    color: #FD5000;
}

header p {
    font-size: 1.1rem;
    color: #b0bec5;
}

.header-image {
    display: block;
    margin: 1rem auto;
    max-width: 150px;
    height: auto;
}


/* Main Content */
.content {
    flex: 1;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.handout-title {
    font-size: 2rem;
    color: #FD5000;
    margin-bottom: 0.5rem;
    text-align: center;
}

.handout-date {
    color: #b0bec5;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Handout Content */
.handout-content h3 {
    color: #FD5000;
    margin-top: 1rem;
}

.handout-content p {
    margin-bottom: 1rem;
}

.handout-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.handout-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #1e1e1e;
    color: #b0bec5;
    text-align: center;
    padding: 1rem;
}
