@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap");

:root {
  --ls-font-family: "Roboto", sans-serif;
  --verse: 185, 100%;
  --warn: 46, 74%;
  --important: 338, 80%;
  --tip: 209, 87%;
  --note: 210, 9%;
  --caution: 376, 100%;
  --pinned: 224, 88%;
  --example: 213, 20%;
}

.dark-theme,
html[data-theme="dark"] {
  --ls-primary-background-color: #21232b;
  --ls-secondary-background-color: #282a33;
  --ls-tertiary-background-color: rgba(40, 42, 51, 0.95);
  --ls-quaternary-background-color: rgb(40, 42, 51, 0.75);
  --ls-table-tr-even-background-color: rgba(255, 255, 255, 0.05);
  --ls-active-primary-color: var(--ls-secondary-background-color);
  --ls-active-secondary-color: #eeffff;
  --ls-page-properties-background-color: var(--ls-secondary-background-color);
  --ls-block-properties-background-color: var(--ls-primary-background-color);
  --ls-block-ref-link-text-color: var(--ls-link-text-color);
  --ls-search-background-color: var(--ls-secondary-background-color);
  --ls-border-color: var(--ls-primary-text-color);
  --ls-secondary-border-color: var(--ls-primary-text-color);
  --ls-guideline-color: rgba(255, 255, 255, 0.3);
  --ls-menu-hover-color: var(--ls-secondary-background-color);
  --ls-primary-text-color: rgba(255, 255, 255, 0.87);
  --ls-secondary-text-color: rgba(255, 255, 255, 0.6);
  --ls-title-text-color: var(--ls-primary-text-color);
  --ls-link-text-color: #b2ccdf;
  --ls-link-text-hover-color: #fff;
  --ls-link-ref-text-color: var(--ls-link-text-color);
  --ls-link-ref-text-hover-color: var(--ls-link-text-hover-color);
  --ls-tag-text-color: var(--ls-link-text-color);
  --ls-tag-text-hover-color: var(--ls-link-text-hover-color);
  --ls-slide-background-color: var(--ls-primary-background-color);
  --ls-block-bullet-border-color: rgba(255, 255, 255, 0.25);
  --ls-block-bullet-color: var(--ls-link-text-color);
  --ls-block-highlight-color: rgba(255, 255, 255, 0.1);
  --ls-selection-background-color: rgba(255, 255, 255, 0.1);
  --ls-page-checkbox-color: rgba(255, 255, 255, 0.1);
  --ls-page-checkbox-border-color: var(--ls-primary-text-color);
  --ls-page-blockquote-color: var(--ls-primary-text-color);
  --ls-page-blockquote-bg-color: var(--ls-secondary-background-color);
  --ls-page-blockquote-border-color: var(--ls-border-color);
  --ls-page-inline-code-color: var(--ls-primary-text-color);
  --ls-page-inline-code-bg-color: rgba(255, 255, 255, 0.2);
  --ls-page-title-size: 2rem;
  --ls-scrollbar-foreground-color: rgba(255, 255, 255, 0.15);
  --ls-scrollbar-background-color: var(--ls-primary-background-color);
  --ls-scrollbar-thumb-hover-color: rgba(255, 255, 255, 0.3);
  --ls-head-text-color: var(--ls-link-text-color);
  --ls-icon-color: var(--ls-link-text-color);
  --ls-search-icon-color: var(--ls-link-text-color);
  --ls-a-chosen-bg: var(--ls-secondary-background-color);
  --ls-right-sidebar-code-bg-color: var(--ls-page-inline-code-bg-color);
  --color-level-1: var(--ls-secondary-background-color);
  --color-level-2: var(--ls-tertiary-background-color);
  --color-level-3: var(--ls-quaternary-background-color);
}

