:root {
	--color-primary: #3a0ca3;
	--color-secondary: #000fa0;
	--color-accent: #ee3b8c;
	--color-tertiary-accent: #9933f0;
	--color-background-panel: #1a1a1a;
	--color-background-hover: #333333;
	--color-shadow: rgba(0, 0, 0, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
}

input:not([type="submit"]) {
	padding: 25px;
	border-radius: 25px;
	width: calc(100% - 90px);
	margin: 10px;
	box-shadow: 0px 0px 10px 5px var(--color-primary);
	background: transparent;
	color: white;
	border: none;
	outline: none;
	font-size: 150%;
	transition: 0.25s;
}

input:not([type="submit"]):focus {
	box-shadow: 0px 0px 10px 5px var(--color-tertiary-accent);
}

input:not([type="submit"])::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

button {
	background: linear-gradient(
		45deg,
		var(--color-primary),
		var(--color-tertiary-accent)
	);
	color: var(--color-text-light);
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 500;
	font-size: 125%;
	transition: all 0.3s ease;
	background-size: 200% 100%;
	background-position: 0% 0%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
}

button:hover {
	background-position: 100% 0%;
	box-shadow: 0 6px 10px -2px var(--color-shadow),
		0 4px 6px -2px var(--color-shadow);
}

/* *************************************************************************** */

body {
	height: 100%;
	margin: 0;
	background-color: black;
	color: white;
	font-family: "Inter", Arial, Helvetica, sans-serif;
	text-align: center;
	overflow: hidden;
}

#main-loading {
	position: fixed;
	top: 0px;
	left: 0px;
	height: 100vh;
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: var(--color-background-panel);
	z-index: 99999;
}

#main-loading #spinner {
	height: 150px;
	width: 150px;
	border-radius: 150px;
	border: solid 10px transparent;
	border-top-color: var(--color-tertiary-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: loading-spinner 1s linear infinite;
}

@keyframes loading-spinner {
	to {
		transform: rotate(360deg);
	}
}

#main-loading #spinner #icon {
	height: 100px;
	width: 100px;
	animation: loading-icon 1s linear infinite;
}

@keyframes loading-icon {
	to {
		transform: rotate(-360deg);
	}
}

#main-loading #label {
	margin-top: 10px;
}

#map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background-color: black;
}

#infos-page {
	font-size: 125%;
	padding: 10px 20px;
	border-radius: 20px;
	background-color: var(--color-primary);
	position: absolute;
	right: 25px;
	top: 25px;
	cursor: pointer;
	transition: background 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.5px;
	z-index: 999999999999999999999;
}

#infos-page:hover {
	background-color: var(--color-tertiary-accent);
}

#map .marker-label {
	background-color: var(--color-tertiary-accent);
	color: white;
	border-radius: 5px;
	padding: 2.5px;
}

#controls {
	position: absolute;
	bottom: 25px;
	right: 25px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#controls .control {
	background-color: var(--color-tertiary-accent);
	cursor: pointer;
	border-radius: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#controls .control#zoom {
	display: none;
}

#controls .control .action {
	border-radius: 25px;
	padding: 12.5px;
	height: 25px;
	width: 25px;
	transition: background 0.25s;
	background-size: 75%;
	background-position: center;
	background-repeat: no-repeat;
}

#controls .control img:hover,
#controls .control img:active {
	background-color: rgba(255, 255, 255, 0.25);
}

#popup {
	background-color: var(--color-background-panel);
	padding: 25px;
	border-radius: 25px;
	box-shadow: 0 0 10px var(--color-shadow);
	position: absolute;
	z-index: 1;
	top: 25px;
	left: 25px;
	width: 500px;
	height: 100px;
	transition: height 0.25s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
}

#popup.focus {
	height: calc(100vh - 100px);
}

#popup #drag-handle {
	display: none;
}

#popup #popup-content,
#popup .content {
	width: 100%;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	overflow-y: scroll;
}

#popup:not(.focus) #popup-content .content {
	max-height: 0px;
}

#popup #loading {
	height: 100px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: left;
	gap: 25px;
	font-size: 25px;
}

#popup #loading #spinner {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border: 10px solid var(--color-tertiary-accent);
	border-top-color: transparent !important;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

#head {
	display: flex;
	align-items: center;
	justify-content: start;
	width: 100%;
}

#head #back {
	padding: 0px;
}

#head #title {
	text-align: left;
	margin-left: 5px;
	font-weight: bold;
	font-size: 25px;
	line-height: 25px;
}

