:root
{
    --font-size-normal:              15px;
    --font-size-code:                13.5px;
    --font-size-side-dock:           13.5px;
    --font-size-side-dock-title:     15px;
    --font-size-status-bar:          12px;
    --font-size-h1:                  23px;
    --font-size-h2:                  22px;
    --font-size-h3:                  21px;
    --font-size-h4:                  20px;
    --font-size-h5:                  19px;
    --font-size-h6:                  18px;
    --font-family-editor:            Avenir, Avenir Next, sans-serif;
    --font-family-preview:           Avenir, Avenir Next, sans-serif;
} 

.theme-light,
.theme-dark {
  --background-primary: #364549;
  --background-primary-alt: #2C383A;
  --background-secondary: #415358;
  --background-secondary-alt: #2C383A;
  --background-accent: #fff;
  --background-modifier-border: #f2e5bc;
  --background-modifier-form-field: rgba(0, 0, 0, 0.2);
  --background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.5);
  --background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
  --background-modifier-success: #197300; /*no sure*/
  --background-modifier-error: #3d0000; 
  --background-modifier-error-rgb: 61, 0, 0;
  --background-modifier-error-hover: #470000;
  --background-modifier-cover: rgba(0, 0, 0, 0.6);
  --text-accent: #fe8019;
  --text-accent-hover: #83a598;
  --text-normal: #fbf1c7;
  --text-muted: #d5c4a1;
  --text-faint: #bdae93;
  --text-highlight-bg: rgba(181, 118, 20, 0.5);
  --text-error: #800000;
  --text-error-hover: #990000;
  --text-selection: rgba(89, 75, 95, 0.99); 
  --text-on-accent: #fbf1c7;
  --interactive-normal: #b57614;
  --interactive-hover: #fe8019;
  --interactive-accent: #b57614;
  --interactive-accent-rgb: 123, 108, 217;
  --interactive-accent-hover: #fe8019;
  --scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.4);
  --scrollbar-bg: rgba(0, 0, 0, 0.05);
  --scrollbar-thumb-bg: rgba(0, 0, 0, 0.2);

  --text-title-h1:              #d65d0e;
  --text-title-h2:              #d79921;
  --text-title-h3:              #98971a;
  --text-title-h4:              #689d6a;
  --text-title-h5:              #458588;
  --text-title-h6:              #b16286;
  --inline-code:                #b48ead;
  --code-block:                 #b48ead;
  --pre-code-bg:                rgba(0, 0, 0, 0.2);
  --blockquote-border:          #b57614;
  --vim-cursor:                 #d65d0e;
  --border-color:               #504945; 
  --hover-bg:                   rgba(0, 0, 0, 0.5); 
}





































.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle, 
.workspace-split.mod-right-split > .workspace-leaf-resize-handle{
  width: 1px !important;
  background-color: var(--border-color);
}


.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle{
  height: 1px !important;
  background-color: var(--border-color);
}


.workspace-ribbon.is-collapsed {
  background-color: var(--background-primary-alt);
}


.workspace-split.mod-root .workspace-split.mod-vertical .workspace-leaf-content,
.workspace-split.mod-vertical > .workspace-split,
.workspace-split.mod-vertical > .workspace-leaf,
.workspace-tabs{
  padding-right: 0px;
}


.status-bar{
  font-size: var(--font-size-status-bar);
  background-color: var(--background-secondary-alt);
  border-top: 0px;
}

.document-search-container{
  border-top: 0px;
  border-right: 0px;
  z-index: inherit;
}

.workspace-ribbon.mod-left.is-collapsed{
  border-right: 1px solid var(--border-color);
}

.workspace-ribbon.mod-right.is-collapsed{
  border-left: 1px solid var(--border-color);
}






a.tag:hover {
  color: var(--text-accent) !important;
}


.cm-hashtag, a.tag {
  color: var(--text-accent-hover) !important;
  text-decoration: none !important;
  font-style: normal !important;
}


.tag[href="#obsidian"] { 


  background-color: black;
  border: none;
  color: white !important;
  padding: 0px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0px 0px;
  
  border-radius: 15px;
}






a,
.internal-link,
.cm-hmd-internal-link,
.cm-link,
.cm-formatting-link,
.cm-url {
  text-decoration: none !important;
}


.cm-s-obsidian span.cm-string{
  color: var(--text-accent-hover) !important;
}


a:not(.internal-link) {
  font-style: italic;
}


.cm-s-obsidian pre.HyperMD-footnote span.cm-hmd-footnote,
.cm-s-obsidian span.cm-footref {
  color: var(--text-accent) !important; 
}