.white-theme,
html[data-theme="light"] {
  --ls-primary-background-color: #fafafa;
  --ls-secondary-background-color: #ededed;
  --ls-tertiary-background-color: rgba(237, 237, 237, 0.9);
  --ls-quaternary-background-color: rgba(237, 237, 237, 0.75);
  --ls-page-title-size: 2rem;
  --ls-title-text-color: var(--ls-primary-text-color);
  --ls-page-properties-background-color: var(--ls-secondary-background-color);
  --ls-block-properties-background-color: var(--ls-secondary-background-color);
  --ls-block-ref-link-text-color: var(--ls-link-text-color);
  --ls-search-background-color: var(--ls-secondary-background-color);
  --ls-page-inline-code-color: var(--ls-primary-text-color);
  --ls-page-inline-code-bg-color: rgba(0, 0, 0, 0.2);
  --ls-page-title-size: 2rem;
  --ls-scrollbar-foreground-color: rgba(0, 0, 0, 0.2);
  --ls-scrollbar-background-color: var(--ls-primary-background-color);
  --ls-scrollbar-thumb-hover-color: rgba(0, 0, 0, 0.3);
  --ls-head-text-color: var(--ls-link-text-color);
  --ls-icon-color: var(--ls-link-text-color);
  --ls-search-icon-color: var(--ls-link-text-color);
  --ls-a-chosen-bg: var(--ls-secondary-background-color);
  --ls-selection-background-color: rgba(0, 0, 0, 0.1);
  --ls-block-highlight-color: rgba(0, 0, 0, 0.05);
}

/* Container */
#main-content-container:focus-visible {
  outline-color: transparent;
}

/* Command Palette */
.cp__palette-main .chosen {
  background: transparent;
}

/* Heading */
.ls-block h5 {
  font-size: 1em;
}

/* submit button in calendar etc */
.bg-indigo-600 {
  background-color: var(--ls-link-text-color);
  color: var(--ls-primary-background-color);
}

.dark-theme .hover\:bg-indigo-700:hover,
.hover\:bg-indigo-500:hover {
  background-color: var(--ls-primary-text-color);
}

/* pre */
.hljs {
  background: transparent;
}

/* hints */
.dark-theme .Tooltip__label {
  width: 11ch;
  border: 1px solid var(--ls-primary-text-color);
  background: var(--ls-secondary-background-color);
}

.dark-theme .Tooltip__label::after {
  border-bottom-color: var(--ls-primary-text-color);
}

/* block references link count mark */
a.open-block-ref-link {
  color: var(--ls-primary-background-color);
  background-color: var(--ls-link-text-color);
}

/* bold font */
.dark-theme b,
.dark-theme strong {
  color: #fff;
}

/* brackets in links */
.page-reference .bracket {
  opacity: 0.5;
  color: var(--ls-link-text-color);
}

/* === Highlights === */
mark {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ls-primary-background-color);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 14px;
}
.white-theme mark {
  background: rgba(0, 0, 0, 0.5);
}

/* fix color page-reference when mark text */
mark .page-ref,
mark .page-reference .bracket {
  color: var(--ls-primary-background-color);
  font-weight: bold;
}

/* === Menu Links === */
a.menu-link.chosen {
  background-color: var(--ls-selection-background-color);
}

