:root {
  --body-width: 1000px;
  --toc-width: 200px;
  --font-size: 1rem;
  --font-family: monospace;
  --color-white: #f1f1f1;
  --color-light: #ececff;
  --color-black: #17191c;
  --color-grey: #585f67;
  --color-dark-grey: #222425;
  --color-dark-green: #003b00;
  --color-green: #2de721;
  --color-blue: #21e5f3;
  --color-light-red: #ff7181;
  --color-red: #ff5252;
  --color-yellow: #fff783;
  --color-orange: #ff9800;
  --color-cyan: #049fb3;
  --color-aqua: #00ffff;
  --color-bg: var(--color-black);
  --color-fg: var(--color-white);
  --color-text: var(--color-light);
  --color-primary: var(--color-aqua);
  --color-highlight: var(--color-blue);
  --color-hint: var(--color-cyan);
  --color-success: var(--color-green);
  --color-warning: var(--color-yellow);
  --color-danger: var(--color-red);
  --color-info: var(--color-orange);
  --color-muted: var(--color-grey); }

* {
  box-sizing: border-box;
  line-height: 1.5em; }

body {
  width: var(--body-width);
  margin: 0 auto;
  min-height: 98vh;
  font-family: var(--font-family);
  font-size: var(--font-size);
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center; }

a {
  color: var(--color-highlight);
  text-decoration: none; }

p > code,
li > code {
  display: inline-block;
  padding: 0 0.15em;
  color: var(--color-danger);
  cursor: pointer; }

pre > code span {
  font-size: 0.98em !important; }

ul.no-bullets {
  list-style-type: none; }

li ul,
li ol {
  padding-left: 1.2em; }

hr {
  width: 100%;
  border: 1px solid var(--color-muted); }

blockquote {
  border-left: 0.3em solid var(--color-highlight);
  padding-left: 0.4em;
  margin-left: 1em; }

img {
  display: block;
  margin: 1em auto; }

pre {
  padding: 0.7em;
  border-radius: 0.5em;
  background-color: var(--color-dark-grey) !important;
  overflow: scroll;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */ }
  pre::-webkit-scrollbar {
    display: none;
    /*  for Chrome, Safari and Opera */ }

label {
  margin-right: 1em; }

table {
  margin: 0 auto;
  border-collapse: collapse; }
  table th,
  table td {
    padding: 0 1em;
    padding-top: 0.7em; }
    table th:not(:first-child),
    table td:not(:first-child) {
      border-left: 2px solid var(--color-fg); }
  table th {
    font-style: bold;
    font-size: 1.25em;
    text-align: center;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-fg); }

article {
  display: flex;
  width: 100%; }
  article section {
    max-width: 100%;
    width: calc(100% - var(--toc-width)); }
    article section > blockquote:first-child {
      color: var(--color-muted);
      font-style: italic;
      border-left: none; }
    article section p {
      text-align: justify; }
  article aside {
    width: var(--toc-width);
    height: 100%;
    margin-left: 1em;
    order: 999;
    top: 2em;
    position: -webkit-sticky;
    position: sticky; }
    article aside a {
      width: 80%;
      display: inline-block;
      color: var(--color-muted) !important;
      white-space: nowrap;
      text-overflow: ellipsis; }
    article aside > nav {
      border-left: 1px solid var(--color-muted); }
    article aside ul {
      list-style-type: none; }

header {
  width: 100%;
  padding: 1em 2em; }

main {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center; }

footer {
  width: 100%;
  padding-top: 1em;
  padding-bottom: 0.5em;
  color: var(--color-muted);
  text-align: center; }
  footer a {
    color: var(--color-hint); }

@media only screen and (max-width: 768px) {
  body {
    width: 100%;
    margin: 0 auto;
    font-size: 0.9rem;
    min-height: 100vh; }
  main {
    padding: 0 0.6em; }
  #location {
    display: none; }
  footer {
    font-size: 0.7em; }
  h1 {
    font-size: 1.5em; }
  h2,
  h3 {
    font-size: 1.2em; }
  h4,
  h5 {
    font-size: 1em; }
  h6 {
    font-size: 0.9em; }
  ul {
    padding-left: 0em;
    margin-left: 0em; }
    ul li,
    ul ol {
      padding-left: 0.5em;
      margin-left: 0.5em; } }

@media only screen and (max-width: 1024px) {
  body {
    width: 100%;
    padding: 0 1em; }
  section {
    width: 100% !important;
    overflow-x: hidden; }
  aside {
    display: none !important; } }