#tabs {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#tabs .tab {
	flex: 1;
	margin: 5px;
	border-radius: 25px;
	transition: background 0.25s;
	cursor: pointer;
}

#tabs .tab:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

#tabs .tab .name {
	font-size: 25px;
	padding: 5px;
}

#tabs .tab .line {
	width: 75%;
	height: 5px;
	border-radius: 5px;
	margin-left: 12.5%;
	background-color: var(--color-primary);
	transition: background 0.25s;
}

#tabs .tab.focus .line {
	background-color: var(--color-tertiary-accent);
}

#stops {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#routes {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	width: 100%;
}

#routes .route {
	height: 25px;
	min-width: 25px;
	padding: 12.5px;
	border-radius: 15px;
	margin: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 25px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.25s;
	white-space: nowrap;
}

#routes:has(.route.focus) .route {
	opacity: 0.25;
}

#routes .route.focus {
	opacity: 1 !important;
}

.result {
	min-height: 75px;
	border-radius: 25px;
	margin: 5px;
	width: calc(100% - 50px);
	background-color: rgba(255, 255, 255, 0.1);
	cursor: pointer;
	transition: 0.25s;
	display: flex;
	align-items: center;
	justify-content: start;
	overflow: hidden;
}

.result .icon {
	height: 50px;
	width: 50px;
	margin: 12.5px;
}

.result .infos {
	flex: 1 1 auto;
	margin-right: 18.75px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: center;
}

.result.focus {
	background-color: rgba(255, 255, 255, 0.25);
}

.result .name {
	font-size: 125%;
	font-weight: bold;
	text-align: left;
}

.result .description {
	text-align: left;
	font-size: 100%;
	opacity: 0.25;
}

.buttons {
	width: calc(100% - 40px);
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	margin-left: 20px;
	margin-right: 20px;
}

.buttons button {
	width: auto;
	flex: 1;
	margin: 5px;
}

.plan {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	overflow: hidden;
	overflow-y: auto;
}

.plan .stop {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 75px;
	min-height: 75px;
	width: calc(100% - 40px);
	padding: 0px 20px 0px 20px;
	border-radius: 20px;
	transition: background 0.25s;
	cursor: pointer;
}

.plan .stop.focus {
	background-color: rgba(255, 255, 255, 0.1);
}

.plan .stop .left {
	width: 20%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.plan .stop .left .circle {
	height: 20px;
	width: 20px;
	border-radius: 100%;
	background-color: white;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
	transform: scale(1.25);
	transition: transform 0.25s;
}

.plan .stop .left .rectangle {
	height: 20px;
	width: 20px;
	border-radius: 5px;
	background-color: white;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
	transform: scale(1.25);
}

.plan .stop .left .line {
	flex: 1 1 auto;
	width: 15px;
	background-color: var(--color-tertiary-accent);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.plan .stop .left .line.transparent {
	opacity: 0;
}

.plan .stop .right {
	width: 80%;
	text-align: left;
}

.plan .stop .right .name {
	font-size: 125%;
	font-weight: bold;
}

.plan .stop .right .description {
	opacity: 0.75;
}

#selectors {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.selector {
	flex: 1 1 auto;
	padding: 10px;
	border-radius: 25px;
	margin: 10px;
	box-shadow: 0px 0px 10px 5px var(--color-primary);
	font-size: 150%;
	transition: 0.25s;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.selector:hover {
	box-shadow: 0px 0px 10px 5px var(--color-tertiary-accent);
	background-color: rgba(255, 255, 255, 0.1);
}

.selector.disabled {
	box-shadow: 0px 0px 10px 5px #333333;
	cursor: not-allowed;
}

.selector.disabled:hover {
	box-shadow: 0px 0px 10px 5px #333333;
}

.selector-popup {
	position: absolute;
	z-index: 9999;
	box-shadow: 0px 0px 10px 5px var(--color-primary);
	font-size: 150%;
	background-color: var(--color-background-panel);
	border-radius: 25px;
	overflow: hidden;
	transition: height 0.25s, opacity 0.5s;
}

.selector-popup .option {
	width: calc(100% - 20px);
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.selector-popup .option:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.trip-option {
	width: calc(100% - 20px);
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 25px;
}

.trip-option .description {
	font-size: 75%;
	opacity: 0.75;
	width: 100%;
	text-align: center;
}

.plan2 {
	width: 100%;
}

.plan2 .connection {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.plan2 .connection .line {
	flex: 1 1 auto;
	height: 5px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 5px;
	margin: 0 10px;
}

.plan2 .connection div:not(.line) {
	margin: 10px;
}

.plan2 .route #agency {
	overflow: hidden;
	width: calc(100% - 25px);
	text-align: left;
	padding: 12.5px;
	border-radius: 25px;
	background-color: rgba(255, 255, 255, 0.1);
	display: none;
}

.plan2 .route:hover #agency {
	display: block;
}

.plan2 .route #agency th {
	white-space: nowrap;
}

.plan2 .route #agency td {
	opacity: 0.75;
	font-size: 75%;
}