.cm-fat-cursor .CodeMirror-cursor, .cm-animate-fat-cursor
 {
  width: 0.5em;
  background: var(--vim-cursor);
  opacity: 60% !important;
}






.app-container {
  font-family: var(--font-family-preview);
}


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


.cm-s-obsidian, .mod-single-child .cm-s-obsidian {
  font-family: var(--font-family-editor);
  font-size: var(--font-size-normal);
  padding-top: 5px;
  padding-left: 1% !important;
  padding-right: 1% !important;
}


.markdown-preview-view, .mod-single-child .markdown-preview-view {
  font-family: var(--font-family-editor);
  font-size: var(--font-size-normal);
  padding-top: 0px;
  padding-left: 2% !important;
  padding-right: 1% !important;
}


strong, .cm-strong {
  font-weight: 600;
}


em, .cm-em {
  color: var(--text-muted);
  font-style: italic;
}


s, .cm-strikethrough {
  color: var(--text-muted);
}


.cm-s-obsidian span.cm-formatting-list {
  color: var(--text-normal) !important;
}


.markdown-preview-view hr {
  background-color: var(--text-faint) !important;
}


img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img:hover {
  transform: scale(1.04);
  transition: transform 0.25s ease-in-out 0s;
}


.community-theme img:hover{
  transform: none;
}


.cm-formatting-header {
  font-size: 1em !important;
}


.cm-formatting-emoji{
  color: var(--text-normal) !important;
}


.CodeMirror-dialog {
  background-color: var(--background-secondary);
  height: 2em;
}

.CodeMirror-dialog input{
  font-family: var(--font-family-editor);
  width: 90%;
  padding-left: 1px;
}







.cm-header-1, .markdown-preview-view h1
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h1);
  color: var(--text-title-h1);
}

.cm-header-2, .markdown-preview-view h2
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h2);
  color: var(--text-title-h2);
}

.cm-header-3, .markdown-preview-view h3
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h3);
  color: var(--text-title-h3);
}

.cm-header-4, .markdown-preview-view h4
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h4);
  color: var(--text-title-h4);
}

.cm-header-5, .markdown-preview-view h5
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h5);
  color: var(--text-title-h5);
}

.cm-header-6, .markdown-preview-view h6
{
  font-family: var(--font-family-editor);
  font-weight: 500;
  font-size: var(--font-size-h6);
  color: var(--text-title-h6);
}






pre code {
  font-family: monaco !important;
  font-size: var(--font-size-code) !important;
  padding: 6px !important;
  line-height: normal;
  display: block;
  color: var(--code-block)  !important;
}


.markdown-preview-view pre {
  padding: 0px !important;
}


.markdown-preview-view code
{
  font-size: 90%;
  line-height: 1.7;
}


code{
  color: var(--inline-code) !important;
  bottom: 0px !important;
}


.theme-dark code[class*="language-"],
.theme-dark pre[class*="language-"],
.theme-light code[class*="language-"],
.theme-light pre[class*="language-"]
{
    text-shadow: none !important;
    color: var(--text-faint) !important;
}

.theme-light code[class*="language-"],
.theme-light pre[class*="language-"]
{
  background-color: var(--background-primary-alt);
}
.theme-light .token.operator,
.theme-light .token.entity,
.theme-light .token.url,
.theme-light .language-css .token.string,
.theme-light .style .token.string {
  background-color: transparent;
}

.theme-dark .token.function,
.theme-dark .token.class-name, 
.theme-light .token.function,
.theme-light .token.class-name {
  color: #DD4A68;
}

.theme-light .token.comment,
.theme-light .token.prolog,
.theme-light .token.doctype,
.theme-light .token.cdata {
  color: slategray;
}
.theme-light .token.punctuation {
  color: #f8f8f2;
}
.theme-light .token.namespace {
  opacity: 0.7;
}
.theme-light .token.property,
.theme-light .token.tag,
.theme-light .token.constant,
.theme-light .token.symbol,
.theme-light .token.deleted {
  color: #f92672;
}
.theme-light .token.boolean,
.theme-light .token.number {
  color: #ae81ff;
}
.theme-light .token.selector,
.theme-light .token.attr-name,
.theme-light .token.string,
.theme-light .token.char,
.theme-light .token.builtin,
.theme-light .token.inserted {
  color: #a6e22e;
}
.theme-light .token.operator,
.theme-light .token.entity,
.theme-light .token.url,
.theme-light .language-css .token.string,
.theme-light .style .token.string,
.theme-light .token.variable {
  color: #f8f8f2;
}
.theme-light .token.atrule,
.theme-light .token.attr-value{
  color: #e6db74;
}
.theme-light .token.keyword {
  color: #66d9ef;
}
.theme-light .token.regex,
.theme-light .token.important {
  color: #fd971f;
}
.theme-light .token.important,
.theme-light .token.bold {
  font-weight: bold;
}
.theme-light .token.italic {
  font-style: italic;
}
.theme-light .token.entity {
  cursor: help;
}






