/**
 * a11y-dark theme for JavaScript, CSS, and HTML
 * Based on the okaidia theme: https://github.com/PrismJS/prism/blob/gh-pages/themes/prism-okaidia.css
 * @author ericwbailey
 */

.prism-code {
  color: white;
  tab-size: 2;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
  background-color: #1e3952;
  overflow: auto;
}

.prism-code textarea {
  outline: none;
}

.prism-code textarea,
.prism-code pre,
pre.prism-code {
  padding: 10px;
  text-align: left;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  hyphens: none;
}

/* Code blocks */
pre[class*='language-'] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border-radius: 0.3em;
}

/* Inline code */
:not(pre) > code[class*='language-'] {
  padding: 0.1em;
  border-radius: 0.3em;
  white-space: normal;
}

.token.inserted {
  color: rgb(69, 255, 165);
}

.token.deleted {
  color: color(var(--red-base) tint(40%) saturation(120%));
}

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

.token.punctuation {
  color: #fefefe;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol {
  color: #ff8985;
}

.token.boolean,
.token.number {
  color: #43c4d9;
}

.token.function {
  color: #72d3e3;
}

.token.string {
  color: rgb(69, 255, 165);
}

.token.selector,
.token.attr-name,
.token.char,
.token.builtin {
  color: var(--yellow-base);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: #00e0e0;
}

.token.atrule,
.token.attr-value {
  color: rgb(69, 255, 165);
}

.token.keyword {
  color: #00e0e0;
}

.token.regex,
.token.important {
  color: #ffd700;
}

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

.token.entity {
  cursor: help;
}

@media screen and (-ms-high-contrast: active) {
  code[class*='language-'],
  pre[class*='language-'] {
    color: windowText;
    background: window;
  }

  :not(pre) > code[class*='language-'],
  pre[class*='language-'] {
    background: window;
  }

  .token.important {
    background: highlight;
    color: window;
    font-weight: normal;
  }

  .token.atrule,
  .token.attr-value,
  .token.function,
  .token.keyword,
  .token.operator,
  .token.selector {
    font-weight: bold;
  }

  .token.attr-value,
  .token.comment,
  .token.doctype,
  .token.function,
  .token.keyword,
  .token.operator,
  .token.property,
  .token.string {
    color: highlight;
  }

  .token.attr-value,
  .token.url {
    font-weight: normal;
  }
}
