/**
 * VS theme by Andrew Lock (https://andrewlock.net)
 * Inspired by Visual Studio syntax coloring
 */

code[class*='language-'],
pre[class*='language-'] {
  color: #393a34;
  font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Courier New', Courier,
    monospace;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  font-size: 0.9em;
  line-height: 1.2em;

  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

pre > code[class*='language-'] {
  font-size: 1em;
}

pre[class*='language-']::-moz-selection,
pre[class*='language-'] ::-moz-selection,
code[class*='language-']::-moz-selection,
code[class*='language-'] ::-moz-selection {
  background: #c1def1;
}

pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
  background: #c1def1;
}

/* Code blocks */
pre[class*='language-'] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*='language-'] {
  padding: 0.2em;
  padding-top: 1px;
  padding-bottom: 1px;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #008000;
  font-style: italic;
}

.token.namespace {
  opacity: 0.7;
}

.token.string {
  color: #a31515;
}

.token.punctuation,
.token.operator {
  color: #393a34; /* no highlight */
}

.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.inserted {
  color: #36acaa;
}

.token.atrule,
.token.keyword,
.token.attr-value,
.language-autohotkey .token.selector,
.language-json .token.boolean,
.language-json .token.number,
code[class*='language-css'] {
  color: #0000ff;
}

.token.function {
  color: #393a34;
}

.token.deleted,
.language-autohotkey .token.tag {
  color: #9a050f;
}

.token.selector,
.language-autohotkey .token.keyword {
  color: #00009f;
}

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

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

.token.class-name,
.language-json .token.property {
  color: #2b91af;
}

.token.tag,
.token.selector {
  color: #800000;
}

.token.attr-name,
.token.property,
.token.regex,
.token.entity {
  color: #ff0000;
}

.token.directive.tag .tag {
  background: #ffff00;
  color: #393a34;
}

/* overrides color-values for the Line Numbers plugin
 * http://prismjs.com/plugins/line-numbers/
 */
.line-numbers .line-numbers-rows {
  border-right-color: #a5a5a5;
}

.line-numbers-rows > span:before {
  color: #2b91af;
}

/* overrides color-values for the Line Highlight plugin
* http://prismjs.com/plugins/line-highlight/
*/
.line-highlight {
  background: rgba(193, 222, 241, 0.2);
  background: -webkit-linear-gradient(
    left,
    rgba(193, 222, 241, 0.2) 70%,
    rgba(221, 222, 241, 0)
  );
  background: linear-gradient(
    to right,
    rgba(193, 222, 241, 0.2) 70%,
    rgba(221, 222, 241, 0)
  );
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  code[class*='language-'],
  pre[class*='language-'] {
    color: #d4d4d4;
    background-color: #1e1e1e;
  }

  pre[class*='language-']::-moz-selection,
  pre[class*='language-'] ::-moz-selection,
  code[class*='language-']::-moz-selection,
  code[class*='language-'] ::-moz-selection {
    background: #264f78;
  }

  pre[class*='language-']::selection,
  pre[class*='language-'] ::selection,
  code[class*='language-']::selection,
  code[class*='language-'] ::selection {
    background: #264f78;
  }

  /* Code blocks */
  pre[class*='language-'] {
    background-color: #1e1e1e;
    border-color: #3e3e42;
  }

  /* Inline code */
  :not(pre) > code[class*='language-'] {
    background: #1e1e1e;
    border-color: #3e3e42;
  }

  .token.comment,
  .token.prolog,
  .token.doctype,
  .token.cdata {
    color: #6a9955;
  }

  .token.string {
    color: #ce9178;
  }

  .token.punctuation,
  .token.operator {
    color: #d4d4d4;
  }

  .token.url,
  .token.symbol,
  .token.number,
  .token.boolean,
  .token.variable,
  .token.constant,
  .token.inserted {
    color: #4ec9b0;
  }

  .token.atrule,
  .token.keyword,
  .token.attr-value,
  .language-autohotkey .token.selector,
  .language-json .token.boolean,
  .language-json .token.number,
  code[class*='language-css'] {
    color: #569cd6;
  }

  .token.function {
    color: #dcdcaa;
  }

  .token.deleted,
  .language-autohotkey .token.tag {
    color: #f48771;
  }

  .token.selector,
  .language-autohotkey .token.keyword {
    color: #569cd6;
  }

  .token.class-name,
  .language-json .token.property {
    color: #4ec9b0;
  }

  .token.tag,
  .token.selector {
    color: #569cd6;
  }

  .token.attr-name,
  .token.property,
  .token.regex,
  .token.entity {
    color: #9cdcfe;
  }

  .token.directive.tag .tag {
    background: #646695;
    color: #d4d4d4;
  }

  .line-numbers .line-numbers-rows {
    border-right-color: #858585;
  }

  .line-numbers-rows > span:before {
    color: #858585;
  }

  .line-highlight {
    background: rgba(38, 79, 120, 0.4);
    background: -webkit-linear-gradient(
      left,
      rgba(38, 79, 120, 0.4) 70%,
      rgba(38, 79, 120, 0)
    );
    background: linear-gradient(
      to right,
      rgba(38, 79, 120, 0.4) 70%,
      rgba(38, 79, 120, 0)
    );
  }
}
