html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}
html {
	scroll-behavior: smooth
}
body {

}
pre, code {
	margin: 0;
	padding: 0;
	font-family: "IBM Plex mono", mono
}

/* --- line numbres */

pre span, pre a {
	position: relative;
	display: inline-block;
	background: rgba(255, 0, 255, 0.5);
	border-radius: 2px;
	padding: 0 3px;
	margin: 0 -3px;
	text-decoration: none;
	cursor: help
}

.line-number {
	font-size: 0.75rem;
	background: none;
	margin: 0;
	padding-right: 0.5rem;
	cursor: pointer;
	line-height: 1rem;
	transition: all 0.25s ease
}
.line-number[title] {
	background: rgba(255, 0, 0, 1);
	color: white
}
.line-number:hover {
	line-height: 6rem
}

/* --- types */

.string {
	background: rgba(255, 255, 0, 1)
}

.anchor {
	background: rgba(0, 255, 255, 0.125);
	color: rgba(0, 0, 0, 0.5)
}

.branch {
	background: rgba(0, 0, 255, 1);
	color: white;
	cursor: pointer
}
.syntax {
	background: rgba(0, 0, 0, 0.25);
	padding: 0 0px;
	margin: 0 -0px;
}
.variable {
	background: rgba(125, 255, 125, 0.5)
}

/* --- contextual information */
pre span:after {
	display: none;
	position: absolute;
	top: 50%;
	right: 0;
	padding: 0 3px;
	border-radius: 2px;
	background: rgba(0, 0 , 0, 1);
	color: white;
	transform: translate(110%, -50%);
	z-index: 10;
}
pre span:hover:after {
	display: inline-block
}

.syntax:after {
	content: "syn"
}
.system:after {
	content: "sys"
}
.subroutine:after {
	content: "sub"
}

/* --- minimap */
#minimap {
    background: rgba(255, 255, 255, 1) -moz-element(#code) no-repeat top / contain;
	opacity: .25;
    position: fixed; 
    right: 10px; top: 10px;
    width: 10vw;
    height: auto;
    max-height: 100vh;
    display: none;
	transition: all .25s ease;
	box-shadow: 0 0 12px rgba(0, 0, 0, .25);
}
#minimap:hover {
    opacity: 1;
}
#minimap-range {
    transform: translatey(-100%) rotate(90deg);
    transform-origin: bottom left;
    background-color: transparent; 
    opacity: 0.5; 
    margin: 0;
    padding: 0;
    max-width: 100vh; /* same as #minimap's max-height */
    height: 10vw; /* same as #minimap's width */
}
#minimap-range::-moz-range-thumb {
    width: 25px; 
    height: 10vw; /* same as #minimap's width */
    background-color: rgba(255, 255, 0, 0.5); 
    cursor: pointer; 
	border-radius: 0;
}
#minimap-range::-moz-range-track{
  background-color: transparent;
}