.cm-s-obsidian span.cm-inline-code,
.cm-s-obsidian span.cm-inline-code.cm-hmd-indented-code,
.cm-s-obsidian span.cm-inline-code:not(.cm-formatting):not(.cm-hmd-indented-code)
{
  background-color: var(--pre-code-bg);
  color: var(--inline-code) !important;
  bottom: 0px !important;
}

 
.cm-s-obsidian pre.HyperMD-codeblock {
  font-family: monaco !important;
  font-size: var(--font-size-code) !important;
  padding: 1px !important;
  display: block;
  color: var(--code-block) !important;
  font-weight: 500;
}


.HyperMD-codeblock-bg{
  border: 0px !important;
}




.CodeMirror-activeline .CodeMirror-linebackground{
  background-color: var(--text-selection) !important;
}





.cm-s-obsidian span.cm-formatting-link {
  color: var(--text-accent) !important;
}






.cm-quote {
  background-color: var(--pre-code-bg);
  color: var(--text-normal) !important;
  font-style: italic;
}


.markdown-preview-view blockquote {
  background-color: var(--pre-code-bg);
  border: 0px solid;
  border-color: var(--blockquote-border) !important;
  border-left-width: 4px !important;
  border-radius: 0 8px 8px 0;
  line-height: 1.5em;
  margin: 0 10px;
  font-style: italic;
}





th {
  font-weight: 800 !important;
}

.markdown-preview-view th {
    font-weight: 800;
    background-color: var(--background-secondary) !important;
}

thead {
  border-bottom: 3px solid var(--background-modifier-border);
}

.table {
  padding: 4px;
  line-height: normal;
  display: block;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}





.markdown-preview-view .task-list-item-checkbox:checked::before {
  content: '✓';
  position: absolute;
  color: var(--text-accent);
  font-size:1em;
  line-height: 1.25em;
  width:1.2em;
  text-align:center;
  text-shadow: 0 0 0.1em var(--text-accent);
}

.markdown-preview-view .task-list-item-checkbox {
  -webkit-appearance: none;
  top: 0.2em !important;
  right: 4px;
  box-sizing: border-box;
  border: 1px solid  var(--text-muted);
  position: relative;
  width: 1.25em;
  height: 1.25em;
  margin: 0;
  box-shadow: 0 0 0.1em var(--text-muted);
}

.checkbox-container {
    background-color: var(--background-primary);
}






.cm-s-obsidian span.cm-tag {
  color: var(--inline-code) !important;
}


.cm-s-obsidian span.cm-attribute {
  color: var(--text-normal) !important;
}


.cm-s-obsidian span.cm-comment {
  color: var(--text-faint) !important;
}





.popover{
  border: 1px solid var(--border-color);
  background-color: var(--background-secondary);
}







.search-result {
  background-color: var(--background-primary);
  border-radius: 5px;
}


.search-result-file-title {  
  font-size: var(--font-size-side-dock-title) ;
}

.search-result-file-matches, .search-empty-state {
  font-size: var(--font-size-side-dock);
}



.search-result-file-match {
  padding: 0px 10px;
}

