/* Default Light Mode */
body {
    background-color: white;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Toggle Switch Styling */
.toggle-container {
    position: fixed;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}

.toggle-switch::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 1px;
    left: 2px;
    transition: transform 0.3s;
}

.dark-mode .toggle-switch {
    background-color: #444;
}

.dark-mode .toggle-switch::before {
    transform: translateX(20px);
}

/* Default Light Mode Footer */
footer {
    background: none;
    color: black;
    text-align: center;
    padding: 15px 0;
    width: 100%;
}

/* Footer Links */
footer a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

/* Dark Mode Footer */
.dark-mode footer {
    color: white;
}

/* Dark Mode Footer Links */
.dark-mode footer a {
    color: white;
}

/* Shared image styling */
.theme-img {
    width: 100%;
    max-width: 600px;
    display: block;
    transition: opacity 0.3s ease;
}

/* Show only light image by default */
.dark-img {
    display: none;
}

/* When dark mode is active */
body.dark-mode .light-img {
    display: none;
}

body.dark-mode .dark-img {
    display: block;
}
