body, html { margin: 0; padding: 0; } body { overflow-wrap: break-word; } #main { box-sizing: border-box; min-height: 100vh; padding: 35px 10vw; background-color: white; color: #222; } * { font-family: 'Times New Roman', Times, serif; } *:not(h1, h2, h3, h4, h5, h6) { font-size: 1.02rem; } h1 { font-size: 2rem !important; } h1 code { font-size: 1.9rem !important; } h2 { font-size: 1.5em !important; } h2 code { font-size: 1.4em !important; } h3, h3 code { font-size: 1.3em !important; } h3 code { font-size: 1.2em !important; } #return { position: absolute; top: 5px; left: 5px; } a { text-decoration: underline; } a:link { color: forestgreen; } a:visited { color: orchid; } p { margin: 7px 0px; line-height: 1.4; } h1, h2, h3, h4, h5, h6 { font-family: Verdana, sans-serif; margin: 10px 0px 5px 0px; } ul { margin: 0; padding-left: 40px; } input[type="checkbox"] { margin-left: 0; } #dark-mode { position: fixed; top: 5px; right: 5px; opacity: 0; } #dark-mode:checked ~ #main { background-color: #222; color: white; } label[for="dark-mode"] { position: fixed; top: 3px; right: 3px; font-size: 1.3rem; } label[for="dark-mode"]:hover { cursor: pointer; } label[for="dark-mode"]:hover::after { text-shadow: #222 0 0 15px; } #dark-mode:checked + label[for="dark-mode"]:hover::after { text-shadow: white 0 0 15px; } #dark-mode + label[for="dark-mode"]::after { color: black; content: "🌙"; } #dark-mode:checked + label[for="dark-mode"]::after { color: white; content: "☀️"; } html:has(#dark-mode:checked) { scrollbar-color: #747474 #222; } @media (prefers-color-scheme: dark) { #dark-mode + label[for="dark-mode"]::after { color: white; content: "☀"; } #dark-mode:checked + label[for="dark-mode"]::after { color: black; content: "🌙"; } #main { background-color: #222; color: white; } #dark-mode:checked ~ #main { background-color: white; color: #222; } label[for="dark-mode"]:hover::after { text-shadow: white 0 0 15px; } #dark-mode:checked + label[for="dark-mode"]:hover::after { text-shadow: #222 0 0 15px; } html:has(#dark-mode) { scrollbar-color: #747474 #222; } html:has(#dark-mode:checked) { scrollbar-color: auto; } }