.up-graphic-line {
	display: flex;
	flex-direction: column;
	gap: 5px;

	width: 100%;
	height: 250px;

	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 2px;
	padding-right: 2px;

	background-color: var(--container-color-active);
	border-radius: 3px;
	border-style: solid;
	border-width: 2px;
	border-color: var(--container-color);
}

.up-graphic-line-plot {
	position: relative;

	flex-grow: 1;
	min-height: 0;
	width: 100%;
}

.up-graphic-line-plot>svg {
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;
	overflow: visible;
}

.up-graphic-line-grid line {
	stroke: var(--container-color);
	stroke-width: 1px;
	stroke-dasharray: 4 4;
	vector-effect: non-scaling-stroke;
}

.up-graphic-line-path {
	fill: none;
	stroke: var(--accent-color);
	stroke-linecap: round;
	stroke-linejoin: round;

	/* Keeps the line width constant even if the svg is stretched */
	vector-effect: non-scaling-stroke;
}

.up-graphic-line-area {
	fill: var(--accent-color);
	fill-opacity: 0.2;
	stroke: none;
}

/* Points (html, so they are not distorted) */
.up-graphic-line-points {
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;
	pointer-events: none;
}

.up-graphic-line-points>div {
	position: absolute;
	transform: translate(-50%, -50%);

	border-radius: 50%;
	border: 2px solid var(--accent-color);
	background-color: var(--container-color-active);
	box-sizing: border-box;

	transition: transform .2s ease, background-color .2s ease;
}

.up-graphic-line-points>div.up-peak {
	background-color: var(--accent-color);
}

.up-graphic-line-points>div.up-low {
	border-color: var(--accent-color-hover);
	background-color: var(--container-color);
}

.up-graphic-line-points>div.up-active {
	transform: translate(-50%, -50%) scale(1.5);
	background-color: var(--accent-color-hover);
}

/* Floating hint */
.up-graphic-line-plot>span {
	position: absolute;
	top: 0;
	left: 0%;
	transform: translate(-50%, -150%);
	font-size: 14px;
	z-index: 2;

	width: auto;
	border: 3px solid var(--container-color);
	background-color: var(--container-color-active);

	padding: 5px;
	padding-top: 3px;
	padding-bottom: 3px;
	border-radius: 5px;
	pointer-events: none;
	white-space: nowrap;

	transition: opacity .5s ease;
}

.up-graphic-line-labels {
	display: flex;
	font-size: 8px;
	width: 100%;
	height: 20px;
	overflow: hidden;
	margin-top: 2px;
	margin-bottom: 2px;
	background-color: var(--container-color);
}

.up-graphic-line-labels div {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 1 1 0;
	overflow: hidden;
	white-space: nowrap;
	min-width: 0;
	padding: 2px;
}