/* Global styles */
:root,
:root.monokai {
    --background-color: #1e1f1c;
    --editor-background: #272822;
    --navbar-text: #ccccc7;
    --inactive-navbar-background: #34352f;
    --active-navbar-text: #ffffff;
    --body-text: #f8f8f2;
    --secondary-text: #cfcfc2;
    --editor-line-number: #90908a;
    --editor-line-number-hover: #c2c2bf;
    --highlighted-line: #3e3d32;
    --line-break: #88846f;
    --accent: #a6e22e;
    --accent-hover: #4e94ce;
    --color-focus: #75715e;
    --color-scrollbar-border: #7f7f7f4d;
    --color-scrollbar-thumb: #79797966;
    --color-scrollbar-thumb-hover: #646464b3;
    --color-scrollbar-thumb-active: #bfbfbf66;
    --color-scrollbar-shadow: #000000;
    --text-selection-color: #878b9180;
    --anchortag-orange-color: #fd971f;
    --color-blockquote: var(--line-break);
    --color-blockquote-symbol: var(--line-break);
    --code-background-color: #22231e;
    --code-color: var(--secondary-text);
    --code-constant: #ae81ff;
    --code-function-color: #66d9ef;
    --code-punctuation: #ffffff;
    --code-string: #e6db74;
    --code-keyword: #f92672;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}

:root.dark-plus {
    --background-color: #252526;
    --editor-background: #1e1e1e;
    --navbar-text: #ffffff80;
    --inactive-navbar-background: #2d2d2d;
    --active-navbar-text: #ffffff;
    --body-text: #d4d4d4;
    --secondary-text: #bbbbbb;
    --editor-line-number: #858585;
    --editor-line-number-hover: #c6c6c6;
    --highlighted-line: transparent;
    --line-break: #6a9955;
    --accent: #4ec9b0;
    --accent-hover: #4e94ce;
    --color-focus: #007fd4;
    --color-scrollbar-border: #7f7f7f4d;
    --color-scrollbar-thumb: #79797966;
    --color-scrollbar-thumb-hover: #646464b3;
    --color-scrollbar-thumb-active: #bfbfbf66;
    --color-scrollbar-shadow: #000000;
    --text-selection-color: #264f78;
    --anchortag-orange-color: #ce9178;
    --color-blockquote: var(--body-text);
    --color-blockquote-symbol: var(--line-break);
    --code-background-color: #1c1c1c;
    --code-color: var(--secondary-text);
    --code-constant: #4fc1ff;
    --code-function-color: #dcdcaa;
    --code-punctuation: #d4d4d4;
    --code-string: #ce9178;
    --code-keyword: #569cd6;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}
:root.light-plus {
    --background-color: #f3f3f3;
    --editor-background: #ffffff;
    --navbar-text: #333333b3;
    --inactive-navbar-background: #ececec;
    --active-navbar-text: #333333;
    --body-text: #000000;
    --secondary-text: #444444;
    --editor-line-number: #237893;
    --editor-line-number-hover: #0b216f;
    --highlighted-line: transparent;
    --line-break: #008000;
    --accent: #267f99;
    --accent-hover: #0000ff;
    --color-focus: #0090f1;
    --color-scrollbar-border: #7f7f7f4d;
    --color-scrollbar-thumb: #64646466;
    --color-scrollbar-thumb-hover: #646464b3;
    --color-scrollbar-thumb-active: #00000099;
    --color-scrollbar-shadow: #dddddd;
    --text-selection-color: #add6ff;
    --anchortag-orange-color: #800000;
    --color-blockquote: var(--body-text);
    --color-blockquote-symbol: #0451a5;
    --code-background-color: #fbfbfb;
    --code-color: var(--secondary-text);
    --code-constant: #098658;
    --code-function-color: #795e26;
    --code-punctuation: #000000;
    --code-string: #a31515;
    --code-keyword: #0000ff;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}
:root.github-dark {
    --background-color: #1b1f23;
    --editor-background: #24292e;
    --navbar-text: #959da5;
    --inactive-navbar-background: #1f2428;
    --active-navbar-text: #e1e4e8;
    --body-text: #e1e4e8;
    --secondary-text: #959da5;
    --editor-line-number: #768390;
    --editor-line-number-hover: #e1e4e8;
    --highlighted-line: #2b3036;
    --line-break: #6a737d;
    --accent: #96d0ff;
    --accent-hover: #4e94ce;
    --color-focus: #005cc5;
    --color-scrollbar-border: #1b1f23;
    --color-scrollbar-thumb: #6a737d33;
    --color-scrollbar-thumb-hover: #6a737d44;
    --color-scrollbar-thumb-active: #6a737d88;
    --color-scrollbar-shadow: #00000088;
    --text-selection-color: #3392ff44;
    --anchortag-orange-color: #9ecbff;
    --color-blockquote: #85e89d;
    --color-blockquote-symbol: var(--color-blockquote);
    --code-background-color: #202428;
    --code-color: var(--secondary-text);
    --code-constant: #79b8ff;
    --code-function-color: #b392f0;
    --code-punctuation: #e1e4e8;
    --code-string: #9ecbff;
    --code-keyword: #f97583;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}

:root.github-light {
    --background-color: #f6f8fa;
    --editor-background: #ffffff;
    --navbar-text: #6a737d;
    --inactive-navbar-background: #eff2f6;
    --active-navbar-text: #2f363d;
    --body-text: #24292e;
    --secondary-text: #6a737d;
    --editor-line-number: #1b1f234d;
    --editor-line-number-hover: #24292e;
    --highlighted-line: #f6f8fa;
    --line-break: #6a737d;
    --accent: #032f62;
    --accent-hover: #0000ff;
    --color-focus: #2188ff;
    --color-scrollbar-border: #ffffff;
    --color-scrollbar-thumb: #959da533;
    --color-scrollbar-thumb-hover: #959da544;
    --color-scrollbar-thumb-active: #959da588;
    --color-scrollbar-shadow: #6a737d33;
    --text-selection-color: #0366d625;
    --anchortag-orange-color: #032f62;
    --color-blockquote: #22863a;
    --color-blockquote-symbol: var(--color-blockquote);
    --code-background-color: #fcfcfc;
    --code-color: var(--secondary-text);
    --code-constant: #79b8ff;
    --code-function-color: #6f42c1;
    --code-punctuation: var(--body-text);
    --code-string: #032f62;
    --code-keyword: #d73a49;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}

:root.solarized-light {
    --background-color: #eee8d5;
    --editor-background: #fdf6e3;
    --navbar-text: #586e75;
    --inactive-navbar-background: #e4ddc9;
    --active-navbar-text: #333333;
    --body-text: #333333;
    --secondary-text: #586e75;
    --editor-line-number: #237893;
    --editor-line-number-hover: #567983;
    --highlighted-line: #eee8d5;
    --line-break: #93a1a1;
    --accent: #268bd2;
    --accent-hover: #0000ff;
    --color-focus: #d3af86;
    --color-scrollbar-border: #7f7f7f4d;
    --color-scrollbar-thumb: #64646466;
    --color-scrollbar-thumb-hover: #646464b3;
    --color-scrollbar-thumb-active: #00000099;
    --color-scrollbar-shadow: #dddddd;
    --text-selection-color: #eee8d5;
    --anchortag-orange-color: #2aa198;
    --color-blockquote: #859900;
    --color-blockquote-symbol: var(--color-blockquote);
    --code-background-color: #f9f1dc;
    --code-color: var(--secondary-text);
    --code-constant: #d33682;
    --code-function-color: #268bd2;
    --code-punctuation: #333333;
    --code-string: #2aa198;
    --code-keyword: #268bd2;
    --font-sans: -apple-system, BlinkMacSystemFont, Segoe WPC, Segoe UI,
        system-ui, Ubuntu, sans-serif;
    --font-mono: Fira Code, monospace;
}

* {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
}

*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button {
    display: none;
}
*::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--color-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--color-scrollbar-thumb-active);
}

*::selection {
    background-color: var(--text-selection-color);
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--body-text);
    font-family: "Fira code", monospace;
    line-height: 24px;
}
body::-webkit-scrollbar {
    border-left: 1px solid var(--color-scrollbar-border);
    width: 14px;
}

.container {
    margin: 4.5rem auto;
    max-width: 81ch;
}

/* Header/Navbar */
nav {
    overflow-x: auto;
}

.nav-list {
    display: flex;
    margin: 0 auto;
    padding-left: 0;
}

.nav-item {
    list-style: none;
}

.nav-item:nth-of-type(3) {
    background-color: var(--editor-background);
    color: var(--active-navbar-text);
}

.nav-item:not(:nth-of-type(3)) {
    margin-right: 0.1rem;
    background-color: var(--inactive-navbar-background);
}

.nav-item a {
    padding-bottom: 0;
    color: var(--body-text);
    font-size: 13px;
    text-decoration: none;
}

.nav-link {
    color: var(--navbar-text);
    font-size: 0.8rem;
    font-family: var(--font-sans);
}

.nav-link div {
    padding: 0.3rem 0 0.3rem 0.5rem;
    width: 7.5rem;
}

.article-tab {
    padding: 0.35rem 0.5rem 0;
    font: italic 0.8rem var(--font-sans);
}

.article-tab a {
    vertical-align: middle;
    margin-left: 0.2rem;
    padding: 0.2rem 0.2rem 0;
    color: var(--navbar-text);
    font-weight: normal;
    text-decoration: none;
}

.article-tab a:hover {
    border-radius: 5px;
    background-color: var(--inactive-navbar-background);
}

.article-name {
    color: var(--active-navbar-text);
}

/* Main */
.main-content {
    padding: 0 65px;
    background-color: var(--editor-background);
}

.editor {
    max-width: 81ch;
    padding-bottom: 5rem;
    color: var(--body-text);
    text-align: left;
}

.article1-header {
    display: flex;
    justify-content: space-between;
    margin-left: 30px;
}

h1 {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 25px;
    color: var(--body-text);
    font-size: 20px;
    font-weight: 700px;
}

header p {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--secondary-text);
}

.time-nolines {
    padding-top: 30px;
    color: var(--secondary-text);
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

.article1-img {
    display: block;
    cursor: zoom-in;
    margin-bottom: 1rem;
    max-width: 100%;
    width: 601px;
}

.main-article h2 {
    padding-top: 1.5rem;
    font-size: 22px;
}

.green-link {
    color: var(--accent);
    text-underline-position: under;
    letter-spacing: 1px;
}

.green-link:hover {
    color: var(--accent-hover);
}

.text-1-content {
    display: flex;
    overflow: hidden;
    color: var(--article3-gray-text);
}

.editor p {
    padding-bottom: 1.5rem;
}

.text-1-content::before {
    content: "> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >";
    margin-right: 2ch;
    width: 1ch;
    height: 0.5rem;
    color: var(--color-blockquote-symbol);
}

.text-3-content p {
    margin: 0;
    padding-bottom: 0;
    color: var(--color-blockquote);
}

.paragraph-no-padding {
    padding-bottom: 0;
}

.paragraph-padding {
    padding-top: 1.5rem;
}

.codes {
    display: block;
    margin: 0 -65px 1.5rem -65px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    line-height: 1.5rem;
}

.scroll-bar {
    overflow: hidden;
}

.scroll-bar::-webkit-scrollbar {
    display: none;
}

code {
    color: var(--code-color);
    font-size: 16px;
    font-family: var(--font-mono);
}

.list {
    list-style-type: none;
}

.list::before {
    content: "- ";
    color: var(--accent);
}

hr {
    overflow: hidden;
    margin: 1.5rem 0;
    border: none;
    white-space: nowrap;
}

hr::after {
    content: "//  ---------------------------------------------------------------------------------------------";
    color: var(--line-break);
    font-variant-ligatures: none;
}

.scroll-bar-2 {
    height: 7.5rem;
}

.red-text {
    color: var(--anchortag-orange-color);
}

.scroll-bar-3 {
    height: 9rem;
}

.keyword {
    color: var(--code-keyword);
}

.code-punctuation {
    color: var(--code-punctuation);
}

.operator {
    color: var(--code-keyword);
}

.code-function {
    color: var(--code-function-color);
}

.code-constant {
    color: var(--code-constant);
}

.code-comment {
    color: var(--line-break);
}

.reduce {
    border-bottom: 1px solid var(--accent);
    color: var(--anchortag-orange-color);
    text-decoration: none;
}

.reduce:hover {
    border-bottom: 1px solid var(--accent-hover);
}

.string {
    color: var(--code-string);
}

.last-paragraph {
    padding-bottom: 0 !important;
}

/* Footer */
footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    display: flex;
    list-style: none;
    margin-bottom: 8px;
    margin-top: 5px;
    padding-left: 0;
}

footer ul a {
    color: var(--accent);
    font-size: 16px;
    text-decoration: underline;
    text-underline-position: under;
}

footer ul span {
    padding-right: 0.5rem;
    color: var(--secondary-text);
}

footer ul a:hover {
    color: var(--accent-hover);
}

.arrow {
    color: var(--accent);
}

.space-before {
    padding-left: 68px;
}

.color-theme-name {
    cursor: pointer;
}

.color-theme-name:hover,
.color-theme-name:hover .arrow {
    color: var(--accent-hover);
}

.color-theme-name:focus-within {
    outline: 1px solid var(--color-focus) !important;
}

.theme-picker {
    position: absolute;
    top: 8px;
    right: 2rem;
    background: none;
    opacity: 0;
    -webkit-appearance: none;
    margin-right: -70px;
    border: none;
    color: var(--body-text);
    font-size: 16px;
    font-weight: 500;
    font-family: "Fira code", monospace;
}

.theme-picker:focus,
.theme-picker:active {
    outline: none;
}

.theme-picker > option {
    background-color: var(--background-color);
    color: var(--secondary-text);
}

.lines {
    position: absolute;
    top: 8.1rem;
    padding: 0 1.5rem;
    color: var(--editor-line-number);
    text-align: right;
}

.lines-1:hover {
    cursor: pointer;
    color: var(--editor-line-number-hover);
}

.lines-1:active,
.lines-1:focus {
    color: var(--editor-line-number-hover);
}

/* blog.html media query */
@media only screen and (max-width: 600px) {
    body::-webkit-scrollbar {
        display: none;
    }

    .container {
        margin: 0;
    }

    nav {
        overflow: auto;
    }

    nav::-webkit-scrollbar {
        display: none;
    }
    .nav-list {
        flex: 0 0 auto;
    }

    .nav-item {
        flex: 0 0 auto;
        min-width: 25%;
    }

    .nav-link div {
        min-width: 0;
    }

    .main-content {
        padding: 0 45px;
        line-height: 20px;
    }

    .main-article {
        font-size: 14px;
    }

    .editor {
        max-width: 44ch;
        padding-left: 0.3rem;
    }

    .article1-header {
        display: block;
        margin-left: 0;
        padding-bottom: 1.5rem;
    }

    .article1-header p {
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: 15px;
    }

    .time-nolines {
        padding-top: 0;
    }

    .line {
        display: none;
    }

    .article img {
        object-fit: contain;
        margin: -10px 0 20px 0;
        width: 18.6rem;
        max-width: 100%;
        height: 10.5rem;
    }

    h1,
    .main-article h2 {
        font-size: 17.5px;
    }

    hr {
        margin-top: 0;
    }
    .codes {
        margin-left: -45px;
        margin-right: -28px;
    }

    code {
        position: relative;
        left: -20px;
    }

    footer {
        display: block;
    }
    footer ul {
        display: block;
        padding-bottom: 7px;
    }
    footer li {
        line-height: 21px;
    }
    footer ul a {
        font-size: 14px;
        letter-spacing: none;
    }
    .dot {
        display: none;
    }
    .color-theme-name {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
    }
    .theme-picker {
        left: 0;
        top: 6.5rem;
        width: 9rem;
    }

    .lines {
        top: 3.7rem;
        padding-right: 0.2rem;
        padding-left: 0.9rem;
        text-align: right;
    }
}
