
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital@1&display=swap');

canvas {
	filter: contrast(0.7) brightness(0.7);
}

.maplibregl-ctrl-icon {
	filter: hue-rotate(90deg);
}

.marker {
	font-family: 'Roboto Condensed', sans-serif;
	color: teal;
	width: 100px;

	/* cursed */
	text-shadow: rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) 0.540302px 0.841471px 0px, rgb(255, 255, 255) -0.416147px 0.909297px 0px, rgb(255, 255, 255) -0.989992px 0.14112px 0px, rgb(255, 255, 255) -0.653644px -0.756802px 0px, rgb(255, 255, 255) 0.283662px -0.958924px 0px, rgb(255, 255, 255) 0.96017px -0.279415px 0px;

    -webkit-font-smoothing: antialiased;
	font-size: 13px;
	font-style: italic;

	display: flex;
	align-items: center;
	gap: 0.2em;
	line-height: 1.1;
}
.marker span {
	opacity: 0;
	transition: opacity 0.2s;
}
.map-zoomed-close .marker span {
	opacity: 1;
}
.marker svg {
	width: 24px;
	flex-shrink: 0;
}
.marker-path {
	stroke: white;
	stroke-width: 10px;
	stroke-linejoin: round;
	paint-order: stroke;
}

#map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 50vh;
	z-index: 10;
}
#map::after {
	content: ' ';
	z-index: 20;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 20vh;
	pointer-events: none;

	background: linear-gradient(180deg, #5F57C0 0%, rgba(105, 98, 194, 0.915) 27%, rgba(217, 217, 217, 0) 100%);
}
.map-wrapper {
	padding-top: 50vh;
}

#rasti-list {
	width: 100%;
	margin-top: 1em;
}
.rasti-item {
	display: flex;
	margin: 0 0 .5em 0;
	padding: .7em 1em;
	align-items: center;
	background-color: transparent;
	transition: background-color 0.2s, opacity 0.2s;
	width: 100%;
	border-radius: 6px;
	justify-content: space-between;
	cursor: pointer !important;
	line-height: 1.1;
}
.rasti-item:hover {
	opacity: 0.8;
}
.rasti-item>.rasti-left {
	font-family: 'Acme';
	font-size: 24px;
	color: white;
}
.rasti-item>.rasti-right {
	font-family: 'Open Sans';
	font-size: 1em;
	color: white;
	display: flex;
	gap: .3em;
	flex-shrink: 0;
}

#ruuhka-legend {
	flex-shrink: 0;
}

.ruuhka-row {
	margin-top: 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

@keyframes fade {
	0%, 100% { opacity: 0.2; }
	50% { opacity: 1; }
}

.live-indicator {
	display: flex;
	align-items: center;
	font-family: 'Open Sans';
	color: rgba(255,255,255,1);
	font-size: .8em;
}

.live-indicator  .circle {
	animation: fade 1.5s infinite;
	padding-right: 5px;
	font-family: Arial, sans-serif;
	color: rgb(255,0,0); 
	transform: scale(1.3);
}

#ruuhka-legend div {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.1em 0.3em;
	border-radius: 6px;
	background-color: #5F57C0;
	font-family: 'Open Sans';
	color: white;
	font-size: .8em;
}
