body {
    --text-color: #222;
    --bkg-color: #fff;
}

body #btn_light {
    display: none;
}

body #btn_dark {
    display: block;
}

body.dark-theme {
    --text-color: #eee;
    --bkg-color: #121212;
}

body.dark-theme #btn_light {
    display: block;
}

body.dark-theme #btn_dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    body {
        --text-color: #eee;
        --bkg-color: #121212;
    }

    body #btn_light {
        display: block;
    }

    body #btn_dark {
        display: none;
    }

    body.light-theme {
        --text-color: #222;
        --bkg-color: #fff;
    }

    body.light-theme #btn_light {
        display: none;
    }

    body.light-theme #btn_dark {
        display: block;
    }
}

body {
    background: var(--bkg-color);
    color: var(--text-color);
}

.main-container {
    display: flex;
}

@media (hover: hover) {
    .main-container {
        margin-top: 75px;
    }
}

.nav-container {
    background-color: var(--bkg-color);
    padding: 0 10px;
    margin: 0 auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (hover: hover) {
    .nav-container {
        position: fixed;
        width: 98%;
        width: -moz-available;
        top: 0;
        left: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border: 1px solid black;
        border-radius: 5px;
    }
}

.color-mode {
    cursor: pointer;
    z-index: 70;
}

@media (hover: hover) {
    .color-mode {
        position: fixed;
        left: 99%;
        transform: translateX(-100%);
    }
}

.nowrap {
    white-space: nowrap;
}

.navigation-popup {
    padding: 10px;
    background-color: rgba(200, 200, 200, 0.8);
    border: 1px solid lightgray;
    border-radius: 5px;
    pointer-events: none;
}

@media (hover: hover) {
    .navigation-popup {
        position: fixed;
        z-index: 100;
        top: 50px;
        left: 10px;
        backdrop-filter: blur(1px);
        display: none;
    }
}

.navigation {
    flex: 1 1 auto;
}

.box {
    position: relative;
    border: black 2px groove;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
}

.contents {
    margin: 0 20px;
}

.timestamp {
    font-family: serif;
    color: cornflowerblue;
}

.bold {
    font-weight: bold;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
    color: #333;
    display: inline-block;
    padding: 2px 4px;
}