* {
    box-sizing: border-box;
}

html {
    margin: auto;
    scroll-behavior: smooth;
}

body.light {
    --text: dark;
    --background: white;

}

body.dark {
    --text: white;
    --background: black;
}

body {
    color: var(--text);
    background: var(--background);
    text-rendering: optimizeLegibility;
    margin: auto;
    padding: auto;
    padding-bottom: 30px;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    letter-spacing: .025em;
    cursor: default;
}

nav {
    font-size: 20px;
    top: 0;
    z-index: 1;
    border-bottom-style: groove;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    width: max-content;
    margin: auto;
}

nav a {
    text-decoration: none;
    padding: 8px;
}

nav a:hover {
    text-decoration: underline;
}

nav a:link, nav a:visited {
    color: var(--text);
    /* text-decoration: none; */
}

nav img {
    display: inline;
    max-height: 44px;
}



.topic {
    padding: 10px 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.topic p {
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    margin-bottom: 16px;
    margin-top: 10px;
}

.topic h1 {
    padding-bottom: .3em;
    font-size: 2em;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.topic h3 {
    margin: 0px 0px 10px 0px;
    padding-bottom: 15px;
    padding-top: 10px;
    text-align: center;
    font-weight: lighter;
}

.topic h2 {
    padding-bottom: 10px;
    padding-top: 16px;
    margin: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
}

.topic img {
    padding: 20px 0px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height:500px;
    max-width: 100%;
    width:auto;
    height:auto;
    overflow:hidden;
    filter: drop-shadow(0 0 2px rgb(0, 0, 0));
}