/* === Checkbox === */
.form-checkbox {
  top: 0;
  background-color: var(--ls-primary-background-color);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.dark-theme .form-checkbox {
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.white-theme .form-checkbox {
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.form-checkbox:checked {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: var(--ls-primary-background-color);
}
.dark-theme .form-checkbox:checked {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: var(--ls-primary-background-color);
}

.white-theme .form-checkbox:checked {
  border-color: rgba(0, 0, 0, 0.5);
  background-color: var(--ls-link-text-color);
}

.dark-theme .form-checkbox:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.dark-theme .form-checkbox:checked:focus {
  background-color: inherit;
  border-color: rgba(255, 255, 255, 0.5);
}

.form-checkbox:hover {
  transform: scale(1.2);
}

/* === Marker for Task Status === */
.marker-switch {
  font-size: 0.75rem;
  margin-right: 6px;
  margin-left: 2px;
  border-radius: 0;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  height: 16px;
  opacity: 1;
  padding: 0.1rem 0.25rem 0.1rem 0.25rem;
  border: 1px solid;
  line-height: 1;
  cursor: pointer;
}
.dark-theme .marker-switch {
  color: rgba(255, 255, 255, 0.5);
}
.white-theme .marker-switch {
  color: rgba(0, 0, 0, 0.5);
}

/* === Filters === */
.filters button:focus {
  outline: none;
}

/* === External Links === */
a.external-link {
  border-bottom: 0px;
}
a.external-link:after {
  background-color: var(--ls-link-text-color);
  bottom: -2px;
  content: "";
  display: inline-block;
  height: 14px;
  left: -1px;
  margin: 0 1px 0 5px;
  mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGDSURBVHgBtZaNcYMwDIUfGzgbqBuUDcwkaTdoJ4AN0gmaTNJu0GyQdILSCUjRIa6yMT+x4d29O7CNPmMLmQzryYhZ39hIDChbX1vflPn+2JqwoigA8t20fsEKogCslrZ6C6iG/UhAo/qLwBhCpCzc2T+OjNu1PquxB0TqpIK8e33k3Rdw3zJKnyqIVe2VtF1UW4b/PW0QuawaaDyYH5iBVyQCSQA2ALvJPRRQT8QgUdUEjPWs+r6QqHIGlsPdv/1UMIuuNJ3Fh4UwI8+WcAvAZQxEcJNCm2ZgOYZVpodRCPaAYblqxP0MK4wv42sA9oGJzPRLEQez8oDBfILwhHl1eAuOcL/RgZ48mF+uqhnY3dI1b781zHgBl8AKuSZEiOCe1KF2P/V1UiQBa6+Ps7OBu4w2FQi4308RmJDWCePH02K9qSCcQLuRcTncZbaIFKH7HPRe8ptmYp4A/0bUCO93lDhgg2U/RqPlag3o4toYK0JXmvoM1fW0QuIhmmEezvoVJ+sPourrpWEel2gAAAAASUVORK5CYII=");
  -webkit-mask-box-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGDSURBVHgBtZaNcYMwDIUfGzgbqBuUDcwkaTdoJ4AN0gmaTNJu0GyQdILSCUjRIa6yMT+x4d29O7CNPmMLmQzryYhZ39hIDChbX1vflPn+2JqwoigA8t20fsEKogCslrZ6C6iG/UhAo/qLwBhCpCzc2T+OjNu1PquxB0TqpIK8e33k3Rdw3zJKnyqIVe2VtF1UW4b/PW0QuawaaDyYH5iBVyQCSQA2ALvJPRRQT8QgUdUEjPWs+r6QqHIGlsPdv/1UMIuuNJ3Fh4UwI8+WcAvAZQxEcJNCm2ZgOYZVpodRCPaAYblqxP0MK4wv42sA9oGJzPRLEQez8oDBfILwhHl1eAuOcL/RgZ48mF+uqhnY3dI1b781zHgBl8AKuSZEiOCe1KF2P/V1UiQBa6+Ps7OBu4w2FQi4308RmJDWCePH02K9qSCcQLuRcTncZbaIFKH7HPRe8ptmYp4A/0bUCO93lDhgg2U/RqPlag3o4toYK0JXmvoM1fW0QuIhmmEezvoVJ+sPourrpWEel2gAAAAASUVORK5CYII=");
  mask-position: center;
  -webkit-mask-box-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-box-repeat: no-repeat;
  mask-size: 14px 14px;
  -webkit-mask-box-size: 14px 14px;
  object-fit: cover;
  position: relative;
  transition: 0.3s;
  width: 14px;
}

a.external-link:hover:after {
  background-color: var(--ls-link-text-hover-color);
}

/* === Tags ===  */
a.tag[data-ref] {
  color: var(--ls-primary-background-color);
  background: var(--ls-link-text-color);
  border-radius: 0.5rem 0rem;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 0.75rem;
  padding: 0.2rem 0.3rem;
  transition: 0.3s;
  white-space: nowrap;
}

a.tag[data-ref]:hover {
  opacity: 1;
  background-color: var(--ls-link-text-hover-color);
  border-radius: 0rem 0.5rem;
}

/* === Inline code === */
:not(pre) > code {
  padding: 2px 5px !important;
  background-color: var(--ls-page-inline-code-bg-color);
}

/* === Code Calc result position fix === */

.extensions__code-calc {
  top: 11px;
  padding: 0 0.75em;
}

/* === CodeMirror === */
.CodeMirror {
  font-family: "Fira Code", monospace;
  line-height: 1.2;
  background: var(--ls-secondary-background-color);
}

.CodeMirror-hscrollbar {
  cursor: default;
}

.cm-s-solarized.cm-s-dark,
.cm-s-solarized.cm-s-light {
  color: var(--ls-primary-text-color);
  background-color: var(--ls-primary-background-color);
  border: 7px solid var(--ls-secondary-background-color);
  border-radius: 5px;
  text-shadow: none;
}
.CodeMirror-gutters {
  background-color: #f7f7f7;
}
.cm-s-solarized.cm-s-dark .CodeMirror-gutters {
  background-color: rgba(40, 42, 51, 0.5);
}
.cm-s-solarized.cm-s-light .CodeMirror-gutters {
  background-color: rgba(237, 237, 237, 0.5);
}

.CodeMirror pre.CodeMirror-line {
  line-height: 18px;
}

.CodeMirror-linenumber {
  color: var(--ls-primary-text-color);
  opacity: 0.5;
  text-shadow: none;
}

.cm-s-solarized.cm-s-dark .CodeMirror-linenumber {
  color: var(--ls-primary-text-color);
  opacity: 0.5;
  text-shadow: none;
}

.extensions__code-lang {
  background: var(--ls-secondary-background-color);
  border: none;
}

.extensions__code .code-editor {
  margin-top: 0;
}

.cm-s-solarized.cm-s-dark div.CodeMirror-selected {
  background: var(--ls-selection-background-color);
}
.cm-s-solarized.cm-s-light div.CodeMirror-selected {
  background: var(--ls-selection-background-color);
}

.CodeMirror-selected {
  background: var(--ls-selection-background-color);
}
.CodeMirror-focused .CodeMirror-selected {
  background: var(--ls-selection-background-color);
}

/* === Admonitionblock: Tip, Note, etc. === */

/* Decrease margins around block */
.admonitionblock {
  margin: 0.5rem 0;
}

/* Decrease padding of icon */
.admonition-icon {
  border: transparent;
}
.admonition-icon > svg {
  background-color: transparent !important;
}

.svg-shadow.note,
.svg-shadow.tip,
.svg-shadow.important,
.svg-shadow.note,
.svg-shadow.caution,
.svg-shadow.pinned,
.svg-shadow.warning {
  filter: none;
}

svg.tip {
    color: var(--ls-primary-text-color);
}

.admonitionblock > .pr-4 {
  padding-right: 0.5rem;
}

.admonitionblock,
.verse,
pre.pre-wrap-white-space {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 1.5rem 1.5rem;
}

/*quote*/
blockquote {
  border-radius: 5px;
  padding: 1.5rem 1.5rem;
  margin: 0.5rem 0;
}
html[data-theme="light"] blockquote {
  background-color: hsl(var(--note), 86%, 0.3);
}

/*note*/
html[data-theme="light"] .note,
html[data-theme="light"] .admonitionblock.note {
  background-color: hsl(var(--note), 86%, 0.3);
  border-color: hsl(var(--note), 86%, 0.1);
}
html[data-theme="dark"] .note,
html[data-theme="dark"] .admonitionblock.note {
  background-color: hsl(var(--note), 86%, 0.05);
  border-color: hsl(var(--note), 86%, 0.05);
}

/*tip*/
html[data-theme="light"] .admonitionblock.tip {
  background-color: hsl(var(--tip), 73%, 0.1);
  border-color: hsl(var(--tip), 73%, 0.08);
}
html[data-theme="dark"] .admonitionblock.tip {
  background-color: hsl(var(--tip), 73%, 0.05);
  border-color: hsl(var(--tip), 73%, 0.05);
  color: hsl(var(--tip), 73%, 0.5);
}
html[data-theme="dark"] .admonitionblock.tip .is-paragraph {
  color: var(--ls-primary-text-color);
}

/*important*/
html[data-theme="light"] .important,
html[data-theme="light"] .admonitionblock.important {
  background-color: hsl(var(--important), 80%, 0.1);
  border-color: hsl(var(--important), 80%, 0.06);
}
html[data-theme="dark"] .important,
html[data-theme="dark"] .admonitionblock.important {
  background-color: hsl(var(--important), 80%, 0.05);
  border-color: hsl(var(--important), 80%, 0.05);
  color: hsl(var(--important), 74%, 0.5);
}
html[data-theme="dark"] .admonitionblock.important .is-paragraph {
  color: var(--ls-primary-text-color);
}

/*caution*/
html[data-theme="light"] .caution,
html[data-theme="light"] .admonitionblock.caution {
  background-color: hsl(var(--caution), 84%, 0.1);
  border-color: hsl(var(--caution), 84%, 0.1);
}
html[data-theme="dark"] .caution,
html[data-theme="dark"] .admonitionblock.caution {
  background-color: hsl(var(--caution), 84%, 0.05);
  border-color: hsl(var(--caution), 84%, 0.05);
  color: hsl(var(--caution), 84%, 0.5);
}
html[data-theme="dark"] .admonitionblock.caution .is-paragraph {
  color: var(--ls-primary-text-color);
}

/*pinned*/
html[data-theme="light"] .pinned,
html[data-theme="light"] .admonitionblock.pinned {
  background-color: hsl(var(--pinned), 80%, 0.1);
  border-color: hsl(var(--pinned), 80%, 0.1);
}
html[data-theme="dark"] .pinned,
html[data-theme="dark"] .admonitionblock.pinned {
  background-color: hsl(var(--pinned), 80%, 0.05);
  border-color: hsl(var(--pinned), 80%, 0.05);
  color: hsl(var(--pinned), 80%, 0.5);
}
html[data-theme="dark"] .admonitionblock.pinned .is-paragraph {
  color: var(--ls-primary-text-color);
}

/*warning*/
html[data-theme="light"] .warning,
html[data-theme="light"] .admonitionblock.warning {
  background-color: hsl(var(--warn), 82%, 0.15);
  border-color: hsl(var(--warn), 82%, 0.1);
}
html[data-theme="dark"] .warning,
html[data-theme="dark"] .admonitionblock.warning {
  background-color: hsl(var(--warn), 82%, 0.05);
  border-color: hsl(var(--warn), 82%, 0.05);
  color: hsl(var(--warn), 82%, 0.5);
}
html[data-theme="dark"] .admonitionblock.warning .is-paragraph {
  color: var(--ls-primary-text-color);
}

/* === Embed block === */

/* center text */
.color-level.embed-block.bg-base-2 > .px-3.pt-1.pb-2 {
  padding: 0.25rem;
}

/* === Mobile Devices === */
@media screen and (max-width: 480px) {
  h1.title {
    font-size: 24px;
  }
  .ls-block h1 {
    font-size: 1.5em;
    min-height: 1.5em;
  }
  .ls-block h2 {
    font-size: 1.17em;
    min-height: 1.17em;
  }
  .ls-block h3 {
    font-size: 1.12em;
    min-height: 1.12em;
  }
  .ls-block h4 {
    font-size: 1.05em;
    min-height: 1.05em;
  }
  .ls-block h5 {
    font-size: 1em;
    min-height: 1em;
  }
}

/* === Custom Plugin Styles === */

/* Tabs */
.logseq-tab > .border {
  border: none;
}
