/* =================================
    CSS VARIABLES (Light & Dark Mode)
    ================================= */
:root {
    /* Light Mode */
    --body-background: #f8f8f8;
    --main-text-color: #555;
    --heading-color: #333;
    --link-color: #0066cc;
    --link-hover-color: #005fa3;
    --card-background: #fff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Dark Mode - Activated by System Preference or Manual Toggle */
@media (prefers-color-scheme: dark) {
    :root {
        --body-background: #1a1a1a;
        --main-text-color: #e0e0e0;
        --heading-color: #e0e0e0;
        --link-color: #79a1d1;
        --link-hover-color: #6a9ce0;
        --card-background: #2a2a2a;
        --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}
body[data-theme='dark'] {
    --body-background: #1a1a1a;
    --main-text-color: #e0e0e0;
    --heading-color: #e0e0e0;
    --link-color: #79a1d1;
    --link-hover-color: #6a9ce0;
    --card-background: #2a2a2a;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =================================
    GENERAL STYLING
    ================================= */
/* Set a minimum height for the body to ensure the background fills the page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--body-background);
    color: var(--main-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
h2 {
    color: var(--heading-color);
    margin-top: 1.5em;
    transition: color 0.3s ease;
}
p, ul {
    line-height: 1.5;
}
ul {
    list-style: none;
    padding-left: 0;
}
ul li {
    margin-bottom: 0.5em;
}
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}

/* =================================
    PAGE LAYOUT AND CONTENT
    ================================= */
/* Center the main content and give it a clean, card-like appearance */
main {
    max-width: 600px;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 40px;
    padding: 40px;
    background-color: var(--card-background);
    color: var(--main-text-color);
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}