.plan2 .route #agency a {
	color: rgb(0, 150, 255);
}

.plan2 .route #route {
	height: 25px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: start;
	overflow: hidden;
	font-size: 15px;
	gap: 5px;
	white-space: nowrap;
}

.plan2 .route #route #infos {
	width: calc(80% - 50px);
	text-align: left;
}

.plan2 .route #route #infos span {
	opacity: 0.5;
	font-size: 10px;
	white-space: nowrap;
}

.plan2 .route #route #form {
	margin-left: 20%;
	width: 50px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.plan2 .route #route #form #r1 {
	width: 30px;
	height: 15px;
	border-radius: 15px 5px 5px 0px;
	position: absolute;
	top: calc(50% - 7.5px);
	right: 1px;
	opacity: 0.25;
}

.plan2 .route #route #form #r2 {
	height: 5px;
	width: 15px;
	position: absolute;
	bottom: 0px;
	left: calc(50% - 7px);
	opacity: 0.25;
}

.plan2 .route {
	width: 100%;
}

.plan2 .route .primary-stop {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: start;
	height: 55px;
	max-height: 55px;
}

.plan2 .route .primary-stop #time {
	width: 20%;
	height: 100%;
	font-size: 25px;
	display: flex;
	align-items: center;
	justify-content: end;
}

.plan2 .route .primary-stop #form {
	width: 50px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.plan2 .route .primary-stop #form .line {
	height: 100%;
	width: 15px;
	position: absolute;
	left: calc(50% - 7.5px);
}

.plan2 .route .primary-stop #form .semi-line {
	height: 50%;
	width: 15px;
	position: absolute;
	left: calc(50% - 7.5px);
}

.plan2 .route .primary-stop #form .icon {
	width: 30px;
	height: 30px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.plan2 .route .primary-stop #infos {
	line-height: 20px;
	text-align: left;
	max-width: calc(80% - 50px);
	flex: 1 1 auto;
	overflow: hidden;
}

.plan2 .route .primary-stop #infos #name {
	font-size: 20px;
	margin-top: 20px;
	white-space: nowrap;
}

.plan2 .route .primary-stop #infos #description {
	font-size: 10px;
	opacity: 0.25;
}

.plan2 .route .stop {
	height: 25px;
	min-height: 25px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: start;
}

.plan2 .route .stop #time {
	width: 20%;
	height: 100%;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: end;
}

.plan2 .route .stop #form {
	width: 50px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.plan2 .route .stop #form .line {
	height: 100%;
	width: 15px;
}

.plan2 .route .stop #form .semi-line {
	height: 50%;
	width: 15px;
	position: absolute;
	left: calc(50% - 7.5px);
}

.plan2 .route .stop #form .icon {
	width: 15px;
	height: 15px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.plan2 .route .stop #infos {
	display: flex;
	align-items: center;
	justify-content: left;
	max-width: calc(80% - 50px);
	overflow: hidden;
}

.plan2 .route .stop #infos #name {
	font-size: 15px;
	white-space: nowrap;
}

.plan2 .route .stop #infos #description {
	margin-left: 5px;
	font-size: 10px;
	opacity: 0.25;
	white-space: nowrap;
}

@media screen and (max-width: 1200px) {
	#map {
		height: calc(100% - 100px);
	}

	#controls {
		top: 10px;
		left: 10px;
		height: 50px;
		flex-direction: unset;
	}

	#controls .control#zoom {
		display: flex;
	}

	#popup {
		border-radius: 25px 25px 0px 0px;
		top: auto;
		bottom: 0px;
		left: 0px;
		width: calc(100% - 50px);
		height: calc(100% - 100px) !important;
		transition: transform 0.25s;
		padding-bottom: 0px;
	}

	#popup #drag-handle {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 25px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition-duration: 200ms;
		cursor: grab;
		border-radius: 25px 25px 0px 0px;
	}

	#popup #drag-handle:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}

	#popup #drag-handle:active {
		cursor: grabbing;
	}

	#popup #drag-handle div {
		width: 25%;
		height: 5px;
		background-color: #9ca3af;
		border-radius: 9999px;
	}

	#popup #popup-content .content {
		max-height: unset !important;
	}
}
