/**
 * 1. Prevent `em` values from being different due to the browser applying a
 *    monospace font by default.
 */
pre {
  margin-bottom: 2.5em;
  padding: 1.25em 1.5em;
  overflow: auto;
  position: relative;
  /* background-color: #fffafd; */
  background-color: #322d2f7e;
  font-family: inherit;
  color: #f8f8f2;
}

@media (min-width: 1024px) {
  /**
   * 1. Increase width so the code container looks wider than the body text, but
   *    the text within it is aligned with the body text.
   */
  pre {
    width: 95%;
    padding: 1.5em 2em;
    left: 1em;
  }
}

pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  background-image: linear-gradient(
    to right,
    var(--mainYellow),
    var(--mainRed)
  );
}

pre.mermaid {
  background-color: transparent;
  padding: 0 2em;
}
pre.mermaid::before {
  display: none;
}

code {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

pre code {
  display: block;
}

:not(pre):not(a) > code {
  background-color: #6c4d59;
  color: #f8f8f2;

  border-radius: 0.25em;
  padding: 0 0.4em;
  font-size: 80%;
  word-break: keep-all;
}

.namespace {
  opacity: 0.7;
}

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

.token.punctuation {
  color: #95a6ad;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #fc4787;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #009f7f;
}

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

.token.atrule,
.token.attr-value,
.token.keyword {
  /* color: #087bd4; */
  color: #6aafe5;
}

.token.function {
  color: #e84393;
}
.token.regex,
.token.important,
.token.variable {
  color: #ecb246;
}
.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}
.token.entity {
  cursor: help;
}
