/* Shared styles for all pages */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: black;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s; /* Smooth mode switch */
}

body.light-mode {
    background-color: white;
    color: black;
}

header {
    position: relative;
    /* Removed background-image here to allow per-page customization */
    background-size: cover;
    background-position: center;
    height: 250px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

header h1 {
    color: white; /* Keep white for contrast on banner */
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px;
    align-self: flex-start;
}

nav {
    background-color: #333;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: background-color 0.3s;
}

body.light-mode nav {
    background-color: #ddd;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid white;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.3s;
}

body.light-mode nav a {
    color: black;
    border-color: black;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: underline;
}

body.light-mode nav a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.content-image, video, .gallery img, .lightbox img {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s;
}

body.light-mode .content-image, body.light-mode video, body.light-mode .gallery img, body.light-mode .lightbox img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

p {
    max-width: 800px;
    margin: 20px auto;
}

@media (max-width: 768px) {
    nav { flex-direction: column; }
}

/* Mode toggle button */
#mode-toggle {
    cursor: pointer;
    padding: 8px 15px;
    border: 1px solid white;
    border-radius: 4px;
    background-color: transparent;
    color: white;
    transition: background-color 0.3s;
}

body.light-mode #mode-toggle {
    color: black;
    border-color: black;
}

#mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.light-mode #mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.2);
}