.tag {
  color: var(--color-white);
  background-color: var(--color-grey);
  display: inline-block;
  margin: 0.3em auto;
  padding: 0.2em 0.5em;
  border-radius: 0.3em; }
  .tag:hover {
    color: var(--color-white);
    background-color: var(--color-hint); }

.btn {
  padding: 0.5em 0.3em;
  color: var(--color-text); }
  .btn:hover {
    filter: brightness(75%); }
  .btn i {
    font-size: 1.3em; }

.draft::before {
  content: "(draft) ";
  color: var(--color-red); }

.center {
  text-align: center; }

.content h1,
.content h2,
.content h3 {
  margin-top: 2em; }

.content h3,
.content h4 {
  margin-left: 1em; }

.content h5,
.content h6 {
  margin-left: 1.6em; }

.paginator {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row; }
  .paginator .btn {
    width: 2em;
    height: 2em;
    margin: 0 0.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.3em;
    border: 1px solid var(--color-primary); }
  .paginator a:hover {
    text-decoration: none; }
  .paginator span {
    color: var(--color-black);
    background-color: var(--color-primary); }

.ellipsis {
  width: 80%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; }

.hero i {
  font-size: 800%; }

.cursor {
  display: inline-block;
  height: 1em;
  width: 0.3em;
  margin-left: 0.7em;
  background-color: var(--color-dark-green); }

.fixed {
  position: fixed;
  display: inline-block; }

.r0 {
  right: 0; }

.b0 {
  bottom: 0; }

.m1 {
  margin-left: 0.3em; }

.m2 {
  margin-left: 0.7em; }

.m3 {
  margin-left: 1.5em; }

.m4 {
  margin-left: 2em; }

.p1 {
  padding: 0.3em; }

.p2 {
  padding: 0.7em; }

.p3 {
  padding: 1.5em; }

.p4 {
  padding: 2em; }

.s1 {
  display: inline-block;
  width: 30px; }

.s2 {
  display: inline-block;
  width: 80px; }

.s3 {
  display: inline-block;
  width: 140px; }

.s4 {
  display: inline-block;
  width: 240px; }

.text {
  color: var(--color-text) !important; }

.text-highlight {
  color: var(--color-highlight) !important; }

.text-success {
  color: var(--color-success) !important; }

.text-warning {
  color: var(--color-warning) !important; }

.text-danger {
  color: var(--color-danger) !important; }

.text-muted {
  color: var(--color-muted) !important; }

.bg-success {
  background-color: var(--color-success) !important; }

.bg-warning {
  background-color: var(--color-warning) !important; }

.bg-danger {
  background-color: var(--color-danger) !important; }

.bg-muted {
  background-color: var(--color-muted) !important; }

.border {
  border: 3px solid var(--color-muted);
  border-radius: 0.7em; }

.container {
  display: flex;
  max-width: 1200px; }
  .container .content {
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column; }
  .container .center {
    text-align: center;
    justify-content: center; }
  .container .right {
    margin-left: auto; }

.fill {
  flex: 1;
  height: 100%; }

.row {
  margin: 0.3em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; }
  .row .item {
    margin-right: 2em; }
  .row i {
    display: inline-block;
    margin-right: 0.3em; }

.column {
  margin: 0.3em;
  display: flex;
  flex-direction: column; }

.bricks .brick {
  padding-right: 0.4em;
  margin-right: 3px;
  background-color: var(--color-text); }

.toast {
  position: fixed;
  bottom: 2em;
  right: 3em;
  display: block;
  padding: 0.5em 1em;
  z-index: 99;
  font-weight: bold;
  color: var(--color-muted);
  border-radius: 0.7em;
  background-color: var(--color-warning); }

.raw_html {
  display: block;
  padding: 0.4em;
  margin-left: 1em;
  border-left: 0.3em solid var(--color-light-red); }
  .raw_html input {
    width: 80%;
    margin-bottom: 1em;
    font-size: 1em;
    padding: 0.3em; }

.fade.show {
  animation: fadein 1.3s; }

.fade.hide {
  animation: fakeout 0.8s; }

.typing::after {
  content: "";
  display: inline-block;
  height: 0.95em;
  width: 0.6em;
  border-right: 0.2em solid var(--color-text);
  animation: typing 1s infinite; }

@keyframes fadein {
  from {
    opacity: 0; }
  to {
    opacity: 1; } }

@keyframes fadeout {
  from {
    opacity: 1; }
  to {
    opacity: 0; } }

@keyframes typing {
  0%,
  100% {
    opacity: 0; }
  50% {
    opacity: 1; } }
