/**
 * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML
 * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics);
 * @author Tim  Shedor
 */

pre[class*="language-"] {
	margin: .5em 0 1rem;
}

code[class*="language-"],
pre[class*="language-"] {
	color: white;
	background: #39423c;
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

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

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
  border-radius: 9px;
	/*margin-bottom: 1rem;*/
}

/* Code blocks */
pre {
	position: relative;
	/* box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf; */
	/* background-color: #fdfdfd; */
	/* background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%); */
	background-size: 3em 3em;
	background-origin: content-box;
	overflow: visible;
	padding: 10px;
}

code[class*="language"] {
	max-height: inherit;
	height: 100%;
	display: block;
	overflow: auto;
}

pre code {
	background-color: #fdfdfd;
}

/* Margin bottom to accomodate shadow */
:not(pre) > code, pre {
	background-color: #f0f2f3;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin-bottom: 1em;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	position: relative;
	padding: .2em;
	border-radius: 0.3em;
	color: #ffa500;
	border: 1px solid rgba(0, 0, 0, 0.1);
	display: inline;
	white-space: normal;
}

:not(pre) > code[class*="language-"]:after,
pre[class*="language-"]:after {
	right: 0.75em;
	left: auto;
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	-o-transform: rotate(2deg);
	transform: rotate(2deg);
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #7D8B99;
}

