html {
	--webbg: #fff;
	--text: #262626;
	--bg: #eef3f6;
	--cubes: #d5d8dd;
	--whiteorblack: #eff3f5;
	--white: #eff3f5;
	--black: #262626;
	--sectioncolor: #000099;
	--sectioncolor2: #3399ff;
	--invert: none;
	--displayDark: none;
	--displayLight: block;
	--color-greet: #1754bd;
	--color-event: #00aeef;
	--color-stop: #f172ac;
	--grey: #8d96a5;
	--lightgrey: #eef3f6;
	--select-hover: brightness(0.98);
}

html.dark-theme {
	--webbg: #141414;
	--text: #eff3f5;
	--bg: #202124;
	--cubes: #717c8e;
	--whiteorblack: #262626;
	--invert: invert(0.9) hue-rotate(180deg);
	--displayDark: block;
	--displayLight: none;
	--lightgrey: #3e4854;
	--select-hover: brightness(1.15);
}

body {
	background: var(--webbg);
	margin: auto;
}
.bg {
	background: var(--bg);
}
div {
	box-sizing: content-box;
}
b {
	font-weight: 600 !important;
}
.invert {
	filter: var(--invert);
}
.dark {
	display: var(--displayDark);
}
.light {
	display: var(--displayLight);
}
.l {
	text-align: left !important;
}
.c {
	text-align: center !important;
}
.r {
	text-align: right !important;
}

.cubes {
	width: 100%;
	height: 8px;
	color: var(--cubes);
	background-image: radial-gradient(
		circle at 1px 1px,
		currentColor 1px,
		transparent 0
	);
	background-size: 4px 4px;
	background-position: center left;
}

* {
	-webkit-font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	font-family: "GT Eesti", "Arial", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: var(--text);
	margin: 0;
}

.title {
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	gap: 15px;
	white-space: nowrap;
	margin-top: 10px;
}

.lead-wrapper {
	display: flex;
	justify-content: space-between;
	margin: 14px 0 16px 0;
	align-items: center;
	gap: 16px 20px;
}

.lead-wrapper select {
	border: 0;
	background: var(--lightgrey);
	font-weight: 600;
	font-size: 16px;
	padding: 10px 12px;
	flex-grow: 1;
	border-radius: 5px;
	cursor: pointer;
}

.lead-wrapper select:hover {
	filter: var(--select-hover);
}

.legend {
	display: flex;
	flex-wrap: nowrap;
	gap: 5px 20px;
}

.legend .legend--item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	line-height: 13px;
	white-space: nowrap;
}

.legend .legend--item div {
	margin-right: 0;
}

.schedule-list {
	position: relative;
	padding: 13px 0;
}

.schedule-list::before {
	content: "";
	width: 2px;
	height: 100%;
	background: var(--lightgrey);
	position: absolute;
	top: 0;
	left: 58px;
}

.dark-theme .schedule-list::before {
	opacity: 0.5;
}

.schedule-list .row {
	display: flex;
	margin-bottom: 14px;
}

.schedule-list .row:nth-last-of-type(1) {
	margin-bottom: 0;
}

.schedule-list .row .time {
	width: 50px;
	min-width: 50px;
	text-align: center;
	font-size: 15px;
	color: var(--grey);
}

.schedule-list .row .spacer {
	width: 32px;
	min-width: 32px;
}

.schedule-list .row .description {
	display: flex;
}

.schedule-list .row .description .icon,
.legend--item div {
	width: 19px;
	min-width: 19px;
	height: 19px;
	border-radius: 50%;
	margin-right: 7px;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 9px;
}

.schedule-list .row[data-category="event"] .description .icon,
.legend--item.legend-event div {
	background-image: url("assets/ico-event.svg");
	background-color: var(--color-event);
}

.schedule-list .row[data-category="greet"] .description .icon,
.legend--item.legend-greet div {
	background-image: url("assets/ico-greet.svg");
	background-color: var(--color-greet);
}

.schedule-list .row[data-category="stop"] .description .icon,
.legend--item.legend-stop div {
	background-image: url("assets/ico-stop.svg");
	background-color: var(--color-stop);
	transform: scale(0.65);
	background-size: 6px;
}

@media only screen and (max-width: 600px) {
	.lead-wrapper {
		flex-wrap: wrap;
	}
	.lead-wrapper select {
		flex-grow: unset;
	}
	.lead-wrapper .legend {
		flex-wrap: wrap;
	}
	.title {
		font-size: 26px;
	}
}

@media only screen and (max-width: 390px) {
	* {
		font-size: 15px;
	}

	.schedule-list::before {
		left: 50px;
	}

	.schedule-list .row {
		margin-bottom: 12px;
	}

	.schedule-list .row .time {
		width: 45px;
		min-width: 45px;
		font-size: 14px;
	}

	.schedule-list .row .spacer {
		width: 20px;
		min-width: 20px;
	}
}
