:root {
    color-scheme: light dark;
    font-family: sans-serif;
    --menu-background: lightgray;
    --menu-border-color: gray;
    --text-color: black;
}

@media (prefers-color-scheme: dark) {
    :root {
        --menu-background: black;
        --menu-border-color: gray;
        --text-color: white;
    }
}

body {
    margin: 0;
}

#container {
    display: flex;
    flex-flow: column;
    height: 100%;
    width: 100%;
}

#menu {
    background: var(--menu-background);
    flex: 0 1 auto;
    position: sticky;
    top: 0;
    display: flex;
    z-index: 100;
    border-bottom: 0.1rem solid var(--menu-border-color);
}

#menu a {
    flex: 1 1 100%;
    color: var(--text-color);
    font-size: x-large;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-flow: column;
    align-items: center;
}

#menu p {
    text-indent: 0;
    margin: 0.5rem;
}

#menu .link-indicator {
    height: 0.2rem;
    background-color: var(--text-color);
    width: 0;
    transition: width 0.5s;
}

#menu .link-indicator.selected,
#menu a:is(:hover, :focus-visible) .link-indicator {
    width: 100%;
}

main {
    margin: 1rem;
    display: flex;
    flex-flow: column;
}