/* =========================================
   1. Color Variables and Theme Settings
   ========================================= */

/* Default Light Mode Variables */
:root {
    --bg-color: #f8f8f8;
    --text-color: #333;
    --link-color: blue;
    --nav-bg-color: #555;
    --footer-bg-color: #555;
    --article-border-color: #eee;
}

/* Dark Mode Variables */
.dark-mode {
    --bg-color: #121212;
    --text-color: #ffffff;
    --link-color: #bb86fc;
    --nav-bg-color: #202020;
    --footer-bg-color: #202020;
    --article-border-color: #444;
}

/* =========================================
   2. Base Styles (Body, Links, Paragraphs)
   ========================================= */

body {
    font-family: sans-serif;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--link-color);
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Remove or adapt responsive navigation styles if not using */
nav::after {
    display: none; /* Hide the mobile menu icon for now */
}

nav ul.responsive {
    display: flex; /* Adjust for button layout in responsive view */
    flex-direction: column; /* Stack buttons on smaller screens */
    align-items: stretch; /* Make buttons full width */
}

nav ul:not(.responsive) {
    display: flex; /* Ensure buttons are displayed by default */
}

nav ul.responsive li {
    display: block;
    text-align: center;
    margin: 5px 0; /* Add spacing between stacked buttons */
}

nav ul.responsive li a,
nav ul.responsive li button { /* Apply to both links and buttons */
    display: block;
    padding: 15px;
    text-align: center;
}

/* =========================================
   4. Footer Styles
   ========================================= */
footer {
    clear: both;
    color: #fff;
    background-color: var(--footer-bg-color);
    height: 40px;
    line-height: 40px;
}

footer p {
    text-align: center;
    margin: 0;
}

/* =========================================
   5. Main Content Area Styles
   ========================================= */

main {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

/* Dark Mode Hint Container */
main .dark-mode-hint-container {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 1em;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 1.5em;
}

main .dark-mode-hint-container h2 {
    font-size: 1em;
    margin: 0;
}

.dark-mode main .dark-mode-hint-container {
    background-color: #222;
    border-color: #555;
    color: #aaa;
}

/* =========================================
   6. Article and Image Styles
   ========================================= */

article p a {
    color: #007bff;
    text-decoration: none;
}

article p a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

figure.expandable-image {
    max-width: 600px;
    margin: 1em auto;
}

/* =========================================
   7. Blockquote Styles
   ========================================= */

blockquote.bain::after {
    content: " (Bain, 2006, 'White Men Are Liars')";
    font-size: 0.8em;
    color: #888;
    display: block;
    margin-top: 5px;
}

blockquote.chatwin-strehlow::after {
    content: " (Chatwin, 1987, 'The Songlines', quoting Strehlow, 1971, 'Songs of Central Australia')";
    font-size: 0.8em;
    color: #888;
    display: block;
    margin-top: 5px;
}
blockquote {
    margin: 1.5em;
    padding: 1em 2em;
    border-left: 5px solid #ccc; /* Or a color that fits your theme */
    font-style: italic;
}

/* =========================================
   8. Responsive Styles (Mobile) - Adapt as needed
   ========================================= */

@media (max-width: 768px) {
    h1 {
        font-size: 6vw;
    }

    /* Adjust navigation for smaller screens */
    nav ul {
        flex-direction: column; /* Stack buttons */
        align-items: stretch; /* Make buttons full width */
    }

    nav li {
        margin: 5px 0;
    }
}

/* =========================================
   9. Accessibility Styles
   ========================================= */

a:focus,
button:focus {
    outline: 2px solid var(--link-color);
}
/* =========================================
   3. Navigation Bar Styles (Updated for Buttons)
   ========================================= */

nav {
    clear: both;
    color: #fff; /* This will be overridden by button color */
    background-color: var(--nav-bg-color);
    padding: 5px 0; /* Add some padding for vertical spacing */
}

nav ul {
    margin: 0;
    padding: 0 20px;
    display: flex; /* Arrange buttons horizontally */
    justify-content: center; /* Center the buttons */
    align-items: center; /* Vertically align items in the nav */
    list-style: none; /* Remove bullet points */
}

nav li {
    margin: 0 5px; /* Reduce margin for button spacing */
}

nav .nav-button { /* Style the button elements */
    background-color: #f0f0f0; /* Light background color */
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em; /* Adjust font size as needed */
    transition: background-color 0.3s ease;
}

nav .nav-button:hover,
nav .nav-button.current {
    background-color: #e0e0e0; /* Slightly darker background on hover */
    color: #333; /* Ensure text color remains readable */
}

nav .nav-button.current {
    background-color: #d0d0d0; /* Highlight the current page */
    font-weight: bold; /* Make the current button bold */
}

/* Remove or adapt responsive navigation styles if not using */
nav::after {
    display: none; /* Hide the mobile menu icon for now */
}

nav ul.responsive {
    display: flex; /* Adjust for button layout in responsive view */
    flex-direction: column; /* Stack buttons on smaller screens */
    align-items: stretch; /* Make buttons full width */
}

nav ul:not(.responsive) {
    display: flex; /* Ensure buttons are displayed by default */
}

nav ul.responsive li {
    display: block;
    text-align: center;
    margin: 5px 0; /* Add spacing between stacked buttons */
}

nav ul.responsive li a,
nav ul.responsive li button { /* Apply consistent padding */
    display: block;
    padding: 10px 15px;
    text-align: center;
}
figure.expandable-image {
    max-width: 600px;
    margin: 1em auto;
    border: 1px solid transparent; /* Add a transparent border initially to prevent layout shift on hover */
    transition: border-color 0.3s ease; /* Smooth transition for the border */
    cursor: zoom-in; /* Or just 'pointer' */
}

figure.expandable-image:hover {
    border-color: #ccc; /* Or a color that fits your theme */
}