/**
*  NatanRolnikBlogTheme theme
*/

@media (prefers-color-scheme: light) {
    :root {
        --primary: #105ab4;
        --background: #FFF;
        --text: #000;
        --secondaryText: #888888;
        --tagBackground: #6f6f6f;
        --tagText: #FFF;
        --codeBackground: #f3f3f3;
        --codeBorder: #dcdcdc;
        --codeText: #4a4a4a;
        --separator-color: #f3f3f3;
    }
}

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

body {
    background: var(--background);
    color: var(--text);
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, Inter, Helvetica;
    text-align: center;
    font-size: 1.1em;
    line-height: 150%;
}

.wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
}

img {
    max-width: 80%;
    height: auto;
    margin: 10px auto 0px auto;
    border: 12px solid #eee;
    border-radius: 12px;
    display: block;
}

/* Blockquote */

blockquote {
    margin: 1.25em 0;
    padding: 0.5em 1em;
    border-radius: 0 8px 8px 0;
    border-left: 4px solid var(--primary);
    background-color: var(--codeBackground);
}

/* for image caption */
img + blockquote {
    margin: 0px;
    padding: 0px;
    border-radius: 0px;
    border-left: 0px;
    background-color: inherit;
    font-style: normal;
    display: inherit;
    text-align: center;
    font-size: 80%;
    font-weight: 600;
}

blockquote p {
    margin-top: 0px;
    margin-bottom: 0px;
}

header {
    background-color: #eee;
}

header .wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 1.5em;
    color: #000;
    font-weight: bold;
}

nav {
    margin-top: 20px;
}

ul {
    margin-bottom: 25px;
}

ol {
    margin-bottom: 25px;
}

.content ul {
    text-indent: 30px;
}

.content ol {
    text-indent: 30px;
}

ol {
    list-style-position: inside;
}

nav li {
    display: inline-block;
    margin: 0 7px;
    line-height: 1.5em;
}

nav li a.selected {
    text-decoration: underline;
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
    line-height: 1.2em;
}

h2 {
    margin: 20px 0;
    line-height: 1.2em;
}

hr {
    margin-bottom: 30px;
}

p {
    line-height: 1.6em;
    margin: 25px 0px
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.description {
    margin-bottom: 40px;
}

.item-list > li {
    display: block;
    padding: 20px;
    margin: 15px 0px;
    border-bottom: 2px solid var(--separator-color);
}

.item-list > li:last-child {
    margin-bottom: 0;
}

.item-list h1 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.item-list p {
    margin-bottom: 0;
}

.tag-list {
    margin-bottom: 0px;
}

.tag-list li,
.tag {
    display: inline-block;
    background-color: #000;
    color: #ddd;
    padding: 4px 6px;
    border-radius: 5px;
    margin-right: 5px;
}

.tag-list a,
.tag a {
    text-decoration: none;
    color: white;
}

.item-page .tag-list {
    display: inline-block;
}

.content {
    margin-bottom: 40px;
}

.browse-all {
    display: block;
    margin-bottom: 30px;
}

.all-tags li {
    font-size: 1.4em;
    margin-right: 10px;
    padding: 6px 10px;
}

footer {
    color: #8a8a8a;
}

pre {
    padding: 16px 8px;
    overflow: auto;
    border-radius: 7px;
    background: #eee;
    border: 8px solid #eee;
}

code {
    border-radius: 7px;
    font-family: JetBrains Mono;
    background: #eee;
    border: 8px solid #eee;
    border-top-width: 3px;
    border-bottom-width: 3px;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;

    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

pre code {
    font-size: 0.8333em;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

pre code .keyword {
    color: #e73289;
}

pre code .type {
    color: #8281ca;
}

pre code .call {
    color: #348fe5;
}

pre code .property {
    color: #21ab9d;
}

pre code .number {
    color: #db6f57;
}

pre code .string {
    color: #FC6A5D;
}

pre code .comment {
    color: #757575;
}

pre code .dotAccess {
    color: #00A76E;
}

pre code .preprocessing {
    color: #b68a00;
}

.twitter-tweet {
    margin-left: auto;
    margin-right: auto;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #0896de;
        --background: #222;
        --text: #ededed;
        --secondaryText: #C0C0C0;
        --tagBackground: #4c4c4c;
        --tagText: #ededed;
        --codeBackground: #1b1b1b;
        --codeBorder: #252525;
        --codeText: #B9B9B9;
        --separator-color: #555;
    }

    body,
    header .site-name {
        color: #ddd;
    }

    header {
        background-color: #000;
    }

    img {
        border: 12px solid #000;
    }

    code {
        background: #000;
        border: 8px solid #000;
        border-top-width: 3px;
        border-bottom-width: 3px;
    }

    pre {
        background: #000;
        border: 8px solid #000;
    }
}

@media(max-width: 600px) {
    .wrapper {
        padding: 40px 20px;
    }

    body {
        font-size: 1em;
    }

    h1 {
        font-size: 1em;
    }

    h2 {
        font-size: 1em;
    }

    pre code {
        font-size: 0.875em;
    }
}
