:root {
	--routetype1: #e91e63;
	--routetype2: #24b300;
	--routetype3: #0082ce;
}
body {
	padding: 80% 0 0;
	margin: 0;
}
*:not(input):not(textarea) {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
*:not(i) {
	font-family: 'Helvetica', '黑體', 'Arial', '微軟正黑體';
	line-height: 1.2;
}
.btn-primary,
.btn-primary:focus {
	background-color: #26828a;
	border-color: #26828a;
}
.btn-primary:hover {
	background-color: #26828a;
	border-color: #26828a;
}
.btn.disable {
	opacity: 0.3;
}
.modal-header {
	background-color: #00363e;
	color: #fff;
}
.modal-header button.close {
	background-color: transparent;
	border: 0;
	color: #fff;
}
.modal-footer {
	background-color: #eee;
}
.hidden {
	display: none;
}
.italic {
	font-style: italic;
}
.small {
	display: inline-block;
	font-size: 70%;
	line-height: 1.2;
}
.app {
	padding-top: 15px;
	padding-bottom: 100px;
	margin: 0 auto;
	width: 100%;
	max-width: 520px;
	box-shadow: 0 0 10px rgb(0 0 0 / 20%);
}
.map-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 40%;
	background-color: #ddd;
	z-index: 3;
}
.map-container #map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.selected-route {

}
.selected-route .not-selected {
	padding: 80px 0;
	text-align: center;
}
.selected-route .not-selected .input-route-form {

}
.selected-route .not-selected .input-route-form h3 {
	margin-bottom: 15px;
}
.selected-route .not-selected .input-route-form input[type="text"],
.selected-route .not-selected .input-route-form button {
	margin: 0 auto 5px;
    width: 170px;
    text-align: center;
}
.selected-route .route-container {
	margin: 00 auto;
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
}
.selected-route .route-container .route-header {
	background-color: #ddd;
	color: #fff;
}
.selected-route .route-container .route-header .number-title {
	display: flex;
	align-items: center;
}
.selected-route .route-container .route-header .number-title .route-number {
	width: 30%;
	text-align: center;
	border-right: 1px solid rgb(255 255 255 / 30%);
}
.selected-route .route-container .route-header .number-title .route-title {
	padding: 10px 20px;
	width: 70%;
}
.selected-route .route-container .route-header .route-type {
	padding-bottom: 10px;
	text-align: center;
}
.selected-route .route-container .stop-list {
	padding: 20px;
}
.selected-route .route-container .stop-list .stop {
	position: relative;
	padding: 0 0 20px 60px;
	overflow-y: hidden;
}
.selected-route .route-container .stop-list .stop:before {
	content: " ";
	position: absolute;
	top: 4px;
	left: 20px;
    width: 20px;
    height: 20px;
	border: 3px solid;
	border-color: #ddd;
	border-radius: 10px;
	background-color: #ddd;
	z-index: 2;
}
.selected-route .route-container .stop-list .stop:first-child:before {
	background-color: #00dd00 !important;
}
.selected-route .route-container .stop-list .stop:last-child:before {
	background-color: #ffeb3b !important;
}
.selected-route .route-container .stop-list .stop:after {
	content: " ";
	position: absolute;
	left: 28px;
	top: 0;
	width: 4px;
	height: 100%;
	background-color: #ddd;
	z-index: 1;
}
.selected-route .route-container .stop-list .stop:first-child:after {
	top: 10px;
}
.selected-route .route-container .stop-list .stop:last-child {
	padding-bottom: 0;
}
.selected-route .route-container .stop-list .stop:last-child:after {
	height: 14px;
}
.selected-route .route-container .stop-list .stop .stop-name {
	margin-bottom: 4px;
	font-size: 1.4rem;
	font-weight: 600;
}
.selected-route .route-container .stop-list .stop .departure {

}
.selected-route .route-container .stop-list .stop .departure .time {
	margin-right: 10px;
}
.selected-route .route-container .stop-list .stop .departure .time-left {

}
.selected-route .route-container .frequencies {

}
.selected-route .route-container .frequencies .title {
	padding: 10px 0;
	color: #fff;
	background-color: #ddd;
	text-align: center;
}
.selected-route .route-container .frequencies .holiday {
	padding: 15px 0 0;
    text-align: center;
    color: #f00;
	font-size: 0.8rem;
    font-style: italic;
}
.selected-route .route-container .frequencies .frequency-list {
	padding: 10px 22px;
}
.selected-route .route-container .frequencies .frequency-list .frequeny {
	position: relative;
	padding: 5px 0;
	text-align: center;
	font-size: 1.4rem;
	color: #fff;
}
.selected-route .route-container .frequencies .frequency-list .frequeny.disabled {
	color: #ccc;
}
.selected-route .route-container .frequencies .frequency-list .frequeny.enabled {
	color: #000;
}
.selected-route .route-container .frequencies .frequency-list .frequeny.next:after {
	content: "🚌";
	position: absolute;
	top: 6px;
	left: -16px;
	font-size: 1rem;
}
.selected-route .route-container .frequencies .frequency-list .frequeny.cancel {
	text-decoration: line-through;
}
.selected-route .route-container .frequencies .frequency-list .frequeny.cancel:after {
	content: "❌";
	position: absolute;
	top: 6px;
	left: -16px;
	font-size: 1rem;
}
.selected-route .route-container .remarks-notices {
	padding: 20px 10px 10px;
	font-size: 0.7rem;
	border-top: 1px solid #ddd;
}
.selected-route .route-container .remarks-notices .remarks ul,
.selected-route .route-container .remarks-notices .notices ul {
	padding-left: 16px;
	margin-bottom: 6px;
	list-style-type: decimal;
}
.selected-route .route-container .remarks-notices p {
	margin-bottom: 5px;
}
.selected-route .route-container .remarks-notices .remarks ul li,
.selected-route .route-container .remarks-notices .notices ul li {
	margin-bottom: 5px;
}
.selected-route .route-container[data-route-type-id="1"] { border: 1px solid var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .route-header { background-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .stop-list .stop:before { background-color: var(--routetype1); border-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .stop-list .stop:first-child:before { border-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .stop-list .stop:last-child:before { border-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .stop-list .stop:after { background-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .frequencies .title { background-color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="1"] .frequencies .frequency-list .frequeny.next { color: var(--routetype1); }
.selected-route .route-container[data-route-type-id="2"] { border: 1px solid var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .route-header { background-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .stop-list .stop:before { background-color: var(--routetype2); border-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .stop-list .stop:first-child:before { border-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .stop-list .stop:last-child:before { border-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .stop-list .stop:after { background-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .frequencies .title { background-color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="2"] .frequencies .frequency-list .frequeny.next { color: var(--routetype2); }
.selected-route .route-container[data-route-type-id="3"] { border: 1px solid var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .route-header { background-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .stop-list .stop:before { background-color: var(--routetype3); border-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .stop-list .stop:first-child:before { border-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .stop-list .stop:last-child:before { border-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .stop-list .stop:after { background-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .frequencies .title { background-color: var(--routetype3); }
.selected-route .route-container[data-route-type-id="3"] .frequencies .frequency-list .frequeny.next { color: var(--routetype3); }

.select-route-list .route {
	display: flex;
	align-items: center;
	padding: 10px 0;
	margin-bottom: 10px;
	color: #fff;
	border-radius: 5px;
}
.select-route-list .route:last-child {
	margin-bottom: 0;
}
.select-route-list .route[data-route-type="1"] {
	background-color: var(--routetype1);
}
.select-route-list .route[data-route-type="2"] {
	background-color: var(--routetype2);
}
.select-route-list .route[data-route-type="3"] {
	background-color: var(--routetype3);
}
.select-route-list .route .route-number {
	width: 30%;
	text-align: center;
	border-right: 1px solid rgb(255 255 255 / 30%);
}
.select-route-list .route .route-title {
	padding-left: 20px;
	padding-right: 10px;
	width: 70%;
}
.select-route-list .route .route-title .title {
	font-weight: 600;
}
#announcement-modal .modal-body {
	overflow-y: scroll;
}
.announcement-list {

}
.announcement-list .announcement-item {
    padding-bottom: 10px;
	margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
	font-size: 0.8rem;
}
.announcement-list .announcement-item:last-child {
    padding-bottom: 0;
	margin-bottom: 0;
    border-bottom: 0;
}
.announcement-list .announcement-item .title {
	position: relative;
	margin-bottom: 5px;
	padding-left: 15px;
	font-weight: 600;
}
.announcement-list .announcement-item .title:after {
	content: " ";
	position: absolute;
	top: 4px;
	left: 2px;
	width: 6px;
	height: 6px;
	background-color: #000;
	border-radius: 3px;
}
.announcement-list .announcement-item[data-route-type-id="1"] .title:after { background-color: var(--routetype1); }
.announcement-list .announcement-item[data-route-type-id="2"] .title:after { background-color: var(--routetype2); }
.announcement-list .announcement-item[data-route-type-id="3"] .title:after { background-color: var(--routetype3); }
.announcement-list .announcement-item .content {
	margin-bottom: 5px;
}
.announcement-list .announcement-item .date {
	color: #ccc;
	text-align: right;
	font-style: italic;
	font-size: 0.6rem;
}
#trafficnews-modal .modal-body {
	overflow-y: scroll;
}
#trafficnews-modal .modal-body .notice {
    display: block;
    padding: 5px 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    background-color: #eee;
    font-style: italic;
}
.trafficnews-list .trafficnews-item {
    padding-bottom: 10px;
	margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
	font-size: 0.8rem;
}
.trafficnews-list .trafficnews-item .title-bar {
	display: flex;
	margin-bottom: 5px;
}
.trafficnews-list .trafficnews-item .title-bar .title {
	width: 60%;
	font-weight: 600;
}
.trafficnews-list .trafficnews-item .title-bar .announcement-date {
	width: 50%;
	text-align: right;
	color: #aaa;
	font-size: 0.6rem;
	font-weight: 200;
	font-style: italic;
}
#trafficnews-modal .modal-body .load-more-bar {
	text-align: center;
}
#trafficnews-modal .modal-body .load-more-bar p.loading,
#trafficnews-modal .modal-body .load-more-bar.loading a.load-more-trafficnews {
	display: none;
}
#trafficnews-modal .modal-body .load-more-bar.loading p.loading,
#trafficnews-modal .modal-body .load-more-bar a.load-more-trafficnews {
	display: block;
}
#feedback-form-modal .modal-body {
	overflow-y: scroll;
}
#settings-modal .modal-body .settings-form .row {
	align-items: center;
}
#settings-modal .modal-body .settings-form .row .col {
	width: 50%;
	max-width: 50%;
}
#settings-modal .modal-body .settings-form .row .col:last-child {
	text-align: right;
}
#settings-modal .modal-body .settings-form .row .col .btn-group-toggle .btn {
	background-color: #26828a;
	border-color: #26828a;
	opacity: 0.4;
}
#settings-modal .modal-body .settings-form .row .col .btn-group-toggle .btn.active {
	opacity: 1;
}
.feedback-form .form-group {
	width: 100%;
}
.feedback-form textarea {
	min-height: 100px;
}
.adbanner {
	position: relative;
    overflow: hidden;
}
.adbanner:after {
	content: "Ads";
	position: absolute;
	bottom: 5px;
	right: 5px;
	padding: 8px 4px;
    background-color: rgb(255 255 255 / 80%);
    font-size: 0.6rem;
    line-height: 0;
	border-radius: 2px;
}
.adbanner img {
	width: 100%;
}
.adbanner.position5 {
	margin-top: 15px;
}
.adbanner.position6 {
	margin-top: 5px;
	margin-bottom: 15px;
}
.bottom-bar {
	position: fixed;
	bottom: 0;
	left: 50%;
	width: 100%;
	max-width: 520px;
	transform: translateX(-50%);
	background-color: #00363e;
}
.bottom-bar ul.footer-menu {
	display: flex;
	padding: 0;
	margin: 0;
	list-style-type: none;
}
.bottom-bar ul.footer-menu li {
	position: relative;
	flex-grow: 1;
	width: 20%;
	text-align: center;
}
.bottom-bar ul.footer-menu li img {
	display: block;
	margin: 0 auto 3px;
	width: 18px;
}
.bottom-bar ul.footer-menu li a {
	display: block;
	padding: 12px 0;
	color: #fff;
	font-size: 0.8rem;
	text-decoration: none;
}
.bottom-bar ul.footer-menu li .badge {
    position: absolute;
    top: -5px;
    right: 5px;
    width: 24px;
    height: 24px;
    color: #fff;
    text-align: center;
    background-color: #f00;
    border-radius: 12px;
    line-height: 1.6;
}
.bottom-bar ul.footer-menu li a:hover {
	background-color: rgb(0 0 0 / 40%);
}
