@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;600;700&family=Roboto+Mono&display=swap');

:root {
	color-scheme: dark;
	/*--green: #85cf6d;
	--yellow: #ffcb40;
	--orange: #ffa23a;
	--red: #e96a6a;
	--purple: #c05bc2;
	--blue: #28beff;*/

	--white: #F8F8F2;
	--yellow: #E6DB74;
	--green: #77d761;
	--orange: #FD971F;
	--purple: #AE81FF;
	--pink: #fa518e;
	--blue: #66D9EF;
	--black: #171e21;
	--true-black: #101517;
	--grey: #58737f;
	--red: #CD1B38;
	--dark-grey: #1f2529;
	--selection-grey: #283439;
	--bar-height: 40px;
}

footer {
	height: var(--bar-height);
	background: var(--dark-grey);
	font-family: sans-serif;
	color: #777;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

footer img {
	padding: 12px;
  filter: grayscale(100%);
  opacity: 0.4;
  height: 16px;
  width: 16px;
  border: 0;
  margin: 0;
}


footer p {
	padding: 10px 20px;
}

main {
	position:absolute;
	top:0; 
	left: 0;
	right: 0;
	bottom: 40px;
	overflow: auto;
	background-color: var(--black);
}

main #layer-group {
	min-height: 100%;/* - 20px);*/ 
	height: fit-content;
	flex: 1;
	align-self: stretch;
	display: flex;
}


main #layer-group pre{
	min-height: calc(100vh - 80px);
	height: fit-content;
	position: absolute;
}

main pre {
	min-height: calc(100% - 20px); /* Removing the padding from the equation*/
	height: fit-content;
	font-size: 0.9em;
	line-height: 1.2em;
	padding: 10px;
	outline: none;
	font-family: 'Roboto Mono', monospace;
	align-self: stretch;
	user-select: none;
	tab-size: 4;
}

#wrapper {
	width: 100%;
	height: 100%;
	flex: 1;
    display: flex;
}

#lines {
	padding-left: 14px;
	min-width: 24px;
	width: auto;
	color:var(--grey);
	border-width: 0 1px 0 0;
	border-style: solid;
	border-color: var(--true-black);
	text-align: right;
	user-select: none;
}

#code {
	flex: 1;
	color: rgba(0, 0, 0, 0);
	caret-color: #8899AA;
	z-index: 9999;
	user-select: text;
	min-width: calc(100% - 90px);
}

#code::-moz-selection { /* Code for Firefox */
  /*color: var(--white);*/
  background-color: rgba(255,255,255,0.1); /*var(--selection-grey);*/
  border: 1px solid #777;
}

#code::selection {
  /*color: var(--white);*/
  background-color: rgba(255,255,255,0.2);
  border: 1px solid #777;
  z-index: 0;
}

#code::after {
	content: '\200B'; /* Zero-width space */
}

#punctuation {
	color: var(--white);
}

#attr { 
	color: var(--pink);
}

#string {
	color: var(--yellow);
}

#number {
	color: var(--purple);
}

#literal {
	color: var(--blue);
}

#error-notification span {
	background-color: var(--red);
	color: var(--white);
}
