/*
 * Styles for syntax high-lighting, tweaking constantly for better contrast
 * Base file: prism-base16-monokai.dark.css
 */

pre,
code {
  font-family: var(--font-mono);
  line-height: 1rem;
}
pre {
  font-size: 1rem;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1rem;
  margin: .5rem 0;
  background-color: #f6f6f6;
  border-radius: 4px;
}
.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}
.highlight-line:hover {
  background-color: var(--black);
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}

.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(0, 0%, 27%, .8);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}

code[class*="language-"], pre[class*="language-"] {
	font-size: 1rem;
	line-height: 1.375;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	-moz-tab-size: 2;
	-o-tab-size: 2;
	tab-size: 2;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	background: #272822;
	color: #f8f8f2;
}
pre[class*="language-"] {
	padding: 1.5em 0;
	margin: .5em 0;
	overflow: auto;
}
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
}
.token.comment, .token.prolog, .token.doctype, .token.cdata {
	color: rgb(255, 181, 215);
  font-weight: bold;
}
.token.punctuation {
	color: #f8f8f2;
}
.token.namespace {
	opacity: .7;
}
.token.operator, .token.boolean, .token.number {
	color: #fd971f;
}
.token.property {
	color: #f4bf75;
}
.token.tag {
	color: #66d9ef;
}
.token.string {
	color: #a1efe4;
}
.token.selector {
	color: #ae81ff;
}
.token.attr-name {
	color: #fd971f;
}
.token.entity, .token.url, .language-css .token.string, .style .token.string {
	color: #a1efe4;
}
.token.attr-value, .token.keyword, .token.control, .token.directive, .token.unit {
	color: #a6e22e;
}
.token.statement, .token.regex, .token.atrule {
	color: #a1efe4;
}
.token.placeholder, .token.variable {
	color: #66d9ef;
}
.token.deleted {
	text-decoration: line-through;
}
.token.inserted {
	text-decoration: none;
}
.token.italic {
	font-style: italic;
}
.token.important, .token.bold {
	font-weight: bold;
}
.token.important {
	color: #f92672;
}
.token.entity {
	cursor: help;
}
pre > code.highlight {
	outline: 0.4em solid #f92672;
	outline-offset: .4em;
}

/*
 * New diff- syntax
 */

pre[class*="language-diff-"] {
  --eleventy-code-padding: 1.25em;
	padding-left: var(--eleventy-code-padding);
	padding-right: var(--eleventy-code-padding);
}
.token.deleted {
	background-color: hsl(0, 51%, 37%);
}
.token.inserted {
	background-color: hsl(126, 31%, 39%);
}

/* Make the + and - characters unselectable for copy/paste */
.token.prefix.unchanged,
.token.prefix.inserted,
.token.prefix.deleted {
	-webkit-user-select: none;
	user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--eleventy-code-padding);
  padding-top: 2px;
  padding-bottom: 2px;
  background-color: rgba(0,0,0,.2);
}

/* Optional: full-width background color */
.token.inserted:not(.prefix),
.token.deleted:not(.prefix) {
	display: block;
	margin-left: calc(-1 * var(--eleventy-code-padding));
	margin-right: calc(-1 * var(--eleventy-code-padding));
	text-decoration: none; /* override del, ins, mark defaults */
	color: inherit; /* override del, ins, mark defaults */
}
