/* Menu Button */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: #FF4B41;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

body.light-mode .menu-toggle {
    background: #004080;
}

/* Left-Floating Navigation */
nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Full-height menu */
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
    padding: 1rem;
}

nav.open {
    transform: translateX(0); /* Slide into view when open */
}

nav a {
    color: white;
    padding: 1rem 0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF4B41;
}

body.light-mode nav {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode nav a {
    color: #ffffff; /* White text for light mode */
}

body.light-mode nav a:hover {
    color: #003366;
}

nav.active {
    transform: translateY(100px);
}

.back-button {
    position: fixed;
    left: 1rem;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Hidden by default */
}

body.light-mode .back-button {
    background: #ff6600;
    color: #ffffff;
}

.back-button:hover {
    background: #003366;
}

nav.open + .back-button {
    display: block; /* Show the back button when the menu is open */
}