.nav-file-title, .nav-folder-title {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.nav-file.is-active > .nav-file-title {
  background-color: var(--hover-bg) !important; 
}



.workspace-leaf-content[data-type="backlink"] .view-content{
  background-color: var(--background-secondary);
}

.workspace-leaf-content[data-type="tag"] .tag-pane-tag-count,
.workspace-leaf-content[data-type="tag"] .tag-pane-tag-text {  
  font-size: var(--font-size-side-dock);
}

.workspace-leaf-content[data-type="backlink"] .search-result-file-matches {
  font-size: var(--font-size-side-dock);
}





.markdown-embed-title { display: none; }
.markdown-preview-view .markdown-embed-content>:first-child { margin-top: 0;}
.markdown-preview-view .markdown-embed-content>:last-child { margin-bottom: 0;}


.markdown-preview-view .markdown-embed { border:none; padding:0; margin:0; }
.markdown-preview-view .markdown-embed-content 
{ 
  max-height: unset;
  background-color: var(--background-secondary);
}


.markdown-embed-link {
color: var(--text-faint) !important;
}

.markdown-embed-link:hover {
color: var(--text-accent) !important;
}




.graph-view.color-circle,
.graph-view.color-fill-highlight,
.graph-view.color-line-highlight
{
    color: var(--text-accent) !important;    
}

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

.graph-view.color-line {
    color: var(--text-accent-hover);
}

.graph-view.color-fill{
    color: var(--text-muted);
}

.workspace-leaf-content[data-type = "graph"] .view-content{
  background-color: var(--background-primary);
}





.modal.mod-settings button:not(.mod-cta):hover {
  background-color: var(--interactive-accent-hover);
}










.markdown-source-view.is-readable-line-width .CodeMirror, 
.markdown-preview-view.is-readable-line-width .markdown-preview-section {
  max-width: 42vmax; 
  margin-left: auto;
  margin-right: auto;
}








.theme-dark .view-header {
  background-color: var(--background-primary) !important;   
  border-top: 1px solid var(--border-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.theme-dark .view-header-title-container:after {
  background: linear-gradient(to bottom, transparent, var(--background-primary)) !important;
}

.theme-dark .workspace-leaf.mod-active .view-header {
  background-color: var(--background-secondary-alt) !important;  
  border-top: 0px !important;
  border-bottom: 3px solid var(--interactive-accent) !important;
}

.workspace-leaf.mod-active .view-header-title-container:after {
  background: linear-gradient(to bottom, transparent, var(--background-secondary-alt)) !important;
}

.workspace-leaf.mod-active .view-header-title,
.workspace-leaf.mod-active .view-header-icon
{
  color: var(--background-modifier-border);
}

.view-header-title, .view-header-icon, .view-action{
  color: var(--text-faint);
}









.theme-light .mod-root.workspace-split.mod-vertical { 
  overflow-x:auto; 
  --sticky-left: 25px; 
}
.theme-light .mod-root.workspace-split.mod-vertical > div { 
  min-width: calc(700px + var(--sticky-left)); 
  box-shadow: 0px 0px 5px 5px rgba(0,0,0,0.2);
  position:sticky;
  left:0;
}




.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-8) { left: calc(var(--sticky-left) * 0); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-7) { left: calc(var(--sticky-left) * 1); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-6) { left: calc(var(--sticky-left) * 2); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-5) { left: calc(var(--sticky-left) * 3); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-4) { left: calc(var(--sticky-left) * 4); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-3) { left: calc(var(--sticky-left) * 5); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-2) { left: calc(var(--sticky-left) * 6); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-1) { left: calc(var(--sticky-left) * 7); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+0) { left: calc(var(--sticky-left) * 8); }
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+1) { left: calc(var(--sticky-left) * 9); }




.theme-light .workspace-leaf-content {
  padding-left: var(--sticky-left);
  position: relative;
}


.theme-light .view-header {
  writing-mode: vertical-lr;
  border-right: 1px solid var(--border-color);
  border-left: 0px !important;
  border-top: none;
  border-bottom: none;
  height: auto;
  width: 36px;
  position: absolute;
  left:0;
  top:0;
  bottom:0;
  background-color: var(--background-primary) !important;
}


.theme-light .view-header-title-container:after {
  width: 100%;
  height: 30px;
  top:unset;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--background-primary))!important;
}


.theme-light .view-header-title-container {
  height: unset;
  padding-left: unset;
  padding-top: 5px;
}


.theme-light .workspace-leaf.mod-active .view-header {
  background-color: var(--background-secondary-alt) !important; 
  border-right: 3px solid var(--interactive-accent) !important;
  border-left: 0px;
  border-bottom: none;
}


.theme-light .view-header-icon, .theme-light .view-actions {
  padding: 10px 5px;
}
.theme-light .view-action {
  margin: 8px 0;
}


.theme-light .view-content {
  height: 100%;
}



.theme-light .workspace-fake-target-overlay {
  background-color: var(--background-primary);
}


.theme-light .markdown-preview-view, .theme-light .mod-single-child .markdown-preview-view {
  font-family: var(--font-family-editor);
  font-size: var(--font-size-normal);
  padding-top: 5px;
  padding-left: 4% !important;
  padding-right: 2% !important;
}





ul ul { position: relative; }
ul ul::before {
  content:'';
  border-left: 1px solid var(--border-color);
  position: absolute;
}
ul ul::before { left: -1em; top: 0; bottom: 0; }


ul .task-list-item ul::before {left: 0.15em !important}




.cm-hmd-list-indent .cm-tab::before{
    content: ' ';
    border-left: 1px solid var(--border-color);
    position: absolute;
    height: 100%;
}
















