/* Navigation Bar */
.nav-container {
    display: flex;
    justify-content: space-between; /* Aligns links to the left and button to the right */
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode .nav-container {
    background-color: #222; /* Dark mode background */
    color: #ddd;
}

.dark-mode .container a {
    color: orange;
}

/* Navigation links */
.nav-links a {
    margin-right: 15px;
    font-size: 16px;
    text-decoration: none;
    color: blue;
    cursor: pointer;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Default (light mode) */
body {
    background-color: white;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark mode styles */
.dark-mode {
    background-color: #222; /* Changed from pure black to dark grey */
    color: #ddd;
}

/* Dark mode navigation links */
.dark-mode .nav-links a {
    color: orange; /* Change text color to orange in dark mode */
}

/* Dark mode button */
#dark-mode-toggle {
    font-family: "Times New Roman", Times, serif;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: auto;
}

.dark-mode #dark-mode-toggle {
    color: orange; /* Adjusts color in dark mode */
}

/* Image Styling */
img {
    max-width: 100%; /* Ensures images don't exceed their container */
    height: auto;
    display: block;
    margin: 0 auto; /* Centers images */
}

/* Page Title */
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 2rem); /* Adjusts title font size dynamically */
    white-space: nowrap; /* Prevents wrapping onto two lines */
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    font-size: 0.8em;
    background-color: #ffffff;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode footer {
    background-color: #222;
    color: #ddd;
}

/* Container */
.container {
    max-width: 600px; /* Keeps content at a readable width */
    width: 90%;
    margin: 0 auto;
}

/* Emoji size adjustment */
.emoji {
    font-size: 1.3em;
}