:root {
	--line-color: #008000; /* Default to Green Line E */
	--line-color-lighter: #ccffcc; /* Default to lighter Green Line E */
}

body {
	font-family: Arial, sans-serif;
	background-color: var(--line-color-lighter);
	margin: 20px 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	text-align: center;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	width: 90%;
	max-width: 400px;
	margin: 20px 0;
}

.inputs {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

h1 {
	color: #333;
	margin-top: 0;
}

ul {
	list-style-type: none;
	padding: 0;
	margin-top: 0;
	transition: 1s ease;
}

li {
	padding: 5px;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition:
		background-color 0.6s ease,
		color 0.6s ease;
}

.current-location {
	color: var(--line-color);
	font-weight: bold;
	background-color: var(--line-color-lighter);
}

.status-span {
	margin-left: 10px;
	font-weight: normal;
	color: inherit;
	transition: opacity 0.6s ease;
}

/* Button styles */
.button-container {
	margin-bottom: 20px;
	margin-top: 10px;
	display: flex;
	justify-content: center;
}

.direction-button-container {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.direction-button-container-label-up {
	display: flex;
	flex-direction: row;
	align-items: center;
	background-color: var(--line-color-lighter);
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.direction-button-container-label-down {
	display: flex;
	flex-direction: row;
	align-items: center;
	background-color: var(--line-color-lighter);
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.direction-button-container-label-up:not(.selected) {
	background-color: #ddd;
}

.direction-button-container-label-down:not(.selected) {
	background-color: #ddd;
}

.direction-button-container-label-up:hover {
	background-color: var(--line-color-lighter);
}

.direction-button-container-label-down:hover {
	background-color: var(--line-color-lighter);
}

.direction-button-label-down {
	margin-right: 9px;
}

.direction-button-label-up {
	margin-right: 9px;
}

.button-container button {
	background-color: var(--line-color);
	border: none;
	color: white;
	padding: 6px 14px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	cursor: pointer;
	border-radius: 8px;
	transition-duration: 0.4s;
	margin-right: 8px;
}

.button-container button:hover {
	background-color: var(--line-color);
}

.direction-button:not(.selected) {
	background-color: #ddd;
}

.line-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	align-self: center;
}

.line-select {
	margin-left: 4px;
}

.alert-button {
	margin-left: 10px;
	background: none;
	/* padding: 0; */
	cursor: pointer;
	font-size: 20px;
}

.switch-container {
	display: flex;
	flex-direction: row;
	align-self: center;
	align-items: center;
	margin-top: 12px;
}

.label {
	margin: 0 10px;
	font-size: 16px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--line-color);
	transition: 0.4s;
	border-radius: 34px;
}

/* The slider before */
.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

/* Checked state */
input:checked + .slider {
	background-color: var(--line-color);
}

/* Move the slider to the right when checked */
input:checked + .slider:before {
	transform: translateX(26px);
}

#lineSelect {
	padding: 10px;
	font-size: 16px;
}

.direction-label {
	padding: 10px;
	font-weight: bold;
	align-content: center;
}

.styled-list {
	list-style-type: none;
	padding: 0;
	display: flex;
}

.styled-list-item {
	border-bottom: 1px solid #ccc;
	padding: 15px 0;
}

.styled-list-header {
	display: flex;
	align-items: center;
	width: 100%; /* Make header take full width of the list item */
	padding: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	flex-wrap: wrap;
	text-align: left;
}

.styled-list-header:hover {
	background-color: #eaeaea;
}

.styled-list-title {
	font-weight: bold;
	font-size: 1.2em;
	color: #333;
}

.styled-list-badge {
	color: #333;
	border-radius: 20px;
	padding: 5px 10px;
	font-size: 0.9em;
	font-weight: bold;
	margin-left: 10px;
}

.styled-list-arrow {
	font-size: 1.2em;
	margin-left: auto; /* Push arrow to the rightmost side */
	transition: transform 0.3s ease;
}

.styled-list-arrow.rotate {
	transform: rotate(180deg); /* Rotate arrow down when clicked */
}

.styled-list-description {
	display: none;
	margin-top: 10px;
	font-size: 1em;
	color: #333;
}

.styled-list-description.show {
	display: block;
}
