:root {
    --curr-prism-comment: var(--bright-prism-comment);
    --curr-prism-function: var(--bright-prism-function);
    --curr-prism-keyword: var(--bright-prism-keyword);
    --curr-prism-number: var(--bright-prism-number);
    --curr-prism-parameter: var(--bright-prism-parameter);
    --curr-prism-property: var(--bright-prism-property);
    --curr-prism-selection: var(--bright-prism-selection);
    --curr-prism-selector: var(--bright-prism-selector);
	--bright-prism-comment: #007500; --dark-prism-comment: #1f9a50;
	--bright-prism-function: #dd4a68; --dark-prism-function: #ff5a7b;
	--bright-prism-keyword: #1a1aa6; --dark-prism-keyword: #b48fff;
	--bright-prism-number:#ff6c00;--dark-prism-number:#ff840f;
	--bright-prism-parameter: #f59; --dark-prism-parameter: #f59;
	--bright-prism-property: #905; --dark-prism-property: #cea40d;
	--bright-prism-selection: #b3d4fc; --dark-prism-selection: #000;
	--bright-prism-selector: #c51916;  --dark-prism-selector: #f18b8b;
}
.dark {
    --curr-prism-comment: var(--dark-prism-comment);
    --curr-prism-function: var(--dark-prism-function);
    --curr-prism-keyword: var(--dark-prism-keyword);
    --curr-prism-number: var(--dark-prism-number);
    --curr-prism-parameter: var(--dark-prism-parameter);
    --curr-prism-property: var(--dark-prism-property);
    --curr-prism-selection: var(--dark-prism-selection);
    --curr-prism-selector: var(--dark-prism-selector);
}
@media(prefers-color-scheme: dark){
    .auto {
        --curr-prism-comment: var(--dark-prism-comment);
        --curr-prism-function: var(--dark-prism-function);
        --curr-prism-keyword: var(--dark-prism-keyword);
        --curr-prism-number: var(--dark-prism-number);
        --curr-prism-parameter: var(--dark-prism-parameter);
        --curr-prism-property: var(--dark-prism-property);
        --curr-prism-selection: var(--dark-prism-selection);
        --curr-prism-selector: var(--dark-prism-selector);
    }
}
code[class*="language-"],pre[class*="language-"] {
    color: var(--curr-background-contrast);
    background: none;
    text-shadow: 0 1px var(--curr-background);
    font-family: 'Fira Code', Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
	margin-left: 0;
	/* padding-left: 4em; */
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
code[class*="language-"] {
    padding-top: 0!important;
    padding-bottom: 0!important;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] *::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] *::-moz-selection {
    text-shadow: none;
    background: var(--curr-prism-selection);
}

pre[class*="language-"]::selection,
pre[class*="language-"] *::selection,
code[class*="language-"]::selection,
code[class*="language-"] *::selection {
    text-shadow: none;
    background: var(--curr-prism-selection);
}

@media print {
    code[class*="language-"],pre[class*="language-"] {
        text-shadow: none;
    }
}

pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    /* this calc is sub horizonal padding 1em x 2 */
    width: calc(100% - 2em);
}

:not(pre) > code[class*="language-"],pre[class*="language-"] {
    background: var(--curr-background-active);
    border-radius: 5px
}

:not(pre) > code[class*="language-"] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

.token.comment,.token.prolog,.token.doctype,.token.cdata {
    color: var(--curr-prism-comment);
}

.token.punctuation {
    color: #999;
}

.namespace {
    opacity: .7;
}

.token.parameter, .token.parameter.variable {
	color: var(--curr-prism-parameter);
}

.token.property,.token.tag,.token.boolean,.token.constant,.token.symbol,.token.deleted {
    color: var(--curr-prism-property)
}

.token.number {
    color: var(--curr-prism-number);
}
.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted {
    color: var(--curr-prism-selector)
}

.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string {
    color: #9a6e3a;
}

.token.atrule,.token.attr-value,.token.keyword {
    color: var(--curr-prism-keyword);
}

.token.function,.token.class-name {
    color: var(--curr-prism-function);;
}

.token.regex,.token.important,.token.variable {
    color: #e90;
}

.token.important,.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

pre.line-numbers {
    position: relative;
    /*padding-left: 3.8em;*/
    counter-reset: linenumber;
}

pre.line-numbers > code {
    position: relative;
    white-space: inherit;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.line-numbers-rows > span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: #999;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

div.code-toolbar {
	/*background: var(--curr-background-active);*/
    /*margin: 1em 2em;*/
	margin-bottom: 1.5em;
    text-overflow: clip;
    display: -webkit-box;
    word-break: break-word;
    position: relative;
}

div.code-toolbar > .toolbar {
    position: absolute;
    top: .3em;
    right: .2em;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

div.code-toolbar:hover > .toolbar {
    opacity: 1;
}

div.code-toolbar > .toolbar .toolbar-item {
    display: inline-block;
}

div.code-toolbar > .toolbar a {
    cursor: pointer;
}

div.code-toolbar > .toolbar button {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    line-height: normal;
    overflow: visible;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

div.code-toolbar > .toolbar a,div.code-toolbar > .toolbar button,div.code-toolbar > .toolbar > .toolbar-item>span {
    color: #bbb;
    font-size: .8em;
    padding: 0 .5em;
    background: #f8f8f8;
    background: rgba(224,224,224,0.2);
    box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
    border-radius: .5em;
}

div.code-toolbar > .toolbar a:hover,div.code-toolbar > .toolbar a:focus,div.code-toolbar > .toolbar button:hover,div.code-toolbar > .toolbar button:focus,div.code-toolbar > .toolbar span:hover,div.code-toolbar > .toolbar span:focus {
    color: inherit;
    text-decoration: none;
}

.max-img::-webkit-scrollbar-track-piece {
    background: #eee
}

.max-img::-webkit-scrollbar {
    width: 8px;
    height: 6px
}

.max-img::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #777
}

.max-img::-webkit-scrollbar-thumb:hover {
    background-color: #bbb
}

pre::-webkit-scrollbar-track-piece, div.code-toolbar::-webkit-scrollbar-track-piece{
}

pre::-webkit-scrollbar, div.code-toolbar::-webkit-scrollbar {
    width: 8px;
    height: 6px
}
pre::-webkit-scrollbar-thumb, div.code-toolbar::-webkit-scrollbar-thumb {
    border-radius: 4px;
}
pre:hover::-webkit-scrollbar-thumb, div.code-toolbar:hover::-webkit-scrollbar-thumb {
    background-color: var(--curr-text-tint)
}

pre::-webkit-scrollbar-thumb:hover {
    background-color: var(--curr-text-normal)
}

code::-webkit-scrollbar-track-piece {
}

code::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

code::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: var(--curr-text-tint)
}

code::-webkit-scrollbar-thumb:hover {
    background-color: var(--curr-text-normal)
}

html::-webkit-scrollbar-track-piece {
}

html::-webkit-scrollbar {
    width: 8px;
    height: 6px
}

html::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: var(--curr-text-tint)
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--curr-text-normal)
}

pre.line-numbers {
    padding-bottom: .8em;
    /*padding-left: 3.3em;*/
    counter-reset: linenumber
}

pre.line-numbers>code {
    white-space: inherit;
    padding-left: 4em;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -0.1em;
    width: 3em;
    letter-spacing: -1px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.line-numbers-rows>span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber
}

.line-numbers-rows>span:before {
    content: counter(linenumber);
    color: var(--curr-background-contrast);
    display: block;
    padding-right: .9em;
    text-align: right;
}
