/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

body.dark-mode header,
body.dark-mode footer {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 20px;
    margin-top: 20px;
}

body.dark-mode header h1 {
    font-size: 2rem;
    color: #fff;
}

body.dark-mode h1 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

body.dark-mode a,
body.dark-mode a:visited,
body.dark-mode footer a,
body.dark-mode footer a:visited,
body.dark-mode header a,
body.dark-mode header a:visited {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode a:hover,
body.dark-mode a:visited:hover,
body.dark-mode footer a:hover,
body.dark-mode footer a:visited:hover,
body.dark-mode header a:hover,
body.dark-mode header a:visited:hover {
    color: #fff;
    text-decoration: underline;
}

/* -------------------- Light mode -------------------- */
body.light-mode {
    background-color: #f5f5f5;
    color: #222;
}

body.light-mode header,
body.light-mode footer {
    background-color: #e9e9e9;
    color: #111;
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 20px;
    margin-top: 20px;
}

body.light-mode header h1 {
    font-size: 2rem;
    color: #111;
}

body.light-mode h1 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

body.light-mode a,
body.light-mode a:visited,
body.light-mode footer a,
body.light-mode footer a:visited,
body.light-mode header a,
body.light-mode header a:visited {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.light-mode a:hover,
body.light-mode a:visited:hover,
body.light-mode footer a:hover,
body.light-mode footer a:visited:hover,
body.light-mode header a:hover,
body.light-mode header a:visited:hover {
    color: #005fa3;
    text-decoration: underline;
}

p {
    margin-bottom: 1.2rem;
}

ul li {
    margin-top: 0px;
}
