html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: #ffffff;
    color: #000;
    margin: 0;
    font-family: "Fira Code", monospace;
}

main {
    flex: 1;
}

footer {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.theme-toggle {
    margin-left: auto;
}

#theme-toggle {
    font-family: "Fira Code", monospace;
    font-size: 1rem;
    font-weight: bold;

    border: 3px solid #000;
    border-radius: 5px;
    background: transparent;
    color: #000;

    padding: 5px 10px;
    cursor: pointer;
}

#theme-toggle:hover {
    background: #000;
    color: #fff;
}


body.dark-mode {
    background: #111;
    color: #fff;
}

body.dark-mode .navbar {
    background: #111;
    border-bottom: 1px solid #444;
}

body.dark-mode .navbar a,
body.dark-mode .navbar .title {
    color: #fff;
}

body.dark-mode .navbar a::after {
    background: #fff;
}

body.dark-mode #theme-toggle {
    border-color: #fff;
    color: #fff;
}

body.dark-mode #theme-toggle:hover {
    background: #fff;
    color: #111;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.navbar li {
    display: flex;
}

.navbar .title {
    color: #000;
    font-weight: bold;
    padding: 14px 16px;
    margin-right: 20px;
    cursor: default;
}

.navbar a {
    display: block;
    position: relative;
    padding: 14px 16px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: transform .15s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #000;
    transition: width .3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:active {
    transform: scale(.95);
}

footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

footer a {
    color: #000;
    text-decoration: none;
}

body.dark-mode footer a {
    color: #fff;
}