.token.punctuation {
	color: white;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.function-name,
.token.constant,
.token.symbol,
.token.deleted {
	color: #ffa500;
}

.token.string,
.token.char {
	color: #ffa500;
}

.token.selector,
.token.attr-name {
	color: #ffa500;
}

.token.function,
.token.builtin,
.token.inserted {
	color: #fff815;
}

.token.operator,
.token.entity,
.token.url,
.token.variable {
	color: #f995ff;
}

.token.atrule,
.token.attr-value,
.token.keyword {
	color: #6cdaff;
	font-weight: bold;
}

.token.class-name {
	color: #0cd908;
}

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

.language-css .token.string,
.style .token.string {
	color: #41d58b;
}

.token.important {
	font-weight: normal;
}

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

.token.entity {
	cursor: help;
}

.namespace {
	opacity: .7;
}

@media screen and (max-width: 767px) {
	pre[class*="language-"]:before,
	pre[class*="language-"]:after {
		bottom: 14px;
		box-shadow: none;
	}

}

/* Plugin styles */
.token.tab:not(:empty):before,
.token.cr:before,
.token.lf:before {
	color: #e0d7d1;
}

/* Plugin styles: Line Numbers */
pre[class*="language-"].line-numbers {
	padding-left: 0;
}

pre[class*="language-"].line-numbers code {
	padding-left: 3.8em;
}

pre[class*="language-"].line-numbers .line-numbers-rows {
	left: 0;
}

/* Plugin styles: Line Highlight */
pre[class*="language-"][data-line] {
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
}
pre[data-line] code {
	position: relative;
	padding-left: 4em;
}
pre .line-highlight {
	margin-top: 0;
}

/**
 * prism.js One Dark theme for JavaScript, CoffeeScript, CSS and HTML
 * Based on https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-dark.css
 * @author Hoon Wei Ting
 */
@media (prefers-color-scheme: dark) {
	:not(pre) > code, pre {
		background: hsl(220, 13%, 18%);
		color: hsl(220, 14%, 71%);
	}

	pre code {
		background-color: transparent;
	}

	/* Code blocks */
	pre {
		border: 2px solid #141414;
	}

	code[class*="language-"],
	pre[class*="language-"] {
		background: hsl(220, 13%, 18%);
		color: hsl(220, 14%, 71%);
		text-shadow: 0 1px rgba(0, 0, 0, 0.3);
		font-family: "Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
		direction: ltr;
		text-align: left;
		white-space: pre;
		word-spacing: normal;
		word-break: normal;
		line-height: 1.5;
		-moz-tab-size: 2;
		-o-tab-size: 2;
		tab-size: 2;
		-webkit-hyphens: none;
		-moz-hyphens: none;
		-ms-hyphens: none;
		hyphens: none;
	}

	/* Selection */
	code[class*="language-"]::-moz-selection,
	code[class*="language-"] *::-moz-selection,
	pre[class*="language-"] *::-moz-selection {
		background: hsl(220, 13%, 28%);
		color: inherit;
		text-shadow: none;
	}

	code[class*="language-"]::selection,
	code[class*="language-"] *::selection,
	pre[class*="language-"] *::selection {
		background: hsl(220, 13%, 28%);
		color: inherit;
		text-shadow: none;
	}

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

	/* Print */
	@media print {
		code[class*="language-"],
		pre[class*="language-"] {
			text-shadow: none;
		}
	}

	.token.comment,
	.token.prolog,
	.token.cdata {
		color: hsl(220, 10%, 40%);
	}

	.token.doctype,
	.token.punctuation,
	.token.entity {
		color: hsl(220, 14%, 71%);
	}

	.token.attr-name,
	.token.class-name,
	.token.boolean,
	.token.constant,
	.token.number,
	.token.atrule {
		color: hsl(29, 54%, 61%);
	}

	.token.keyword {
		color: hsl(286, 60%, 67%);
	}

	.token.property,
	.token.tag,
	.token.symbol,
	.token.deleted,
	.token.important {
		color: hsl(355, 65%, 65%);
	}

	.token.selector,
	.token.string,
	.token.char,
	.token.builtin,
	.token.inserted,
	.token.regex,
	.token.attr-value,
	.token.attr-value > .token.punctuation {
		color: hsl(95, 38%, 62%);
	}

	.token.variable,
	.token.operator,
	.token.function {
		color: hsl(207, 82%, 66%);
		background: rgba(255, 255, 255, 0);
	}

	.token.url {
		color: hsl(187, 47%, 55%);
	}

	/* HTML overrides */
	.token.attr-value > .token.punctuation.attr-equals,
	.token.special-attr > .token.attr-value > .token.value.css {
		color: hsl(220, 14%, 71%);
	}

	/* CSS overrides */
	.language-css .token.selector {
		color: hsl(355, 65%, 65%);
	}

	.language-css .token.property {
		color: hsl(220, 14%, 71%);
	}

	.language-css .token.function,
	.language-css .token.url > .token.function {
		color: hsl(187, 47%, 55%);
	}

	.language-css .token.url > .token.string.url {
		color: hsl(95, 38%, 62%);
	}

	.language-css .token.important,
	.language-css .token.atrule .token.rule {
		color: hsl(286, 60%, 67%);
	}

	/* JS overrides */
	.language-javascript .token.operator {
		color: hsl(286, 60%, 67%);
	}

	.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation {
		color: hsl(5, 48%, 51%);
	}

	/* JSON overrides */
	.language-json .token.operator {
		color: hsl(220, 14%, 71%);
	}

	.language-json .token.null.keyword {
		color: hsl(29, 54%, 61%);
	}

	/* MD overrides */
	.language-markdown .token.url,
	.language-markdown .token.url > .token.operator,
	.language-markdown .token.url-reference.url > .token.string {
		color: hsl(220, 14%, 71%);
	}

	.language-markdown .token.url > .token.content {
		color: hsl(207, 82%, 66%);
	}

	.language-markdown .token.url > .token.url,
	.language-markdown .token.url-reference.url {
		color: hsl(187, 47%, 55%);
	}

	.language-markdown .token.blockquote.punctuation,
	.language-markdown .token.hr.punctuation {
		color: hsl(220, 10%, 40%);
		font-style: italic;
	}

	.language-markdown .token.code-snippet {
		color: hsl(95, 38%, 62%);
	}

	.language-markdown .token.bold .token.content {
		color: hsl(29, 54%, 61%);
	}

	.language-markdown .token.italic .token.content {
		color: hsl(286, 60%, 67%);
	}

	.language-markdown .token.strike .token.content,
	.language-markdown .token.strike .token.punctuation,
	.language-markdown .token.list.punctuation,
	.language-markdown .token.title.important > .token.punctuation {
		color: hsl(355, 65%, 65%);
	}

	/* General */
	.token.bold {
		font-weight: bold;
	}

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

	.token.entity {
		cursor: help;
	}

	.token.namespace {
		opacity: 0.8;
	}

	/* Plugin overrides */
	/* Selectors should have higher specificity than those in the plugins' default stylesheets */

	/* Show Invisibles plugin overrides */
	.token.token.tab:not(:empty):before,
	.token.token.cr:before,
	.token.token.lf:before,
	.token.token.space:before {
		color: hsla(220, 14%, 71%, 0.15);
		text-shadow: none;
	}

	/* Toolbar plugin overrides */
	/* Space out all buttons and move them away from the right edge of the code block */
	div.code-toolbar > .toolbar.toolbar > .toolbar-item {
		margin-right: 0.4em;
	}

	/* Styling the buttons */
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
		background: hsl(220, 13%, 26%);
		color: hsl(220, 9%, 55%);
		padding: 0.1em 0.4em;
		border-radius: 0.3em;
	}

	div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
	div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
		background: hsl(220, 13%, 28%);
		color: hsl(220, 14%, 71%);
	}

	/* Line Highlight plugin overrides */
	/* The highlighted line itself */
	.line-highlight.line-highlight {
		background: hsla(220, 100%, 80%, 0.04);
	}

	/* Default line numbers in Line Highlight plugin */
	.line-highlight.line-highlight:before,
	.line-highlight.line-highlight[data-end]:after {
		background: hsl(220, 13%, 26%);
		color: hsl(220, 14%, 71%);
		padding: 0.1em 0.6em;
		border-radius: 0.3em;
		box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
	}

	/* Hovering over a linkable line number (in the gutter area) */
	/* Requires Line Numbers plugin as well */
	pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before {
		background-color: hsla(220, 100%, 80%, 0.04);
	}

	/* Line Numbers and Command Line plugins overrides */
	/* Line separating gutter from coding area */
	.line-numbers.line-numbers .line-numbers-rows,
	.command-line .command-line-prompt {
		border-right-color: hsla(220, 14%, 71%, 0.15);
	}

	/* Stuff in the gutter */
	.line-numbers .line-numbers-rows > span:before,
	.command-line .command-line-prompt > span:before {
		color: hsl(220, 14%, 45%);
	}

	/* Match Braces plugin overrides */
	/* Note: Outline colour is inherited from the braces */
	.rainbow-braces .token.token.punctuation.brace-level-1,
	.rainbow-braces .token.token.punctuation.brace-level-5,
	.rainbow-braces .token.token.punctuation.brace-level-9 {
		color: hsl(355, 65%, 65%);
	}

	.rainbow-braces .token.token.punctuation.brace-level-2,
	.rainbow-braces .token.token.punctuation.brace-level-6,
	.rainbow-braces .token.token.punctuation.brace-level-10 {
		color: hsl(95, 38%, 62%);
	}

	.rainbow-braces .token.token.punctuation.brace-level-3,
	.rainbow-braces .token.token.punctuation.brace-level-7,
	.rainbow-braces .token.token.punctuation.brace-level-11 {
		color: hsl(207, 82%, 66%);
	}

	.rainbow-braces .token.token.punctuation.brace-level-4,
	.rainbow-braces .token.token.punctuation.brace-level-8,
	.rainbow-braces .token.token.punctuation.brace-level-12 {
		color: hsl(286, 60%, 67%);
	}

	/* Diff Highlight plugin overrides */
	/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
	pre.diff-highlight > code .token.token.deleted:not(.prefix),
	pre > code.diff-highlight .token.token.deleted:not(.prefix) {
		background-color: hsla(353, 100%, 66%, 0.15);
	}

	pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection,
	pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection,
	pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,
	pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection {
		background-color: hsla(353, 95%, 66%, 0.25);
	}

	pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection,
	pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection,
	pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection,
	pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection {
		background-color: hsla(353, 95%, 66%, 0.25);
	}

	pre.diff-highlight > code .token.token.inserted:not(.prefix),
	pre > code.diff-highlight .token.token.inserted:not(.prefix) {
		background-color: hsla(137, 100%, 55%, 0.15);
	}

	pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection,
	pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection,
	pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,
	pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection {
		background-color: hsla(135, 73%, 55%, 0.25);
	}

	pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection,
	pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection,
	pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection,
	pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
		background-color: hsla(135, 73%, 55%, 0.25);
	}

	/* Previewers plugin overrides */
	/* Based on https://github.com/atom-community/atom-ide-datatip/blob/master/styles/atom-ide-datatips.less and https://github.com/atom/atom/blob/master/packages/one-dark-ui */
	/* Border around popup */
	.prism-previewer.prism-previewer:before,
	.prism-previewer-gradient.prism-previewer-gradient div {
		border-color: hsl(224, 13%, 17%);
	}

	/* Angle and time should remain as circles and are hence not included */
	.prism-previewer-color.prism-previewer-color:before,
	.prism-previewer-gradient.prism-previewer-gradient div,
	.prism-previewer-easing.prism-previewer-easing:before {
		border-radius: 0.3em;
	}

	/* Triangles pointing to the code */
	.prism-previewer.prism-previewer:after {
		border-top-color: hsl(224, 13%, 17%);
	}

	.prism-previewer-flipped.prism-previewer-flipped.after {
		border-bottom-color: hsl(224, 13%, 17%);
	}

	/* Background colour within the popup */
	.prism-previewer-angle.prism-previewer-angle:before,
	.prism-previewer-time.prism-previewer-time:before,
	.prism-previewer-easing.prism-previewer-easing {
		background: hsl(219, 13%, 22%);
	}

	/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
	/* For time, this is the alternate colour */
	.prism-previewer-angle.prism-previewer-angle circle,
	.prism-previewer-time.prism-previewer-time circle {
		stroke: hsl(220, 14%, 71%);
		stroke-opacity: 1;
	}

	/* Stroke colours of the handle, direction point, and vector itself */
	.prism-previewer-easing.prism-previewer-easing circle,
	.prism-previewer-easing.prism-previewer-easing path,
	.prism-previewer-easing.prism-previewer-easing line {
		stroke: hsl(220, 14%, 71%);
	}

	/* Fill colour of the handle */
	.prism-previewer-easing.prism-previewer-easing circle {
		fill: transparent;
	}
}

@media (prefers-color-scheme: light) {

/* JSON overrides */

  .language-json .token.property {
    color: var(--cornflowerblue);
  }
  .language-json .token.number {
    color: mediumturquoise;
  }

  .language-json .token.token.boolean {
    color: deepskyblue;
  }
  
  .language-gitignore .token.pattern{
    color: deepskyblue;
  }

/* ENV */
  .language-env .token.property {
    color: var(--cornflowerblue);
  }

}

.makefile .token.important {
  color: #3ce1b9;
}