/*********** NEVER USE filter: !!! GIVES RANDOM ARTIFACTS ALL OVER THE PLACE **************/

.pos {
	position: absolute;
	width: 24px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2) 47%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.2) 53%, rgba(255, 255, 255, 0));
	top: 0;
	left: -12px;
	height: 100%;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
}

.pos.ruler {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3) 46%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.3) 54%, rgba(255, 255, 255, 0));
}

.pos.split {
	background-image: repeating-linear-gradient(to bottom, #fff 0, #fff 0.2rem, #000 0.3rem, #000 0.6rem);
	background-size: 1px 100%;
	background-position: center center;
	background-repeat: no-repeat;
	pointer-events: all;
	height: calc(100% + 0.6rem);
	box-shadow: 0 0 0.5rem 0 #fff2;
	background-color: #ffffff12;
	width: 36px;
	left: -18px;
}
.pos.split.moving {
	box-shadow: 0 0 0.5rem 0 #ffffff38;
	background-color: #ffffff20;
}

#ruler {
	position: absolute;
	top: 2rem;
	height: 2rem;
	left: 0;
	width: 100%;
	background-color: #000c;
	backdrop-filter: blur(7px);
	border-bottom: solid 0.5px #000;
	color: #afafaf;
	font-size: 0.57rem;
	z-index: 25;
	transform: translate3d(0, -100%, 0);
	transition: transform 0.15s;
	overflow: hidden;
}
#ruler.show {
	transform: none;
}

#ruler-ruler, #ruler-tools {
	position: absolute;
	top: 0;
	height: 2rem;
	overflow: hidden;
}
#ruler-tools {
	display: flex;
	justify-content: space-between;
	left: 0;
	line-height: 2.2rem;
	text-align: center;
	font-family: "Menlo-Regular", monospace;
	font-size: 0.5rem;
	color: #ddd;
	border-right: solid 0.5px #111;
	z-index: 10;
}
#ruler-tools > span {
	display: block;
	flex-grow: 1;
}

#ruler-ruler > div {
	position: absolute;
	width: 3em;
	margin-left: -1.5em;
	text-align: center;
	top: 0.7rem;
	height: 1.4rem;
}
#ruler-ruler > div > div {
	position: absolute;
	bottom: 0;
	width: 0.5px;
	height: 0.5rem;
	background: #555;
	left: 50%;
}

button#ruler-solo {
	border: none;
	width: 2rem;
}

.note-value-top, .note-value-bottom {
	position: relative;
}

.note-value-top { top: -0.35rem; font-size: 0.38rem; color: #ccc; }
.note-value-bottom { top: 0.08rem; font-size: 0.58rem; margin-left: 1px; }
.note-value-slash { color: #888; }

#ruler-loop {
	display: block;
	position: absolute;
	background: #fff3;
	top: 2rem;
	height: 2rem;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 25;
	transition: height 0.15s;
}
#ruler-loop.active {
	background: #fff4;
}
#ruler-loop.line {
	background: #fff8;
	height: 3.5px;
	box-shadow: 0 1px 2px 1px #000;
	transition: background-color 0.5s;
}

#loop-handle-start, #loop-handle-end {
	position: absolute;
	top: 0;
	height: 2rem;
	text-align: center;
	width: 2rem;
	color: #fff2;
	line-height: 2.1rem;
	pointer-events: all;
	opacity: 1;
	transition: opacity 0.1s;
}
#loop-handle-start.active, #loop-handle-end.active {
	height: calc(var(--app-height) - 4rem);
	background: linear-gradient(to right, transparent calc(50% - 1px), #ccc 50%, transparent calc(50% + 1px));
}
#ruler-loop.line #loop-handle-start, #ruler-loop.line #loop-handle-end {
	opacity: 0;
	pointer-events: none;
}

#loop-handle-start abbr, #loop-handle-end abbr {
	font-size: 1.35rem;
	pointer-events: none;
}

#loop-handle-start {
	left: -1rem;
}

#loop-handle-end {
	right: -1rem;
}
