:root {
    --background-color: #e2e2e2;
    --secondary-background-color: #f9f9f9;
    --foreground-color: #000;
    --hr-color: #e2e2e2;
    --link-color: #778087;

    --box-background-color: #fff;
    --box-border-color: #e2e2e2;

    --code-background-color: #f5f5f5;
}

html {
    padding: 0px;
    margin: 0px;
}

body {
    padding: 0px;
    margin: 0px;
    font-family: "Helvetica Neue", "Luxi Sans", Tahoma, "Hiragino Sans GB", STHeiti !important;

    background-color: var(--background-color);
}

h1 {
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
    margin: 5px 0px 20px 0px;
    padding: 0px;
    word-break: break-word;
    hyphens: auto;
}

hr {
    border: none;
    height: 1px;
    color: var(--hr-color);
    background-color: var(--hr-color);
    margin-bottom: 1em;
}

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

a:hover {
    color: #4d5256;
    text-decoration: underline;
}

a.dark:link, a.dark:visited, a.dark:active {
    color: gray;
    text-decoration: none;
}

a.dark:hover {
    color: #385f8a;
    text-decoration: none;
}

pre {
    font-family: 'Panic Sans', 'Consolas', 'DejaVu Sans Mono',
                 'Bitstream Vera Sans Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.015em;
    line-height: 120%;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    background-color: var(--code-background-color);
    padding: 0.5em;
}

ul {
    list-style: square;
    margin: 1em 0px 1em 1em;
    padding: 0px;
}

ul li, ol li {
    padding: 0px;
    margin: 0px;
}

table {
  padding: 0;border-collapse: collapse; }
  table tr {
    border-top: 1px solid #cccccc;
    background-color: white;
    margin: 0;
    padding: 0; }
    table tr:nth-child(2n) {
      background-color: #f8f8f8; }
    table tr th {
      font-weight: bold;
      border: 1px solid #cccccc;
      margin: 0;
      padding: 6px 13px; }
    table tr td {
      border: 1px solid #cccccc;
      margin: 0;
      padding: 6px 13px; }
    table tr th :first-child, table tr td :first-child {
      margin-top: 0; }
    table tr th :last-child, table tr td :last-child {
      margin-bottom: 0; }

#Wrapper {
    text-align: center;
}

#Main {
    width: 728px;
    margin: 20px auto 20px auto;
    text-align: left;
}

.box {
    background-color: var(--box-background-color);
    color: var(--foreground-color);
    border-radius: 3px;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--box-border-color);
}

.inner {
    padding: 10px;
    font-size: 12px;
    line-height: 150%;
    text-align: left;
}

.cell {
    padding: 10px 15px 10px 15px;
    font-size: 12px;
    line-height: 120%;
    text-align: left;
    border-bottom: 1px solid var(--box-border-color);
}

.secondary {
    padding: 10px;
    font-size: 12px;
    line-height: 150%;
    text-align: left;
    background-color: var(--secondary-background-color);
}

.note_author {
    font-size: 14px;
    line-height: 100%;
}

.note_content {
    font-size: 15px;
    line-height: 150%;
}

.note_content>*:first-child {
    margin-top: 0 !important;
}

.note_content>*:last-child {
    margin-bottom: 0 !important;
}

.note_content img {
    max-width: 100%;
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 20px;
}

.gray {
    color: #999;
}

code {
    white-space: pre-wrap;
    font-family: 'Panic Sans', 'Consolas', 'DejaVu Sans Mono',
                 'Bitstream Vera Sans Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #323639;
        --secondary-background-color: #292a2d;
        --foreground-color: #f8f9fa;
        --hr-color: #1d1e20;
        --link-color: #89b3f7;

        --box-background-color: #202124;
        --box-border-color: #1d1e20;

        --code-background-color: #1d1f21;
    }
}