:root {
    --colour_scheduled: rgb(169,169,169);
    --colour_ontime: rgb(85,213,255);
    --colour_early: rgb(0, 255, 0);
    --colour_late: rgb(255, 0, 0);

    --blue1: rgb(30,40,90);
    --blue1_hover: rgb(30, 56, 90);
    --blue2: rgb(20,20,50);

    --main_bg: rgb(30, 30, 30);
    --secondary_bg: rgb(42, 42, 42);

    --linkHoverColour: rgb(0, 183, 255);
}

body {
    background-color: var(--main_bg);
    color: white;
    margin: 0;
    /* font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif */
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.map {
    display: block;
    width: 80%;
    height: 400px;
}

.vehiclesinfo {
    display: block;
    margin: auto;
    width: 80%;
    min-height: 45vh;
    max-height: 45vh;
    overflow-y: auto;
    margin-bottom: 25px;
    text-align: center;
}

.vehiclesinfo .loading-block {
    display: block;
    position: absolute;
    z-index: 1000;
    left:0;
    right:0;
    top:10px;
    padding: 6px 22px;
    font-size: 18px;
    margin: auto;
    width: fit-content;
    height: fit-content;
    background-color: rgb(30,30,30);
    color: white;
}

.vehicleinfoblock i {
    float:left;
    padding-right: 11px;
    color:grey;
}
.vehicleinfoblock .favouriteStar {
    display: block;
    position: absolute;
    top: 8px;
    left: 2px;
    color: gold;
}

.vehicleinfoblock {
    --route-colour: rgb(48,48,48);
    --route-colour-accent: rgb(65,65,65);

    display: inline-block;
    position: relative;
    margin: auto;
    background-color: rgb(48,48,48);
    border-bottom: 2px solid var(--route-colour);
    border-right: 2px solid var(--route-colour-accent);
    border-radius: 4px;
    color: white;
    width: fit-content;
    height: fit-content;
    padding: 12px 16px;
    cursor: default;
    margin: 10px;
    min-width: 150px;
    text-decoration: none;
    transition: 0.15s ease-in-out border;
}
.vehicleinfoblock:hover {
    cursor: pointer;
    background-color: rgb(38,38,38);
    border-bottom: 8px solid var(--route-colour);
    border-right: 10px solid var(--route-colour-accent);
}
.vehicleinfoblock:hover i:not(.favouriteStar) {
    color: var(--route-colour);
}

.vehicles-title {
    text-align: center;
    font-size: 2vh;
}
.vehicles-title .searchControls {
    display: block;
    margin: auto;
    width: 60%;
    text-align: left;
    font-size: 16px;
}
.vehicles-title .searchControls div, .vehicles-title .searchControls p {
    display: inline-block;
    margin-right: 15px;
}
/* Give the checkbox labels a lighter font, so it can distinguish from the main label. */
.vehicles-title .searchControls div {
    font-weight: lighter;
}

@media screen and (max-width: 750px) {
    .vehicles-title .searchControls {
        width: 85%;
    }
    .vehiclesinfo {
        width: 90%;
    }
}
@media screen and (max-width: 450px) {
    .vehiclesinfo {
        width: 100%;
    }
}

.vehicles_info_title {
    text-align: center;
    font-size: 4vh;
}
.vehicles_info_title a {
    text-decoration: none;
}
.vehicles_info_title .destination {
    color: white;
}

h1,h2 {
    text-align: center;
}
h3 {
    text-align: center;
    font-size: 1.9vh;
}

.vehicles_info_title .fav_btn {
    font-size: 4vh;
    color: yellow;
    margin-left: 10px;
}
.vehicles_info_title .fav_btn:hover {
    text-shadow: 0 0 10px yellow;
    cursor: pointer;
}

.vehicle_icon::before {
    font-family: FontAwesome;
    font-size: 0.9em;
    margin-right: 0.4em;
    /* color: #27ae60; */
    color: white;
    align-self: center;
}
.bus_icon::before {
    content: "\f55e"; 
}
.tram_icon::before {
    content: "\e5b4"; 
}
.train_icon::before {
    content: "\f239";
}
.map_not_available {
    /* display: inline-block; */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3vh;

    background-color: rgb(10,10,10);
    /* width: 225px;
    height: 225px; */
    width: 10em;
    height: 10em;
    padding: 10px 10px;
    margin-right: 5%;
}
.route_details {
    display: block;
    margin: 2vh;
    font-size: 2.5vh;
}
.list_of_stops {
    margin-bottom: 5vh;
}
.list_of_stops a {
    color: white;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}
.list_of_stops a:hover {
    color: rgba(180,180,180);
    text-decoration: none;
}

.upcoming_trip_realtime {
    display: block;
    margin: auto;
    position: relative;
    background-color: rgb(40,40,40);
    color: white;
    width: fit-content;
    min-width: 50%;
    height: fit-content;
    min-height: 85px !important;
    text-align: center;

    padding-top: 8px;
    padding-left: 10px;
    padding-right: 10px;
    
    margin-bottom: 20px;
    position: relative;
    text-decoration: none;
    transition: background-color 0.4s ease-in-out;
}
@media screen and (min-width: 1650px) {
    .upcoming_trip_realtime {
        min-width: 30%;
    }
}
.upcoming_trip_realtime:hover {
    background-color: rgb(20,20,20);
    cursor: pointer;
}
.noclick:hover {
    background-color: rgb(40,40,40);
    cursor: default;
}

.upcoming_trip_realtime span {
    display: block;
    margin: auto;
    padding-bottom: 5px;
}
.upcoming_trip_realtime #line_number {
    display: block;
    margin: auto;
    position: absolute;
    width: fit-content;
    min-width: 10%;
    left:0;
    right:0;
    top:0;
    padding: 0 8px;
}
.upcoming_trip_realtime #vehicle_id {
    display: block;
    margin: auto;
    position: absolute;
    right:0;
    bottom:0;
    margin-right: 5px;
    margin-bottom: 5px;
}
.upcoming_trip_realtime #arrival_time {
    display: block;
    margin: auto;
    /* position: absolute; */
    position: relative;
    left:0;
    right:0;
    bottom:0;
}

.upcoming_trip_realtime #scheduled {
    /* color:rgb(169,169,169) !important; */
    color: var(--colour_scheduled) !important;
}
.upcoming_trip_realtime #ontime {
    /* color:rgb(85, 213, 255) !important; */
    color: var(--colour_ontime) !important;
}
.upcoming_trip_realtime #early {
    /* color:lime !important; */
    color: var(--colour_early) !important;
}
.upcoming_trip_realtime #late {
    /* color:red !important; */
    color: var(--colour_late) !important;
}

.upcoming_trip_realtime #destination_name {
    font-size: 20px;
    vertical-align: middle;
}

.upcoming_trip_realtime #zone {
    display: block;
    margin: auto;
    position: absolute;
    top:0;bottom:0;
    right: 5%;
    height: fit-content;
    width: fit-content;
    font-size: 24px;
}

.upcoming_trip_realtime .tags {
    display: block;
    margin: auto;
    position: absolute;
    top:0;
    right:0;
    margin-right: 5px;
    float: left;
}
.upcoming_trip_realtime span {
    display: inline-block;
}
.upcoming_trip_realtime .accessible::before {
    font-family: FontAwesome;
    content: "\f193";
    background-color: blue;
    border-radius: 50%;
    font-size: 15px;
}
.upcoming_trip_realtime .realtime::before {
    font-family: FontAwesome;
    content: "\f7c0";
    background-color: blue;
    border-radius: 50%;
    font-size: 15px;
}

hr {
    min-width: 40%;
    width: fit-content;
    padding: 0 20px;
}

.search_stops_div {
    display: block;
    margin: auto;
    width: 60%;
    border-radius: 10px;
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.search_stops_div input, button {
    display: inline-block;
}

.search_stops {
    display: block;
    margin: auto;
    width: 80%;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    outline: none;
    border: none;
    box-shadow: 0;
    transition: 0.2s ease-in-out box-shadow;
}
.search_stops_submit {
    display: inline-block;
    margin: auto;
    padding: 12px 24px;
    border-radius: 10px;
    outline: none;
    border: 1px solid white;
    margin-left: 5px;
}
.search_stops_submit:hover {
    cursor: pointer;
    background-color: rgb(210, 210, 210);
    border: 1px solid rgb(210, 210, 210);
}
.search_stops_submit::after {
    font-family: FontAwesome;
    content: "\f002";
    color: grey;
    font-size: 16px;
    text-align: center;
}
.search_stops:focus {
    box-shadow: 0 0 5px 4px rgb(70, 70, 70);
}

@media screen and (max-width: 768px) {
    .search_stops_div {
        width: 90%;
    }
    .search_stops {
        width: 60%;
    }
}
@media screen and (max-width: 350px) {
    .search_stops {
        width: 65%;
    }
    .search_stops_submit {
        padding: 12px 16px;
    }
}

.backbtn {
    display: block;
    margin: auto;
    text-align: center;
    color: white;
}

.custom_context_menu_show {
    display: block;
    position: absolute;
    z-index: 100;
    padding: 2px;
    margin: 0;
    background-color: rgb(30,30,30);
    color: white;
    border: 1px solid rgb(60,60,60);
    list-style-type: none;
    list-style: none;
    top:0;
    left:0;
}
.custom_context_menu_show a {
    text-decoration: none;
    color: white;
    border: 0 !important;
    text-align: left;
    cursor: default;
}
.custom_context_menu_show a:hover {
    background-color: rgb(80,80,80);
}
.custom_context_menu_hide {
    display: none;
}
.custom_context_menu_show li {
    list-style: none;
    padding: 4px 16px;
}

#extra {
    display: none;
    visibility: hidden;
}


.trip_map {
    display: block;
    margin: auto;
    width: 80%;
    height: 45vh;
    margin-bottom: 25px;
}
.trip_stop_list {
    display: block;
    margin: auto;
    overflow-y: auto;
    height: 40vh;
    width: 80%;
}
.trip_stop_list .stop {
    display: block;
    margin: auto;
    background-color: rgb(20,20,20);
    border: 2px solid rgb(40,40,40);
    color: white;
    text-align: center;
    margin-bottom: 15px;
    width: 80%;
    height: fit-content;
    padding: 18px 0;
    text-decoration: none;
    transition: 0.2s ease-in-out border, 0.2s ease-in-out background-color;
}
.trip_stop_list .stop:hover {
    background-color: rgb(40,40,40);
    border: 2px solid rgb(80,80,80);
    cursor: pointer;
}
.trip_stop_list .stop_desc {
    font-size: 12px;
}

.toggle_route_stops {
    text-align: center;
    transition: color 0.2s ease-in-out;
    width: fit-content;
}
.toggle_route_stops:hover {
    cursor: not-allowed;
    color: rgb(200,200,200);
}

.debug_page_box {
    display: block;
    margin: auto;
    margin-top: 4vh;
    background-color: rgb(15,15,15);
    width: 70%;
    height: fit-content;
    min-height: 50vh;
    padding: 8px 32px;
}
.debug_page_box h2, .debug_page_box h3, .debug_page_box p {
    text-align: left;
}

.nojs_warn {
    display: block;
    margin: auto;
    position: absolute;
    left:0;
    right:0;
    text-align: center;
    background-color: rgba(220,220,0,0.4);
    border: 2px solid rgb(225,225,0);
    height: fit-content;
    padding: 6px 0;
    color: white;
}
.nojs_warn::before {
    display: block;
    position: absolute;
    top:0;bottom:0;
    font-size: 6.5rem;
    color: white;
    font-family: FontAwesome;
    content: "\f071";
    color: white;
    padding: 12px;
}
.nojs_warn .h1_smaller {
    font-size: 22px;
}

.loading_text {
    animation-name: loading_text;
    animation-duration: 1.2s;
    animation-fill-mode: both;
    animation-direction: alternate;
    animation-iteration-count: infinite;
}

@keyframes loading_text {
    0% {
        color: rgb(100,100,100);
    }
    100% {
        color: white;
    }
}

/* Loading container for stop arrivals */
.loading_container {
    display: block;
    margin: auto;
    background-color: rgb(20,20,20);
    width: 60vw;
    height: fit-content;
    margin-top: 5vh;
    padding: 4px 22px;
}
.loading_container:empty {
    padding: 0;
}

.stop_arrivals_loading_temp {
    display: block;
    margin: auto;
    background-color: rgb(40,40,40);
    color: white;
    width: fit-content;
    min-width: 40%;
    height: fit-content;
    text-align: center;
    min-height: 9vh;
    padding: 8px 20px;
    margin-bottom: 20px;
    position: relative;
    text-decoration: none;
    animation-name: loading_opacity;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-direction: alternate;
    animation-iteration-count: infinite;
}

@keyframes loading_opacity {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.static_bus_info {
    display: block;
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 1600px;
    height: fit-content;
    min-height: 400px;
    background-color: rgb(22,22,22);
    color: white;
    text-align: center;
    padding: 12px 18px;
    /* box-shadow: 5px 5px 15px black; */
    border-radius: 15px;
}

.static_bus_info .bus_number {
    font-size: 36px;
}

.static_bus_info .bus_number .fav_btn {
    font-size: 36px;
    color: yellow;
    margin-left: 15px;
}
.static_bus_info .bus_number .fav_btn:hover {
    text-shadow: 0 0 10px yellow;
    cursor: pointer;
}

.static_bus_info .last_seen {
    display: block;
    margin: auto;
    position: relative;
    bottom:0;
    left:0;
    right:0;
    padding: 24px;
}

.lastseen_map {
    display: block;
    margin: auto;
    width: 80%;
    max-width: 1000px;
    height: 250px;
    border: none;
}

.static_bus_info .vehicle_chassis_body {
    font-size: 24px;
    color: rgb(190,190,190);
    margin-top: -15px;
}

.static_bus_info .dateAddedIndicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: auto;
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 16px;
    background-color: var(--secondary_bg);
    border-radius: 5px;
    box-shadow: 3px 3px 5px black;
}
.static_bus_info .dateAddedIndicator .label {
    display: block;
    margin: auto;
    font-size: 12px;
    color: grey;
    position: absolute;
    bottom: 2px;
    left: 0; right: 0;
}
.static_bus_info .dateAddedIndicator .label.bottom {
    bottom: 2px;
    top: unset;
}
.static_bus_info .dateAddedIndicator .label.top {
    bottom: unset;
    top: 2px;
}
.dateAddedIndicatorSeperator {
    display: none;
}

/* Mobile resizing for vehicle info page. */
@media screen and (max-width: 650px) {
    .static_bus_info {
        width: 100%;
        padding: 12px 0;
        border-radius: 0;
    }

    .lastseen_map {
        width: 90%;
    }

    .static_bus_info .bus_image {
        width: 350px !important;
    }

    .previous_trips {
        font-size: 12px;
    }

    .static_bus_info .vehicle_chassis_body {
        font-size: 16px;
    }

    .static_bus_info .dateAddedIndicator {
        display: block;
        margin: auto;
        position: relative;
        right: 0; top: 0;
        width: fit-content;

        /* width: 100%;
        padding: 16px 0;
        box-shadow: unset;
        border-radius: 0; */
    }

    .dateAddedIndicatorSeperator {
        display: block;
    }
}

@media screen and (max-width: 400px) {
    .static_bus_info .bus_image {
        width: 250px !important;
    }

    .previous_trips {
        font-size: 10px;
    }
}

.last_seen .route.loaded {
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 5px;
}

.static_bus_info .bus_image {
    display: block;
    margin: auto;
    width: 450px;
    padding: 6px 22px;
    /* background-color: rgb(15,15,15); */
    /* border: 4px inset rgb(30,30,30); */
}

.previous_trips {
    display: block;
    margin: auto;
}
.previous_trips .route {
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 5px;
}
.previous_trips .time {
    color: rgb(130,130,130);
}
.previous_trips .trip {
    display: block;
    margin: auto;
    margin-top: 10px;
    width: fit-content;
}
.previous_trips .trip:hover {
    font-weight: bolder;
    cursor: pointer;
}
.previous_trips .trip.active {
    font-weight: bolder;
}

.vehicle_info_punctuality {
    text-align: center;
}
.vehicle_info_punctuality.ontime {
    color: var(--colour_ontime);
}
.vehicle_info_punctuality.late {
    color: var(--colour_late)
}
.vehicle_info_punctuality.early {
    color: var(--colour_early);
}
.alerts_div .alert {
    display: block;
    margin: auto;
    background-color: rgb(40,40,40);
    color: white;
    width: fit-content;
    min-width: 40%;
    padding: 8px 20px;
    margin-bottom: 20px;
    position: relative;
    text-decoration: none;
    border-left: 5px solid red;
    border-right: 5px solid red;
    transition: background-color 0.4s ease-in-out;
    overflow: hidden;
    border-radius: 5px;
    max-width: 80%;
}
.alerts_div .alert:hover {
    background-color: rgb(20,20,20);
    cursor: pointer;
}
.alerts_div .alert .routes {
    display: block;
    margin: auto;
    width: fit-content;
    min-width: 10%;
    left:0;
    right:0;
    top:0;
    padding: 0 8px;
    margin-top: 5px;
    height: fit-content;
}
.alerts_div .alert.active {
    max-height: 70vh;
    overflow: auto;
}

/* On smaller screens, only show up to 4 affected routes until expanded. */
@media screen and (max-width: 450px) {
    .alerts_div .alert .routes .route:nth-child(n+5), .alerts .alert .routes .route:nth-child(n+5) {
        display: none !important;
    }

    .additionalRoutesNote:not(:empty) {
        display: inline-block !important;
    }

    .alerts_div .alert.active .routes .route:nth-child(n+5) {
        display: inline-block !important;
    }
}

.alerts_div .alert .routes .route {
    display: inline-block;
    margin-top: 5px;
}

.alerts_div .alert .description {
    display: block;
    max-height: 0;
    height: fit-content;
    transition: max-height 0.3s ease-in-out;
    padding: 4px 0;
}
.alerts_div .alert .description.instant {
    transition: 0s !important;
}

.service_alerts {
    display: block;
    margin: auto;
    width: 100%;
    min-height: 200px;
    height: fit-content;
}

.service_alerts .alerts {
    display: none;
    margin: auto;
    margin-bottom: 100px;
}
.service_alerts .alerts.show {
    display: block;
}

.service_alerts .alerts .alert {
    display: block;
    margin: auto;
    background-color: rgb(40,40,40);
    color: white;
    width: 60%;
    padding: 0 20px;
    padding-top: 8px;
    margin-bottom: 10px;
    position: relative;
    text-decoration: none;
    /* transition: background-color 0.25s ease-in-out; */
    overflow: hidden;
    border-radius: 5px;
}
.service_alerts .alerts .alert:hover {
    background-color: rgb(20,20,20);
    cursor: pointer;
}
.service_alerts .alerts .alert .description {
    display: block;
    max-height: 0;
    height: fit-content;
    transition: max-height 0.3s ease-in-out;
}
.service_alerts .alerts .alert .routes {
    display: block;
    margin: auto;
    margin-bottom: 5px;
}
.service_alerts .alerts .alert .routes .route {
    display: inline-block;
}

@media screen and (max-width: 450px) {
    .service_alerts .alerts .alert {
        width: 75%;
    }
}

.service_alerts .alerts .alert.read {
    opacity: 0.7;
}
.service_alerts .alerts .alert .readIcon {
    display: block;
    margin: auto;
    position: absolute;
    top: 0; bottom: 0;
    right: 15px;
    width: fit-content;
    height: fit-content;
    font-size: 24px;
}

.service_alerts .options {
    display: block;
    margin: auto;
    width: fit-content;
    margin-bottom: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
}
.service_alerts .options div {
    display: inline-block;
    margin: auto;
    margin-right: 10px;
    margin-left: 10px;
}

.service_alerts #optionsCollapseTitle {
    display: block;
    margin: auto;
    margin-bottom: 10px;
    width: fit-content;
    cursor: pointer;
}

/* .dashboard {
    display: block;
    position: absolute;
    left:0;right:0;
    margin: auto;
    height: fit-content;
    width: fit-content;
}
.dashboard .service_alerts {
    display: block;
    margin: auto;
    width: fit-content;
}
.dashboard a {
    color: white;
} */

.see_previous_arrivals_btn {
    display: block;
    margin: auto;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

.stop_title {
    display: block;
    margin: auto;
    text-align: center;
}
.stop_title h1 {
    display: inline-block;
}

/* Default styling for smaller screens. */
.stopinfo_header h1 {
    font-size: 1.5em;
}
.stopinfo_header h2 {
    font-size: 1em;
}
.stop_title .fav_btn {
    display: inline-block;
    font-size: 1.5em;
    margin-left: 10px;
    color: yellow;
}
.stop_title .fav_btn:hover {
    cursor: pointer;
    text-shadow: 0 0 10px yellow;
}

.stopinfo_header .content {
    position: relative;
}

/* Make header stick when scrolling for larger screens. */
@media screen and (min-width: 1200px) {
    .stopinfo_header.pinned {
        display: block;
        margin: auto;
        position: sticky;
        top:0;
        padding: 5px 0;
        margin-bottom: 15px;
        z-index: 10;
        background-color: rgb(30,30,30);
        box-shadow: 0 0 10px black;
    }
    .stopinfo_header h1 {
        font-size: 2em;
    }
    .stopinfo_header h2 {
        font-size: 1.5em;
    }
    .stop_title .fav_btn {
        display: inline-block;
        font-size: 32px;
        margin-left: 15px;
        color: yellow;
    }
    .stopinfo_header .pinBtn {
        display: block !important;
    }
}
@media screen and (max-width: 450px) {
    .stopinfo_header h1 {
        font-size: 1.25em;
    }
    .stopinfo_header h2 {
        font-size: 0.75em;
    }
}

.stopinfo_header .pinBtn {
    display: none;
    margin: auto;
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 18px;
}
.stopinfo_header .pinBtn:hover {
    cursor: pointer;
    opacity: 0.7;
}

@media screen and (max-width: 550px) {
    .upcoming_trip_realtime {
        display: block;
        margin: auto;
        background-color: rgb(40,40,40);
        color: white;
        width: 80%;
        min-height: 50px;
        height: fit-content !important;
        text-align: center;
        padding-top: 8px;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
        position: relative;
        text-decoration: none;
        transition: background-color 0.4s ease-in-out;
    }
}

@media screen and (max-width: 900px) {
    .upcoming_trip_realtime {
        width: 80%;
    }
}

.account-form {
    display: block;
    position: absolute;
    top:0;bottom:0;
    left:0;right:0;
    margin: auto;
    width: fit-content;
    max-width: 500px;
    height: fit-content;
    min-height: 350px;
    text-align: center;
}
.account-form input {
    display: block;
    margin: auto;
    width: fit-content;
    height: fit-content;
    padding: 4px 0;
    margin-top: 10px;
    outline: none;
}
.account-form input[type=submit] {
    display: block;
    margin: auto;
    margin-top: 15px;
    width: 100%;
    float: right;
}

/* .account-form input:not([type=submit]):valid {
    border: 2px solid green;
}
.account-form input:not([type=submit]):invalid {
    border: 2px solid red;
} */

.account-form span::after {
    font-family: FontAwesome;
    content: "\f00d";
    font-size: 16px;
    margin-left: 5px;
    color: red;
}
.account-form input:valid + span::after {
    font-family: FontAwesome;
    content: "\f00c";
    font-size: 16px;
    margin-left: 5px;
    color: green;
}

.account-form form div {
    display: block;
    margin: auto;
    text-align: right;
}
.account-form form div input {
    display: inline-block;
}
.account-form form div label {
    font-size: 20px;
    font-weight: bold;
}
.account-form-errors {
    display: block;
    margin: auto;
    margin-top: 50px;
    width: 300px;
    font-size: 14px;
    border: 2px dashed yellow;
    padding: 2px 6px;
}



.stops_list {
    display: block;
    margin: auto;
    color: white;
    text-align: center;
    position: absolute;
    overflow-y: auto;
    width: 80%;
    left:0;
    right:0;
    height: 65vh;
    margin-top: 25px;
}
.stopinfo {
    display: block;
    margin: auto;
    margin-bottom: 5px;
    background-color: rgb(15,15,15);
    border: 4px solid rgb(30,30,30);
    color: white;
    text-decoration: none;
    transition: background-color 0.4s ease-in-out, border 0.4s ease-in-out;
    text-align: left;
    padding-left: 38%;
}
.stopinfo:hover {
    background-color: rgba(15,15,15,0.4);
    border: 4px solid rgba(90,90,90);
    cursor: pointer;
}
.stop_type_icon {
    display: inline-block;
}
.stopinfo_text {
    display: inline-block;
}
.stop_type_icon::before {
    font-family: FontAwesome;
    content: "\f55e";
    font-size: 42px;
    margin-right: 10px;
    vertical-align: bottom;
    color: grey;
}
.stop_type_icon#train::before {
    content: "\f239";
}
.stop_type_icon#tram::before {
    content: "\e5b4";
}

.stop_filters {
    display: block;
    margin: auto;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.stop_filters .filter {
    display: inline-block;
    margin: auto;
    margin-right: 10px;
    background-color: rgb(10,10,10);
    padding: 12px 12px;
    border-radius: 5px;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.stop_filters .filter:hover {
    box-shadow: 2px 2px 0 grey;
    cursor: pointer;
}
.stop_filters .filter:hover::before {
    color: lightgrey;
}

.stop_filters .filter.active {
    transform: translateY(-10px);
}

.stop_filters .filter::before {
    font-family: FontAwesome;
    content: "\f55e";
    font-size: 24px;
    vertical-align: bottom;
    color: grey;
}
.stop_filters .filter#train::before {
    content: "\f239";
}
.stop_filters .filter#tram::before {
    content: "\e5b4";
}

.no_arrivals_viewprevious {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.search_vehicles_div {
    display: block;
    margin: auto;
    width: 80%;
    text-align: center;
}

.search_vehicles_div input, button {
    display: inline-block;
}

.under-construction {
    display: block;
    margin: auto;
    position: absolute;
    left:0;right:0;
    top:0;bottom:0;
    width: 100%;
    height: fit-content;
    padding: 12px 0;
    background-color: rgb(10,10,10);
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px black;
    z-index: 20;
}
.under-construction h1::before {
    font-family: FontAwesome;
    content: "\f071";
    margin-right: 5px;
    color: yellow;
    align-self: center;
}
.under-construction h1::after {
    font-family: FontAwesome;
    content: "\f071";
    margin-left: 5px;
    color: yellow;
    align-self: center;
}

.trip_extra_info {
    display: block;
    margin: auto;
    text-align: center;
}
.trip_previous_vehicles, .trip_block {
    display: inline-block;
    margin: auto;
    text-align: center;
    vertical-align: top;
    padding: 0 10px;
    margin-bottom: 25px;
}
.trip_previous_vehicles a {
    color: white;
}

.vehicles_nav_menu {
    display: block;
    margin: auto;
    width: 80%;
    height: fit-content;
    text-align: center;
}
.vehicles_nav_menu .nav_link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(45, 45, 45);
    color: white;
    font-size: 24px;
    padding: 16px 24px;
    text-decoration: none;
    min-width: 120px;
    min-height: 50px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.vehicles_nav_menu .nav_link:hover {
    background-color: rgb(19,19,19);
    cursor: pointer;
}
.vehicles_nav_menu .nav_link i {
    font-size: 20px;
    margin-right: 10px;
    color: grey;
}

.database_vehicles {
    display: block;
    margin: auto;
    width: 80%;
    height: fit-content;
}
.database_vehicles .list {
    display: block;
    margin: auto;
    width: 100%;
    height: 80vh;
    overflow-y: auto;
}

.database_vehicles .list .category_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;

    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 5px 5px;
}

@media screen and (max-width: 800px) {
    .database_vehicles .list .category_content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media screen and (max-width: 500px) {
    .database_vehicles .list .category_content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
}

.database_vehicles .list .vehicle {
    display: block;
    position: relative;
    margin: auto;
    width: 100%;
    background-color: rgb(20,25,25);
    /* padding: 4px; */
    color: white;
    text-decoration: none;
    transition: 0.3s ease-in-out background-color, 0.3s ease-in-out box-shadow;
}
.database_vehicles .list .vehicle:hover {
    background-color: rgb(15,25,25);
    box-shadow: 2px 2px 10px black;
}
.database_vehicles .list .vehicle .type {
    display: block;
    margin: auto;
    font-size: 18px;
}
.database_vehicles .list .vehicle .info {
    text-align: center;
    color: grey;
}
.database_vehicles .list .vehicle .operator {
    display: block;
    margin: auto;
    position: absolute;
    top:5px;
    right:5px;
    color: grey;
    font-size: 14px;
}
.database_vehicles .list .vehicle .relative_time {
    display: block;
    margin: auto;
    position: absolute;
    top:5px;
    left:5px;
    color: grey;
    font-size: 14px;
}
.database_vehicles .list .vehicle .tag {
    display: inline-block;
    margin: auto;
    background-color: red;
    width: fit-content;
    padding: 1px 4px;
    vertical-align: middle;
    border-radius: 5px;
    font-size: 15px;
}

.database_vehicles .list .category_btn {
    display: block;
    margin: auto;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background-color: rgb(18,18,18);
    font-size: 20px;
    transition: 0.3s ease-in-out background-color;
}

.database_vehicles .list .category_btn:hover {
    background-color: rgb(36,36,36);
    cursor: pointer;
}
.database_vehicles .list .category_btn.active {
    background-color: rgb(36,36,36);
}

.outofservice {
    display: block;
    color: red;
    font-size: 20px;
}

.vehicles_outofservice_note {
    font-size: 14px;
}
.vehicles_outofservice_note .outofservice {
    font-size: 14px;
}

/* Loading dots animation - changing opacity */
.loading_dots {
    display: block;
    margin: auto;
    width: fit-content;
    font-size: 48px;
}
.loading_dots.small {
    font-size: unset;
}
.loading_dots.inline {
    display: inline-block;
    font-size: 24px;
    margin-left: 5px;
    margin-right: 5px;
}

.loading_dots.center {
    display: block;
    text-align: center;
}
.loading_dots span {
    display: inline-block;
    background-color: white;
    min-width: 12px;
    min-height: 12px;
    border-radius: 50%;
    margin-left: 3px;
    margin-right: 3px;
    opacity: 0.25;
}
.loading_dots.inline span {
    margin-left: 0;
    margin-right: 0;
    min-width: 8px;
    min-height: 8px;
}
.loading_dots span:nth-child(1) { animation: loading_dots 0.8s infinite; }
.loading_dots span:nth-child(2) { animation: loading_dots 0.8s infinite 0.2s; }
.loading_dots span:nth-child(3) { animation: loading_dots 0.8s infinite 0.4s; }

@keyframes loading_dots {
    50% {
        opacity: 1;
    }
}

/*  */

@keyframes updown {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: 100px;
    }
}

.become_contributor_hint {
    color: rgb(255, 172, 17);
    vertical-align: middle;
}
.become_contributor_hint a {
    color: rgb(255, 172, 17);
}
.become_contributor_hint a:hover {
    color: rgb(192, 125, 1);
    cursor: pointer;
}

.contribute_info {
    display: block;
    margin: auto;
    width: 80%;
    height: fit-content;
    /* min-height: 60vh; */
    padding: 12px 32px;
    background-color: rgb(18,18,18);
    text-align: justify;
}

.contribute_info h1, .contribute_info h2, .contribute_info h3 {
    text-align: left;
}

@media screen and (min-width:1400px) {
    .contribute_info {
        width: 50%;
    }
    .contribute_application {
        width: 40% !important;
    }
}

.contribute_apply {
    display: block;
    margin: auto;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: rgb(255, 172, 17);
    font-size: 20px;
}
.contribute_apply:hover {
    background-color: rgb(192, 125, 1);
}
.contribute_apply.dashboard {
    background-color: rgb(63, 231, 29);
}
.contribute_apply.dashboard:hover {
    background-color: rgb(1, 192, 11);
}

.contribute_application {
    display: block;
    margin: auto;
    position: relative;
    width: 80%;
    border-left: 1px solid grey;
    border-right: 1px solid grey;
    padding: 0 20px;
    margin-bottom: 100px;
}
.contribute_application .form {
    display: block;
    margin: auto;
    width: 100%;
}

.contribute_application .form input {
    display: inline-block;
    margin: auto;
    width: 100%;
    height: fit-content;
    padding: 4px 0;
    outline: none;
}
.contribute_application .form input[type=checkbox] {
    width: fit-content;
}
.contribute_application .form input[type=submit] {
    display: block;
    margin: auto;
    position: relative;
    left:0;right:0;
    width: 100%;
    bottom:0;
    float: left;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: rgb(255, 172, 17);
    border: none;
    outline: none;
    font-size: 18px;
}
.contribute_application .form input[type=submit]:hover {
    background-color: rgb(192, 125, 1);
    cursor: pointer;
}
.contribute_application .form div {
    display: block;
    margin-top: 10px;
}
.contribute_application .form textarea {
    display: inline-block;
    width: 100%;
    resize: vertical;
    min-height: 100px;
    padding: 4px 0;
    outline: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}
.contribute_application .form .required {
    color: red;
}

.form_error {
    display: block;
    margin: auto;
    position: static;
    width: 100%;
    height: fit-content;
    background-color: rgba(255,0,0,0.4);
    border: 2px solid red;
    text-align: center;
}

.contribute_application .success {
    display: block;
    margin: auto;
    position: relative;
    left:0;right:0;
    width: 100%;
    bottom:0;
    float: left;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: black;
    /* background-color: rgb(255, 172, 17); */

    /* background-color: rgba(0,200,0,0.4);
    border: 2px solid rgb(0,200,0);
    color: white; */

    background-color: rgb(0,180,0);
    color: white;
    
    outline: none;
    font-size: 18px;
    cursor: default;
}

.application_status.pending, .status.pending {
    color: orange;
    font-weight: bold;
}
.application_status.approved, .status.accepted {
    color: lime;
    font-weight: bold;
}
.application_status.declined, .status.declined {
    color: red;
    font-weight: bold;
}

.beta-notice {
    display: block;
    margin: auto;
    width: fit-content;
    text-align: center;
    background-color: rgba(239,193,7,0.4);
    border: 2px solid rgb(239,193,7);
    padding: 4px 22px;
}
.beta-notice.important {
    background-color: rgba(255,0,0,0.4);
    border: 2px solid rgb(255,0,0);
    padding: 0 22px;
}

.vehicle_redirect_info_btn {
    color: white;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
.vehicle_redirect_info_btn:hover {
    color: var(--linkHoverColour);
}

.vehicle_rider_notes {
    display: block;
    margin: auto;
    background-color: rgba(0,180,255,0.4);
    border: 2px solid rgb(0,180,255);
    width: 80%;
    padding: 1px 22px;
}

.vehicles_summary {
    display: block;
    margin: auto;
    width: fit-content;
    background-color: rgb(42,42,42);
}

.vehicles_summary tr:has(th) {
    background-color: black;
}

.vehicles_summary td, .vehicles_summary th {
    text-align: center;
}

.map_selected_vehicle {
    display: block;
    margin: auto;
    position: relative;
    background-color: rgba(10,10,10,0.3);
    border: 2px solid grey;
    width: fit-content;
    min-width: 400px;
    padding: 0 22px;
    margin-top: 10px;
    opacity: 1;
    transition: 0.5s ease-in-out opacity;
}
.map_selected_vehicle.empty {
    opacity: 0;
}

@media screen and (max-width: 450px) {
    .map_selected_vehicle {
        min-width: 250px;
    }
}

.map_selected_vehicle .info .id {
    color: grey;
}
.map_selected_vehicle .info .last_updated {
    display: block;
    float: right;
    color: grey;
}
.map_selected_vehicle .info .route {
    /* padding: 2px 8px;
    border-radius: 8px; */
    padding: 0 6px;
    margin-left: 5px;
}

.map_selected_vehicle h3 .dismiss.active {
    display: inline-block;
    font-size: 12px;
    color: rgb(67, 67, 255);
    text-decoration: underline;
    cursor: pointer;
}

.route_banner {
    padding: 2px 16px;
    border-radius: 5px;
}

.trip_map, .route_vehicles_map {
    display: block;
    margin: auto;
    width: 80%;
    height: 45vh;
    margin-bottom: 25px;
}

.route_active_vehicles {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}
.route_active_vehicles td, .route_active_vehicles th {
    padding: 8px;
}
.route_active_vehicles th {
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: left;
    background-color: rgb(22,22,22);
    color: white;
}
.route_active_vehicles tr {
    background-color: rgb(40,40,40);
}
.route_active_vehicles tr:nth-child(even) {
    background-color: rgb(50,50,50);
}

.hidden_vehicle_attrib, .hidden_vehicle_attrib_row {display: none;}

.route_previous_vehicles {
    display: block;
    margin: auto;
    margin-top: 15px;
    width: 100%;
    margin-bottom: 25px;
}
.route_previous_vehicles .tableContainer {
    display: block;
    margin: auto;
    width: 90%;
    max-width: 2000px;
    overflow-x: auto;
}

.route_previous_vehicles table {
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(37,37,37);
    border-collapse: collapse;
}
.route_previous_vehicles table td {
    padding: 10px 10px;
}
.route_previous_vehicles table th {
    padding: 2px 10px;
    background-color: rgb(25,25,25);
}

.route_previous_vehicles table .prev_vehicle {
    background-color: rgb(30,30,30);
    padding: 1px 8px;
}.route_previous_vehicles table .prev_vehicle .time {
    color: grey;
}


/* NAVBAR */

.navigation_bar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* background-color: rgb(51, 51, 51); */
    /* box-shadow: 0 3px 5px black; */
    /* margin-bottom: 10px; */
}

.navigation_bar .item {
    float: left;
}
.navigation_bar .item.right {
    float: right;
}
.navigation_bar a.item {
    display: block;
    color: white;
    text-align: center;
    padding: 24px 30px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s ease-in-out color;
    margin-right: 10px;
}
.navigation_bar a.item:hover {
    /* background-color: #222; */
    color: grey;
    /* text-decoration: underline; */
}
.navigation_bar a.item.active {
    color: rgb(64, 156, 241);
    /* text-underline-offset: 10px;
    text-decoration: underline white; */
}

.navigation_bar .account_dropdown_content {
    display: none;
    position: absolute;
    z-index: 1;
    margin-top: 50px;
}

.navigation_bar .account_dropdown_content a {
    display: block;
    margin-top: 10px;
    min-width: 70px;
    padding: 2px 16px;
    text-decoration: none;
    color: white;
}
.navigation_bar .account_dropdown_content a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.navigation_bar .account_dropdown:hover .account_dropdown_content {
    display: block;
}

.navigation_bar .mobile {display: none;}

@media screen and (max-width: 985px) {
    .navigation_bar .default {
        display: none;
    }

    .navigation_bar .mobile {
        display: block;
    }
    .navigation_bar {
        background-color: rgb(51, 51, 51);
        position: relative;
        z-index: 10000;
    }
    .navigation_bar:has(.mobile_dropdown.active) {
        width: 300px;
        top: 0;
        position: fixed;
    }

    /* Ensure setting nav to "fixed" doesn't cause everything to go up */
    body:has(.navigation_bar .mobile_dropdown.active) {
        margin-top: 72px;
    }

    .navigation_bar .mobile_dropdown {
        display: none;
        margin: auto;
        position: fixed;
        top: 72px;
        left: 0;
        width: 300px;
        background-color: rgb(51,51,51);
        z-index: 10000;
        overflow: hidden;
        min-height: calc(100dvh - 72px);
    }
    .navigation_bar .mobile_dropdown.active {
        display: block;
    }

    .navigation_bar .mobile .toggle_dropdown {
        display: block;
        margin: auto;
        float: left;
        width: fit-content;
        padding: 16px 30px;
        font-size: 20px;
        text-decoration: none;
        color: white;
    }

    .navigation_bar .mobile .item {
        display: block;
        margin: auto;
        float: left;
        width: 100%;
        padding: 16px 16px;
        color: white;
        text-align: left;
        font-size: 20px;
        text-decoration: none;
        transition: 0.2s ease-in-out color;
        margin-right: 15px;
        /* background-color: rgb(17,17,17); */
    }
    .navigation_bar .mobile .bottom_items {
        display: block;
        margin: auto;
        position: absolute;
        width: 100%;
        bottom: 10px;
    }

    /* TODO: Find a better solution for this - as this will likely need altering every time we add a new button to the nav. */
    @media screen and (max-height: 550px) {
        .navigation_bar .mobile .bottom_items {
            position: relative;
        }
    }

}

/*  */

.notice_board {
    display: block;
    margin: auto;
    background-color: rgb(10,10,30);
    padding: 4px 20px;
    /* width: 60%; */
    max-width: 60%;
}
.notice_board h2.title {
    text-align: left;
}

.notice_board .notice {
    position: relative;
}
.notice_board .notice.current {
    display: block;
    margin: auto;
    background-color: rgb(30,30,90);
    padding: 2px 14px;
    margin-bottom: 10px;
}
.notice_board .notice h2 {
    text-align: left;
}

.notice_board .notice.previous {
    display: block;
    margin: auto;
    background-color: rgb(30,30,90);
    padding: 2px 14px;
    margin-bottom: 10px;
}
.notice_board .notice.previous h2 {
    text-align: left;
    font-size: 16px;
    color: grey;
}
.notice_board .notice.previous .content {
    display: none;
}
.notice_board .notice .time {
    display: block;
    margin: auto;
    font-size: 12px;
    color: grey;
    margin-bottom: 5px;
}
.notice_board .notice .pinned {
    display: block;
    margin: auto;
    float: right;
    font-size: 12px;
    color: grey;
    margin-bottom: 5px;
}
.notice_board .notice .pinned i.fa-thumbtack {
    transform: rotate(45deg);
}
.notice_board .notice .automatic {
    display: block;
    margin: auto;
    position: absolute;
    top:5px;right:5px;
    font-size: 12px;
    color: grey;
    margin-bottom: 5px;
}
.notice_board .notice.update {
    border-left: 2px solid rgb(255, 255, 0);
}

.notice_board .notice.previous:hover {
    background-color: rgb(15,15,75);
    cursor: pointer;
}

@media screen and (max-width: 870px) {
    .notice_board {
        /* width: 90%; */
        max-width: 100%;
    }
}

.notice_board .notice .note-muted {
    color: grey;
    font-size: 14px;
}

/* Favourite stops & vehicles - logged in home page. */

.user_dashboard {
    position: relative;
}
.user_dashboard .items {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    padding: 0 10%;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* For larger screens, make the favourites smaller in width to take up less screen space */
@media screen and (min-width: 1600px) {
    .user_dashboard .items {
        margin-left: auto;
        margin-right: auto;
        width: 40%;
    }
}

.favourite_stop.preview, .favourite_vehicle.preview {
    pointer-events: none;
}

.user_dashboard .favourite_stop, .user_dashboard .favourite_vehicle {
    text-decoration: none;
}
.user_dashboard .favourite_stop .content, .user_dashboard .favourite_vehicle .content {
    display: block;
    margin: auto;
    color: white;
    text-decoration: none;
    width: fit-content;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 24px;
    transition: 0.15s ease-in-out opacity;
    width: 100%;
    max-width: 300px;
}
.user_dashboard .favourite_stop .content:hover, .user_dashboard .favourite_vehicle .content:hover {
    opacity: 0.4;
}

/* Disable hover effect for preview section */
.user_dashboard.preview .favourite_stop:hover, .user_dashboard.preview .favourite_vehicle:hover {
    color: unset;
}

.favourite_stop .stop_name, .favourite_vehicle .vehicle_id {
    font-size: 20px;
    font-weight: bold;
}

.favourite_vehicle .vehicle_id {
    text-align: left;
}

.favourite_item_title {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 10px;
    margin-bottom: 20px;
    /* text-align: left; */
}

.favourite_stop .favourite_star, .favourite_vehicle .favourite_star {
    display: block;
    float: left;
    font-size: 24px;
    color: yellow;
    margin-right: 15px;
    transition: 0.2s ease-in-out color, text-shadow 0.2s ease-in-out, opacity 0.2s;
    opacity: 0.2;
}
.favourite_stop .favourite_star:hover, .favourite_vehicle .favourite_star:hover {
    color: gold;
    text-shadow: 0 0 10px gold;
    opacity: 1;
}

/* For small screens, set favourite vehicles and stops to be displayed vertically + add a border at the bottom. */
@media screen and (max-width: 500px) {
    .user_dashboard .items {
        display: block;
    }

    .user_dashboard .items .item {
        border-bottom: 1px solid grey;
    }
}

.user_dashboard.preview .items {
    filter: blur(5px);
}

.user_dashboard.preview .login_notice {
    display: block;
    margin: auto;
    position: absolute;
    width: fit-content;
    height: fit-content;
    top:0;right:0;left:0;bottom:0;
    z-index: 1;
    background-color: rgb(5,5,30);
    padding: 8px 24px;
    border-radius: 10px;
    box-shadow: 4px 4px 5px black;
    text-align: center;
}
.user_dashboard.preview .login_notice a.button {
    display: inline-block;
    margin: auto;
    height: fit-content;
    width: fit-content;
    padding: 4px 16px;
    background-color: rgb(15,40,90);
    border-radius: 5px;
    width: 40%;
    color: white;
    text-decoration: none;
    text-align: center;
}
.user_dashboard.preview .login_notice a.button:hover {
    background-color: rgb(30,70,130);
}

@media screen and (max-width: 400px) {
    .user_dashboard.preview .login_notice a.button {
        width: 38%;
    }
}
@media screen and (max-width: 355px) {
    .user_dashboard.preview .login_notice a.button {
        width: 50%;
    }
    .user_dashboard.preview .login_notice a.button:nth-child(1) {
        padding: 4px 4px;
        width: 30%;
    }
}

a.hyperlink {
    color: rgb(0, 102, 255);
}
a.hyperlink:hover {
    color: rgb(189, 125, 7);
    cursor: pointer;
}

.infobox {
    display: block;
    margin: auto;
    border: 2px solid rgb(80,80,80);
    background-color: rgb(40,40,40);
    padding: 8px 12px;
}
.infobox .close {
    display: block;
    margin: auto;
    float: left;
    color: red;
    cursor: pointer;
}
.infobox.warn {
    border: 2px solid gold;
    background-color: rgba(255, 255, 0, 0.2);
}

article {
    display: block;
    margin: auto;
    text-align: justify;
    background-color: rgb(18,18,18);
    max-width: 60%;
    padding: 12px 32px;
    min-width: 50%;
}
article h1 {
    text-align: left;
}
article h2, article h3 {
    font-size: unset;
    text-align: left;
}
article footer {
    font-size: 14px;
    color: grey;
    margin-top: 30px;
}
article.largerHeadings h2 {
    font-size: 1.3em;
}

@media screen and (max-width: 950px) {
    article {
        max-width: 80%;
    }
}
@media screen and (max-width: 650px) {
    article {
        max-width: 100%;
    }
}

.update_info {
    display: block;
    margin: auto;
    position: relative;
    background-color: rgb(30,40,90);
    padding: 4px 12px;
    margin-bottom: 10px;
}
.update_info:hover {
    background-color: rgb(30, 56, 90);
    cursor: pointer;
}
.update_info .info {
    display: none;
}
.update_info.expanded .info {
    display: block;
    background-color: rgb(20,20,50);
    padding: 8px 12px;
}

.update_info .tag {
    display: inline-block;
    padding: 0 4px;
    font-size: 14px;
    background-color: rgb(0, 132, 255);
    border-radius: 10px;
    vertical-align: baseline;
}

.update_info .note .type_tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: rgb(0, 150, 180);
    border-radius: 8px;
}

.update_info .releaseDate {
    display: block;
    margin: auto;
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: grey;
}
.update_info .info {
    margin-bottom: 25px;
}
@media screen and (max-width: 1200px) {
    .updates {
        max-width: 80%;
    }
}
@media screen and (max-width: 700px) {
    .updates {
        max-width: 100%;
        width: 100%;
        padding: 12px 0;
        margin-top: 0;
    }

    .updates h1 {
        text-align: center;
    }

    .updates .updates_list {
        display: block;
        margin: auto;
        width: 95%;
    }

    .update_info .version {
        margin-bottom: 25px;
    }

    .updates_list {
        text-align: left;
    }
}

.database_vehicles .search_bar {
    display: none;
    margin: auto;
    margin-bottom: 10px;
    width: 90%;
    height: fit-content;
    padding: 8px 4px;
    background: none;
    color: white;
    outline: none;
    border: none;
    border-bottom: 2px solid grey;
    transition: border-bottom 0.3s ease-in-out;
}
.database_vehicles .search_bar:focus {
    border-bottom: 2px solid white;
}

.simple-info-box {
    display: block;
    margin: auto;
    width: fit-content;
    font-weight: bold;
    padding: 4px 16px;
}
.simple-info-box.error {
    background-color: rgba(200,0,0,0.2);
    border: 2px solid rgb(200, 0, 0);
    color: rgb(255, 0, 0);
}
.simple-info-box.warn {
    background-color: rgba(243, 210, 24, 0.4);
    border: 2px solid rgb(243, 210, 24);
    color: rgb(243, 210, 24);
}
.simple-info-box:empty {
    display: none;
}

.vehicles_count {
    display: block;
    margin: auto;
    width: fit-content;
    font-size: 18px;
}

a.link:any-link {
    color: rgb(44, 119, 204);
}
a.link:any-link:hover {
    color: rgb(25, 93, 170);
    cursor: pointer;
}
a.link-light:any-link {
    color: rgb(58, 166, 216);
}
a.link-light:any-link:hover {
    color: rgb(43, 140, 185);
}

.trip_block p.trips {
    width: 100%;
}
/* Essentially only hide the spacer so that the previous vehicles align with the trip block, but if we display them on seperate lines, disregard it and don't display it at all. */
.trip_previous_vehicles .previous_vehicle_title_spacer {
    visibility: hidden;
}
@media screen and (max-width: 654px) {
    .trip_previous_vehicles .previous_vehicle_title_spacer {
        display: none;
    }
}

.trip_block .route {
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 5px;
}
.trip_block .time {
    color: rgb(130,130,130);
}
.trip_block .trip {
    margin: auto;
    float: left;
    width: fit-content;
    margin-bottom: 5px;
}
.trip_block .trip:hover {
    font-weight: bolder;
    cursor: pointer;
}
.trip_block .trip.active {
    font-weight: bolder;
}

.stops.compact {
    display: block;
    margin: auto;
    width: 60%;
    background-color: rgba(20,20,20);
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-in-out max-height;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.stops_toggle.compact {
    display: block;
    margin: auto;
    width: 60%;
    text-align: center;
    background-color: rgba(24,24,24);
    margin-top: 20px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 10px;
}
.stops_toggle.compact.active {
    border-radius: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.stops.compact .stop {
    display: block;
    margin: auto;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 0;
    text-decoration: none;
    color: white;
    transition: none;
    text-align: center;
}
.stops.compact .stop:hover {
    background-color: rgb(16,16,16);
}
.stops.compact .stop .arrival {
    float: left;
    margin-left: 10px;
}
@media screen and (max-width: 800px) {
    .stops_toggle.compact, .stops.compact {
        width: 90%;
    }

    .stops.compact .stop .arrival {
        display: block;
        float: none;
    }
}
.stops.compact .stop .status {
    opacity: 0.5;
}
.stops.compact .stop .status.ontime { color: var(--colour_ontime) }
.stops.compact .stop .status.late { color: var(--colour_late); }
.stops.compact .stop .status.early { color: var(--colour_early); }
.stops.compact .stop .status.scheduled { color: var(--colour_scheduled); }
.stops.compact .stop:hover .status {
    opacity: 1;
}

.stops.compact .tripHeader {
    display: block;
    margin: auto;
    width: 100%;
    padding: 12px 0;
    text-decoration: none;
    color: white;
    text-align: center;
}
.stops.stops.compact .tripHeader:hover {
    background-color: unset;
}

.vehicle_information {
    display: block;
    margin: auto;
}

.preview_on_map {
    display: block;
    margin: auto;
    background-color: rgb(10,10,10);
    width: 100%;
    height: 35vh;
    border-radius: 20px;
}
.vehicleInfoGrid {
    display: grid;
    margin: auto;
    grid-template-areas: 
        'title title title title title'
        'image map map map map'
        'stops stops stops stops stops'
        'stops stops stops stops stops';
    grid-template-columns: 0.25fr auto auto auto auto;
    border-radius: 15px;
    width: 80%;
    height: 80%;
}
@media screen and (max-width: 1600px) {
    .vehicleInfoGrid {
        grid-template-areas: 
            'title title title title title'
            'image image map map map'
            'stops stops stops stops stops'
            'stops stops stops stops stops';
    }
}
@media screen and (max-width: 1000px) {
    .vehicleInfoGrid {
        grid-template-areas: 
            'title title title title title'
            'image image map map map'
            'stops stops stops stops stops'
            'stops stops stops stops stops';
        grid-template-columns: 0.5fr auto auto auto auto;
    }
}
@media screen and (max-width: 700px) {
    .vehicleInfoGrid {
        grid-template-areas: 
            'title title title title title'
            'image image image image image'
            'map map map map map'
            'stops stops stops stops stops'
            'stops stops stops stops stops';
    }
}
@media screen and (max-width: 500px) {
    .vehicleInfoGrid {
        width: 95%;
    }
}
/* Remove image from grid if there is no vehicle image so it does not show empty space. */
.vehicleInfoGrid.noImage {
    grid-template-areas: 
    'title title title title title'
    'map map map map map'
    'stops stops stops stops stops'
    'stops stops stops stops stops';
}


.vehicleInfoGrid .title {
    display: block;
    position: relative;
    grid-area: title;
}

.vehicleInfoGrid .map {
    grid-area: map;
    width: 100%;
    height: fit-content;
}

.vehicleInfoGrid .stops_section {
    grid-area: stops;
}
.vehicleInfoGrid .stops_section .stops {
    width: 100% !important;
}
.vehicleInfoGrid .stops_section .stops_toggle {
    width: 100% !important;
}

.vehicleInfoGrid .image {
    display: flex;
    align-items: center;
    grid-area: image;
}
.vehicleInfoGrid .image img {
    display: block;
    margin: auto;
    width: 100%;
    position: relative;
}

.vehicleInfoGrid .about {
    display: flex;
    justify-content: start;
    align-items: center;
    text-align: left;
    grid-area: about;
}

.vehicleInfoGrid .loading {
    display: none;
}

.shared_favourite_tip {
    display: block;
    margin: auto;
    width: fit-content;
    border-left: 4px solid rgb(0, 132, 255);
    background-color: rgba(0,132,255,0.2);
    padding: 4px 8px;
}
.shared_favourite_tip .fa-star {
    color: gold;
}

.importantNoteBanner {
    display: block;
    margin: auto;
    position: relative;
    width: 80%;
    text-align: center;
    height: fit-content;
    background-color: rgba(156, 123, 13, 0.6);
    border: 2px solid gold;
    color: rgb(255, 230, 119);
    padding: 0px 8px;
    border-radius: 10px;
    margin-top: 5px;
}
.importantNoteBanner a.link {
    color: orange !important;
}
.importantNoteBanner a.link:hover {
    color: rgb(184, 123, 9) !important;
}

.account_dashboard {
    display: block;
    margin: auto;
    width: 80%;
    background-color: rgb(15,15,15);
    padding: 8px;
    margin-top: 10px;
}
.account_dashboard hr {
    border: 1px solid rgb(50,50,50);
}

.reminder {
    text-align: center;
    font-size: 12px;
    color: grey;
}
.reminder-link a:any-link {
    color: grey !important;
}
.reminder-link a:any-link:hover {
    opacity: 0.7;
}

.account_dashboard .btn, .modernBtn {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 2px;
    --bg: rgb(0,110,255);
    background-color: var(--bg);
    transition: 0.2s ease-in-out box-shadow, 0.3s ease-in-out opacity;
    color: white;
    text-decoration: none;
}
.account_dashboard .btn:hover, .modernBtn:hover {
    box-shadow: 0 0 15px var(--bg);
    cursor: pointer;
}
.account_dashboard .btn.bad, .modernBtn.bad {
    --bg: rgb(200,0,0);
}
.account_dashboard .btn.good, .modernBtn.good {
    --bg: rgb(0,160,20);
}
.account_dashboard .btn.alt, .modernBtn.alt {
    --bg: rgb(23, 131, 219);
}
.account_dashboard .btn.dark, .modernBtn.dark {
    --bg: rgb(7, 56, 95);
}
.account_dashboard .btn.inline, .modernBtn.inline {
    display: inline-block;
}
.modernBtn.small {
    padding: 1px 4px;
}
.account_dashboard input.btn, input.modernBtn, button.modernBtn {
    border: none;
    outline: none;
    font-size: 14px;
    margin-top: 10px;
}

.account_dashboard .btn:disabled {
    opacity: 0.6;
    cursor: wait;
    box-shadow: none;
}

.account_dashboard .item {
    display: block;
    margin: auto;
    text-align: center;
}

.account_dashboard .item .subitem {
    display: block;
    margin: auto;
    margin-top: 20px;
}
.account_dashboard .item .subitem.inline {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

.account_dashboard .device_list {
    display: block;
    margin: auto;
}
.account_dashboard .device_list .device {
    display: block;
    margin: auto;
    text-align: center;
    /* background-color: rgb(45, 45, 45); */
    background-color: rgb(25,25,25);
    border-radius: 10px;
    width: fit-content;
    padding: 0 16px;
    margin-bottom: 10px;
}
.account_dashboard .device_list .device.current {
    box-shadow: -2px 2px 0 rgb(10,90,200);
}
.account_dashboard .device_list .device .icon {
    display: inline-block;
    margin-right: 15px;
    color: grey;
}
.account_dashboard .device_list .device .info {
    display: inline-block;
    font-size: 14px;
}
.account_dashboard .device_list .device .logout_btn {
    display: block;
    margin: auto;
    color: grey;
    transition: 0.3s ease-in-out color;
}
.account_dashboard .device_list .device .logout_btn:hover {
    color: rgb(220,220,220);
    cursor: pointer;
}

.account_dashboard .device_list .device .info {
    display: inline-block;
}
.account_dashboard .device_list .device .button {
    display: inline-block;
    margin-left: 30px;
}

.account_dashboard .device_list .device .ip {
    color: grey;
}

.warning {
    display: block;
    margin: auto;
    padding: 4px 12px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 0, 0.2);
    border: 2px solid rgba(255, 255, 0, 0.3);
    width: fit-content;
    border-radius: 3px;
}
.warning.inline {
    display: inline-block;
}

.passwordResetForm {
    display: block;
    margin: auto;
    text-align: center;
}
.passwordResetForm input[type=password] {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 18px;
    outline: none;
    border: none;
    background: rgba(255,255,255,0.3);
    color: white;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out background, 0.2s;
}
.passwordResetForm input[type=password]:focus {
    background: rgba(255,255,255,0.5);
}
.passwordResetForm label {
    display: inline-block;
    clear: left;
    width: 200px;
    text-align: right;
    font-size: 18px;
}
.passwordResetForm input.unequal { background: rgba(170, 95, 95, 0.3); }
.passwordResetForm input.unequal:focus { background: rgba(170, 95, 95, 0.5); }
.passwordResetForm input.equal { background: rgba(130, 179, 111, 0.3); }
.passwordResetForm input.equal:focus { background: rgba(130, 179, 111, 0.5); }

.infoLabel {
    display: block;
    margin: auto;
    border-left: 4px solid rgb(116, 116, 116);
    background-color: rgba(116,116,116,0.4);
    padding: 2px 8px;
    width: fit-content;
}
.infoLabel:empty {
    padding: 0;
}
.infoLabel.error {
    border-left: 4px solid rgb(220,0,0);
    background-color: rgba(220,0,0,0.4);
}
.infoLabel.warn {
    border-left: 4px solid rgb(220, 205, 0);
    background-color: rgba(220,205,0,0.4);
}
.infoLabel.success {
    border-left: 4px solid rgb(30, 220, 0);
    background-color: rgba(30,220,0,0.4);
}
.infoLabel.inline {
    display: inline-block;
}

.modernForm {
    display: block;
    margin: auto;
    text-align: center;
    max-width: 600px;
}
.modernForm input, input.modern {
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 4px 4px;
    font-size: 18px;
    margin-left: 10px;
    margin-bottom: 10px;
    background-color: rgb(150,150,150);
    transition: 0.3s ease-in-out background-color, 0.3s ease-in-out color;
    color: rgb(230,230,230);
}
.modernForm input:focus, input.modern:focus {
    background-color: rgb(255,255,255);
    color: black;
}
.modernForm label {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;

    clear: left;
    width: 20ch;
    text-align: right;

    margin-bottom: 5px;
}
.modernForm label.center {
    width: fit-content;
    clear: unset;
}
.modernForm label.unset {
    clear: none;
    width: 100%;
    text-align: left;
}
.modernForm .formRow {
    display: flex;
    justify-content: space-between;
}
@media screen and (max-width: 450px) {
    .modernForm label {
        text-align: left;
    }
}
@media screen and (max-width: 520px) {
    .modernForm input[type=submit] {
        width: 80% !important;
    }
    .modernForm .formRow {
        display: unset;
        justify-content: unset;
    }
}
.modernForm input[type=submit] {
    display: block;
    margin: auto;
    width: 100%;
    background-color: rgb(230,230,230);
    transition: 0.2s ease-in-out background-color, 0.2s ease-in-out opacity;
    color: black;
    border-radius: 10px;
    margin-top: 10px;
}
.modernForm input[type=submit]:hover {
    background-color: rgb(190,190,190);
    cursor: pointer;
}
.modernForm input[type=submit]:disabled {
    background-color: rgb(230,230,230);
    opacity: 0.6;
    cursor: wait;
    box-shadow: none;
}

.modernForm input.inline {
    display: inline-block;
    width: fit-content;
    border-radius: 5px;
    padding: 4px 10px;
}

.modernForm select, .modernSelect {
    display: block;
    margin: auto;
    width: fit-content;
    border-radius: 5px;
    padding: 4px 8px;
    text-align: center;

    outline: none;
    border: none;
    background: transparent;
    color: white;
    font-weight: bold;
}

.modernForm option {
    color: black;
}

.modernForm select.inline, .modernSelect.inline {
    display: inline-block;
}

.modernForm textarea {
    display: block;
    margin: auto;
    width: fit-content;
    min-width: 400px;
    min-height: 120px;
    height: fit-content;
    border-radius: 5px;
    outline: none;
    border: none;
    padding: 4px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
    transition: 0.3s ease-in-out background-color, 0.3s ease-in-out color;
    color: white;
}
.modernForm textarea.small {
    min-height: 20px;
}
.modernForm textarea.inline {
    display: inline-block;
}

@media screen and (max-width: 450px) {
    .modernForm textarea {
        min-width: 300px;
    }
}

.modernForm input:not([type=submit]):invalid, .modernForm textarea:invalid { background-color: rgba(170, 95, 95, 0.3); }
.modernForm input:not([type=submit]):invalid:focus, .modernForm textarea:invalid:focus { background-color: rgba(170, 95, 95, 0.5); color: white; }
.modernForm input:not([type=submit]):valid, .modernForm textarea:valid { background: rgba(130, 179, 111, 0.3); }
.modernForm input:not([type=submit]):valid:focus, .modernForm textarea:valid:focus { background: rgba(130, 179, 111, 0.5); color: white; }

.modernForm .result {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 4px 8px;
    border-left: 4px solid grey;
    background-color: rgba(128, 128, 128, 0.2);
    margin-top: 15px;
}
.modernForm .result:empty {
    display: none;
    padding: 0;
}
.modernForm .result.error {
    border-left: 4px solid rgb(220,0,0);
    background-color: rgba(220,0,0,0.4);
}
.modernForm .result.warn {
    border-left: 4px solid rgb(220, 205, 0);
    background-color: rgba(220,205,0,0.4);
}
.modernForm .result.success {
    border-left: 4px solid rgb(30, 220, 0);
    background-color: rgba(30,220,0,0.4);
}

.formRow.checkbox {
    display: block;
    margin: auto;
    width: fit-content;
    text-align: left;
}
.formRow.checkbox label {
    width: fit-content;
}

.stopList {
    display: block;
    margin: auto;
    height: fit-content;
    width: 100%;
    margin-top: 15px;
}
.stopList input.search {
    display: block;
    margin: auto;
    width: 80%;
    height: 45px;
    text-align: center;
    font-size: 32px;
    outline: none;
    border: none;
    border-radius: 10px;
    padding: 0 12px;
}
.stopList button.submit {
    display: inline-block;
    padding: 10px 14px;
    height: fit-content;
    font-size: 36px;
    border: none;
    border-radius: 10px;
}

.stopList .stops {
    display: block;
    margin: auto;
    width: 80%;
    margin-top: 15px;
    margin-bottom: 30px;
}
.stopList .stops .stop {
    display: flex;
    align-items: center;
    margin: auto;
    position: relative;
    width: fit-content;
    height: fit-content;
    padding: 14px 12px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin-bottom: 10px;
    background-color: rgb(15,15,15);
    border-radius: 10px;
    min-width: 650px;
    transition: 0.2s ease-in-out background-color;
}
.stopList .stops .stop .content .desc:empty {
    display: none;
}
.stopList .stops .stop:hover {
    background-color: rgb(6,6,6);
    cursor: pointer;
}
.stopList .stops .stop .zones {
    display: block;
    font-size: 18px;
    color: grey;
}
@media screen and (max-width: 800px) {
    .stopList .stops {
        width: 90%;
    }

    .stopList .stops .stop {
        width: 90%;
        min-width: unset;
    }
}

.stopList .stops .stop .icon {
    display: inline-block;
    margin-right: 15px;
    margin-left: 15px;
    font-size: 32px;
}
.stopList .stops .stop .content {
    display: inline-block;
}

@media screen and (max-width: 500px) {
    .stopList .stops .stop .icon {
        display: block;
        margin: auto;
        position: absolute;
        width: fit-content;
        height: fit-content;
        bottom: 10%;
        right: 0;
        opacity: 0.4;
    }
}

.routesDateFilter {
    display: block;
    margin: auto;
    text-align: center;
}
.routeDateSelect {
    display: inline-block;
    margin: auto;
    margin-bottom: 15px;
    padding: 4px 12px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 5px;
    outline: none;
    border: none;
    cursor: pointer;
}
.routesDateFilter label {
    display: inline-block;
    margin: auto;
    width: fit-content;
    font-size: 18px;
    margin-right: 15px;
}

.routesDateFilter .dayArrow {
    cursor: pointer;
    font-size: 20px;
    vertical-align: middle;
    transition: 0.2s ease-in-out opacity;
}
.routesDateFilter .dayArrow:hover {
    opacity: 0.4;
}

.actionsMenu {
    display: block;
}
.actionsMenu .actionBtn {
    display: inline-block;
    margin: auto;
    margin-right: 5px;
    color: white;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 2px;
}
.actionsMenu .actionBtn.new { background-color: var(--colour_early); }
.actionsMenu .actionBtn.edit { background-color: var(--colour_ontime); }
.actionsMenu .actionBtn.delete { background-color: var(--colour_late); }

form.editVehicle, form.transferVehicle {
    overflow-x: auto;
}

.contributorActions {
    display: block;
    margin: auto;
    overflow-x: auto;
}

.contributorActionsTable {
    border-collapse: collapse;
    width: 100%;
}
.contributorActionsTable th, .contributorActionsTable td {
    padding: 8px;
}
.contributorActionsTable th {
    padding: 4px 8px;
    text-align: left;
    background-color: #047bba;
    color: white;
}
.contributorActionsTable tr {
    background-color: rgb(26,26,26);
}
.contributorActionsTable tr:nth-child(even) {
    background-color: rgb(32,32,32);
}

.stops_near_you .radiusControl {
    display: block;
    margin: auto;
    width: fit-content;
}

.radiusControl input {
    vertical-align: middle;
    margin-left: 10px;
}

.stops_near_you .distanceSort {
    display: block;
    margin: auto;
    width: 670px;
    margin-top: 10px;
}
.sortBtn {
    display: block;
    width: fit-content;
    background-color: rgb(15,15,15);
    padding: 4px 12px;
    border-radius: 5px;
}
.sortBtn:hover {
    background-color: rgb(10,10,10);
    color: rgb(230,230,230);
    cursor: pointer;
}
.sortBtn:hover i.fa {
    color: rgb(0, 183, 255);
}
.sortBtn.inline {
    display: inline-block;
}

@media screen and (max-width: 800px) {
    .stops_near_you .distanceSort {
        width: 87%;
    }
}

#signup-verify-token {
    display: none;
}

.formRow .cf-turnstile {
    display: block;
    margin: auto;
}

.humanVerify {
    display: block;
    margin: auto;
    width: fit-content;
    text-align: center;
    background-color: rgb(15,15,15);
    padding: 8px 32px;
    border-radius: 15px;
}

p.muted {
    color: grey;
    font-size: 14px;
}

dialog {
    border: none;
    outline: none;
    border-radius: 8px;
    background-color: rgb(4, 123, 186);
    color: white;
    box-shadow: 4px 4px rgb(1, 79, 121);
    padding: 4px 16px;
}

dialog .centerItems {
    display: block;
    margin: auto;
    width: fit-content;
}

dialog input {
    display: block;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    outline: none;
    width: 90%;
    border-radius: 4px;
    padding: 4px 8px;
}

dialog .reminder {
    color: rgb(160, 160, 160);
}

dialog.darker::backdrop {
    background-color: black;
    opacity: 0.5;
}

.errorMessageBox {
    display: none;
    margin: auto;
    position: absolute;
    left:0;right:0;
    top: 20%;
    z-index: 1000;
    width: fit-content;
    height: fit-content;
    padding: 8px 22px;
    background-color: rgba(220,0,0,0.5);
    border: 2px solid rgb(220,0,0);
    text-align: center;
}
.errorMessageBox h3 {
    line-height: 0px;
}
.errorMessageBox .dismiss {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.errorMessageBox.show {
    display: block;
}

.vehicle_next_trip {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 4px 8px;
    font-size: 18px;
    margin-top: -10px;
}
.vehicle_next_trip:empty {
    display: none;
}
.vehicle_next_trip .route, .routeBox {
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 5px;
}
.routeBox.no-margin {
    margin-left: 0;
}
.vehicle_next_trip .text {
    color: rgb(180,180,180);
}

.leaflet-popup-content .nextTripDetail {
    display: block;
    margin: auto;
    font-size: 10px;
    margin-top: 5px;
}

.service_alerts .alertInfo {
    display: none;
    margin: auto;
    width: 60%;
    height: fit-content;
    min-height: 600px;
    border-radius: 20px;
    background-color: rgb(25,25,25);
    padding: 8px 12px;
    margin-bottom: 25px;
}

.service_alerts .alertInfo .title {
    color: rgb(170,170,170);
}

.service_alerts .alertInfo.show {
    display: block;
}
.service_alerts .alertInfo .content {
    display: block;
    margin: auto;
    width: 80%;
}

.service_alerts .alertInfo .markUnread {
    float: right;
}
.service_alerts .alertInfo .markUnread.mobile {
    display: none;
}

@media screen and (max-width: 450px) {
    .service_alerts .alertInfo {
        width: 100%;
        /* background-color: transparent; */
        padding: 0;
        border-radius: 10px;
    }
    .service_alerts .alertInfo .content {
        width: 90%;
    }
    .service_alerts .alertInfo .back {
        display: block;
        width: 90%;
        text-align: center;
    }

    .service_alerts .alertInfo .markUnread {
        display: none;
    }

    .service_alerts .alertInfo .markUnread.mobile {
        display: block;
        margin: auto;
        float: unset;
    }
}

.affectedRoute {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 6px;
    background-color:rgba(200,200,200,0.2);
    border-left: 5px solid var(--routeColour);
}

.service_alerts .alertInfo .affectedRoute {
    margin-right: 5px;
}

.additionalRoutesNote {
    display: none;
    width: fit-content;
}

/* Customise table in service alerts so it does not look so plain. */
.serviceAlertTable {
    /* margin-left: auto;
    margin-right: auto; */

    border-collapse: collapse;
    width: 100%;
    border: none;
}

.serviceAlertTable th, .serviceAlertTable td {
    border: none;
    padding: 8px;
}
.serviceAlertTable tr:nth-child(1) {
    padding: 4px 8px;
    text-align: left;
    background-color: #047bba;
    color: white;
}
.serviceAlertTable tr {
    background-color: rgb(26,26,26);
}
.serviceAlertTable tr:nth-child(even) {
    background-color: rgb(32,32,32);
}

.service_alerts .filters {
    display: block;
    margin: auto;
    text-align: center;
    margin-bottom: 10px;
}

.service_alerts .filters a.filter {
    display: inline-block;
    margin: auto;
    font-size: 18px;
    padding: 4px 16px;
}
.service_alerts .filters a.filter.active {
    font-weight: bold;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}
.service_alerts .filters a.filter:not(.active):hover {
    cursor: pointer;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.modernTable {
    border-collapse: collapse;
    width: 100%;
}
.modernTable th, .modernTable td {
    padding: 8px;
}
.modernTable th {
    padding: 4px 8px;
    text-align: left;
    background-color: #047bba;
    color: white;
}
.modernTable tr {
    background-color: rgb(26,26,26);
}
.modernTable tr:nth-child(even) {
    background-color: rgb(32,32,32);
}
.modernTable.dark th {
    background-color: #033786;
}

/* Makes "modernTable" responsive by giving it horizontal scroll. */
.modernTableContainer {
    width: 100%;
    overflow-x: auto;
}

.feedbackSubmitted {
    display: block;
    margin: auto;
    width: fit-content;
    background-color: rgb(25,25,25);
    padding: 4px 16px;
    margin-top: 15px;
    border-radius: 10px;
}

.text-center {
    text-align: center;   
}

.vehicleAvatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: -15px;

    /* border: 2px solid rgb(74, 152, 216);
    padding: 4px; */
}
.vehicleAvatar img {
    width: 160px;
    margin-left: 40px;
}

.highlightAbuseText {
    font-size: 18px;
    border-bottom: 2px solid red;
    padding-bottom: 5px;
    width: fit-content;
}

.mapButtons {
    display: block;
    margin: auto;
    position: absolute;
    left: 0; bottom: 10px;
    z-index: 1000;
}

.mapCenterUserPositionBtn, .mapCenterMarkerBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    margin: auto;
    background-color: rgb(255,255,255);
    width: 30px;
    height: 30px;
    padding: 4px;
    box-shadow: 1px 1px 5px black;
    cursor: pointer;
    margin-left: 10px;
}
.mapCenterUserPositionBtn i, .mapCenterMarkerBtn i {
    color: grey;
    font-size: 36px;
    position: absolute;
    opacity: 0.4;
}

.mapCenterUserPositionBtn i.small, .mapCenterMarkerBtn i.small {
    color: rgb(64, 137, 221);
    font-size: 16px;
    opacity: 1;
}

.userLocationMarker {
    background-color: rgb(64, 137, 221);
    border-radius: 50%;
    border: 1px solid black;
}

.prevNextArrivalSeperator {
    display: block;
    margin: auto;
    width: 0%;
    margin-bottom: 20px;
    border-bottom: 2px solid white;
    padding: 12px 0;
    text-align: center;
}
.prevNextArrivalSeperator.barTop {
    border-top: 2px solid white;
    border-bottom: none;
}
.prevNextArrivalSeperator.barBoth {
    border-top: 2px solid white;
}

.dateFilter {
    margin-top: 10px !important;
}
.dateFilter label {
    margin-right: 5px !important;
}

.alertButtons {
    display: block;
    margin: auto;
    text-align: center;
}
@media screen and (max-width: 900px) {
    .alertButtons {
        margin-bottom: 10px;
    }
}

.customRadioBtn {
    display: inline-block;
    margin: auto;
    position: relative;
    width: 15px;
    height: 15px;
    background-color: rgb(210,210,210);
    border-radius: 50%;
    margin-left: 10px;
}
.customRadioBtn.selected .innerCircle {
    position: absolute;
    background-color: rgb(0, 119, 255);
    /* 20% for width of 15px */
    right: 20%;
    left: 20%;
    top: 20%;
    bottom: 20%;
    border-radius: 50%;
}

.modernCheckbox {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 14px;
    vertical-align: middle;
}
.modernCheckbox input {
    opacity: 0;
    width: 0;
    height: 0;
}
.modernCheckbox .slider {
    position: absolute;
    cursor: pointer;
    top:0;left:0;bottom:0;right:0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 14px;
}
.modernCheckbox .slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
.modernCheckbox input:checked + .slider {
    background-color: #2196F3;
}
.modernCheckbox input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
.modernCheckbox input:checked + .slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(14px);
}

.managePageUpdate {
    display: block;
    margin: auto;
    text-align: left;
    margin-top: 10px;
}
.managePageUpdate.space-bottom {
    margin-top: 0;
    margin-bottom: 12px;
}
.managePageUpdate.center {
    text-align: center;
}
.managePageUpdate div {
    display: inline-block;
    margin-left: 5px;
}

.managePageUpdate .toggleBtn {
    display: inline-block;
    margin-left: 15px;
}

@media screen and (max-width: 500px) {
    .managePageUpdate .toggleBtn {
        margin-top: 10px;
    }
}

.vehiclesMapUpdater {
    width: 80%;
}

.map_selected_vehicle a {
    display: inline-block;
    margin: auto;
    transition: 0.3s ease-in-out color;
    margin-right: -5px;
}
/* Rotate the whole pin button 45 deg, then rotate the slash back -45 deg. Do this to stop weird padding issues */
.map_selected_vehicle .pinBtn {
    transform: rotate(45deg);
}
.map_selected_vehicle .pinBtn .fa-slash {
    transform: rotate(-45deg);
}
.map_selected_vehicle a:hover {
    cursor: pointer;
    color: grey;
}

.map_selected_vehicle .buttons {
    display: block;
    margin: auto;
    text-align: center;
    position: absolute;
    top: 5px;
    left: 0;
}

.tripBlocksNotice {
    display: block;
    margin: auto;
    max-width: 600px;
    padding: 0 8px;
}

.lastUpdateNote {
    position: relative;
    float: right;
    text-align: center;
    /* font-size: 12px; */
    color: grey;
    margin-right: 10px;
    margin-bottom: 0;
}
.managePageUpdate.inline {
    display: inline-block;
}

.vehicleTransferLabel {
    display: block;
    margin: auto;
    margin-top: -20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.trip_days .link {
    color: white !important;
}
.trip_days .link:hover {
    color: rgb(165, 165, 165) !important;
}

button.modernBtn {
    margin-top: 0;
    font-size: 16px;
}

.dropdown {
    display: inline-block;
}

.dropdown .content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    z-index: 1;
}

.dropdown .content a {
    display: block;
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    text-align: left;
}

.dropdown:hover .content {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown .content a:hover {
    background-color: rgb(190, 190, 190);
}

.dropdown .icon::before {
    font-family: FontAwesome;
    content: "\f0d7";
}
.dropdown:hover .icon::before {
    content: "\f0d8";
}

.account_dashboard .notificationList {
    display: block;
    margin: auto;
    margin-bottom: 10px;
    background-color: rgb(16, 16, 39);
    width: fit-content;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px 12px;
}
.account_dashboard .notificationList:empty {
    display: none;
}

.account_dashboard .notificationList .notification {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 12px 6px;
    cursor: pointer;
    background-color: rgb(16, 16, 39);
    min-width: 250px;
}

.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.noSelect:focus {
    outline: none !important;
}

.notificationList .notification .date {
    color: grey;
}

.notificationList .notification input[type='checkbox'] {
    accent-color: red;
    float: left;
}

@media screen and (max-width: 425px) {
    .account_dashboard {
        width: 100%;
        margin-top: 0;
    }

    .warning {
        padding: 4px 12px;
        width: 80%;
        border-radius: 3px;
    }
}

@media screen and (max-width: 350px) {
    .account_dashboard .device {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 80% !important;
    }

    .account_dashboard .device .info {
        font-size: 12px !important;
    }

    .account_dashboard .device .logout_btn {
        font-size: 10px !important;
    }
}

.infoBox {
    display: block;
    margin: auto;
    width: fit-content;
    background-color: rgba(128, 128, 128, 0.2);
    border-left: 4px solid black;
    padding: 4px 12px;
}
.infoBox:empty {
    display: none;
}
.infoBox.warning {
    border-left: 4px solid rgb(220, 205, 0);
    background-color: rgba(220,205,0,0.4);
}
.infoBox.error {
    border-left: 4px solid rgb(220,0,0);
    background-color: rgba(220,0,0,0.4);
}
.infoBox.success, .infoBox.good {
    border-left: 4px solid rgb(30, 220, 0);
    background-color: rgba(30,220,0,0.4);
}

.mt-10 {
    margin-top: 10px !important;
}

.disabled .modernBtn, .modernBtn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.disabledPage {
    display: block;
    margin: auto;
    background-color: rgb(17, 17, 17);
    border-radius: 10px;
    width: fit-content;
    padding: 6px 24px;
}

.filters {
    display: block;
    margin: auto;
}
.filters .item {
    display: inline-block;
    margin-right: 10px;
}

*.hidden {
    display: none !important;
}

.filterSelect {
    background: none;
    color: white;
    border: none;
    border-bottom: 1px dotted white;
    outline: none;
}
.filterSelect option {
    /* background-color: black; */
    color: black;
}

.allVehiclesFilters {
    display: block;
    margin: auto;
    position: relative;
    height: 30px;
    margin-bottom: 10px;
}
.allVehiclesFilters .filters {
    display: block;
    position: absolute;
    top:0;bottom:0;
    left: 0;
    padding: 4px 0;
}

.allVehiclesFilters .sort {
    display: block;
    position: absolute;
    top:0;bottom:0;
    right: 0;
}

@media screen and (max-width: 800px) {
    .allVehiclesFilters {
        text-align: center;
        height: fit-content;
    }

    .allVehiclesFilters .filters {
        display: inline-block;
        position: relative;
    }

    .allVehiclesFilters .sort {
        display: inline-block;
        position: relative;
    }

    .allVehiclesFilters .sortBtn {
        margin-top: 10px;
    }
}

@media screen and (max-width: 450px) {
    .filterByTxt {
        display: none !important;
    }

    .orderBtnTxt {
        display: none;
    }
}

.newUserModal {
    margin: auto;
    position: fixed;
    top:0;left:0;bottom:0;right:0;
    width: fit-content;
    height: fit-content;
}
.newUserModal::backdrop {
    /* background-image: linear-gradient(
        45deg,
        rgb(60,60,60),
        rgb(95,95,95),
        rgb(25,25,25)
    ); */
    background-color: black;
    opacity: 0.6;
}

.inlineCenter {
    display: block;
    margin: auto;
    text-align: center;
}

.markdownContainer {
    display: block;
    margin: auto;
    width: 90%;
}
.markdownContainer * {
    text-align: left !important;
}
@media screen and (min-width: 1250px) {
    .markdownContainer {
        width: 70%;
    }   
}

.guideIframe {
    width:100%;
    height:700px;
    pointer-events: none;
    outline: none;
    border: none;
    /* box-shadow: 2px 2px 10px 3px black; */
    border: 4px inset var(--main_bg);
    margin-bottom: 10px;
}

.scrollToViewBtn {
    display: block;
    margin: auto;
    position: fixed;
    width: fit-content;
    height: fit-content;
    left:0;right:0;
    background-color: rgb(8,8,8, 0.8);
    border: 2px solid rgb(8,8,8);
    z-index: 100;
    padding: 2px 8px;
    box-shadow: 5px 5px 10px black;
    border-radius: 10px;
    font-size: 18px;
}
.scrollToViewBtn:hover {
    background-color: rgb(8,8,8, 1);
    cursor: pointer;
}
.scrollToViewBtn.top {
    top: 5%;
    animation-name: topAnim;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
}
.scrollToViewBtn.bottom {
    bottom: 5%;
    animation-name: bottomAnim;
    animation-duration: 0.5s;
}
.scrollToViewBtn.bottom.disappear {
    animation-name: bottomAnimReverse;
    animation-duration: 0.5s;
}
.scrollToViewBtn.top.disappear {
    animation-name: topAnimReverse;
    animation-duration: 0.5s;
}
@keyframes topAnim {
    0% { top: -1%; }
    100% { top: 5%; }
}
@keyframes topAnimReverse {
    0% { top: 5%; }
    100% { top: -10%; }
}
@keyframes bottomAnim {
    0% { bottom: -1%; }
    100% { bottom: 5%; }
}
@keyframes bottomAnimReverse {
    0% { bottom: 5%; }
    100% { bottom: -10%; }
}

.textIcon {
    display: flex;
    align-items: center;
}
.textIcon .icon {
    width: 30px;
    vertical-align: middle;
}
.textIcon .text {
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px;
}

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }
.mb-6 { margin-bottom: 30px; }

.vehicleLinkButton {
    display: inline-block;
    margin: auto;
    background-color: rgb(12, 12, 12);
    width: fit-content;
    border-radius: 4px;
    padding: 4px 12px;
}
.vehicleLinkButton:any-link {
    color: white;
    text-decoration: none;
    transition: 0.15s ease-in-out color, 0.15s ease-in-out background-color;
}
.vehicleLinkButton:any-link:hover {
    background-color: rgb(6, 6, 6);
    color: var(--linkHoverColour);
}
.loading .vehicleLinkButton {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

input#showingAmountInput {
    display: inline-block;
    background: none;
    color: white;
    outline: none;
    border: none;
    width: 8ch;
    border-bottom: 2px dotted grey;
}

.user_dashboard .pageButton {
    display: inline-block;
    margin: auto;
    background: none;
    border: none;
    outline: none;
    color: white;
    background-color: rgb(10, 10, 10);
    /* padding: 4px 8px; */
    padding: 8px 16px;
    border-radius: 4px;
}
.user_dashboard .pageButton:hover {
    cursor: pointer;
    background-color: rgb(25, 25, 25);
}

.user_dashboard .pageButtons {
    display: block;
    margin: auto;
    text-align: center;
    margin-bottom: 15px;
}
.user_dashboard .pageText {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

/* @media screen and (max-width: 450px) {
    .user_dashboard .pageButton {
        padding: 8px 16px;
    }
} */

.searchBarInput {
    display: block;
    margin: auto;
    margin-bottom: 10px;
    width: 80%;
    height: fit-content;
    padding: 8px 4px;
    background: none;
    color: white;
    outline: none;
    border: none;
    border-bottom: 1px solid grey;
    transition: border-bottom 0.3s ease-in-out;
    margin-bottom: 30px;
}
.searchBarInput:focus {
    border-bottom: 1px solid white;
}

.inputRow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Alert elements - info, warning and error. */
.alert {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 6px 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.alert .title {
    text-align: left;
    font-size: 1.17em;
}
.alert .title::before {
    font-family: FontAwesome;
    margin-right: 7px;
    vertical-align: top;
    font-size: 22px;
}
.alert .body {
    font-size: 1em;
}
.alert .footer {
    font-size: 0.7em;
    color: grey;
}
/* When there is no alert body, or it is empty then make title slightly smaller. */
.alert:not(:has(.body)) .title, .alert:has(.body:empty) .title {
    font-size: 1em;
}
.alert:not(:has(.body)) .title::before, .alert:has(.body:empty) .title::before {
    margin-right: 5px;
    vertical-align: middle;
    font-size: 18px;
}

.alert-info {
    background-color: rgba(26, 26, 128, 0.4);
    border: 2px solid rgb(26, 26, 128);
}
.alert-info .title::before {
    content: "\f05a";
}

.alert-info.important .title::before {
    content: "\f06a";
}

.alert-warning {
    background-color: rgba(128, 121, 26, 0.6);
    border: 2px solid rgb(128, 121, 26);

    /* Look into this - looks better on blue background. */
    /* background-color: rgba(196, 185, 36, 0.7);
    border: 2px solid rgb(202, 190, 26); */
}
.alert-warning .title::before {
    content: "\f071";
}

.alert-error {
    background-color: rgba(128, 26, 26, 0.6);
    border: 2px solid rgb(128, 26, 26);
}
.alert-error .title::before {
    content: "\f057";
}

.countTag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background-color: red;
    color: white;
    height: 20px;
    width: 20px;
    font-size: 14px;
    vertical-align: bottom;
    border-radius: 50%;
    transition: 0.2s ease-in-out opacity;
}
.countTag:empty {
    display: none;
}
.countTag.small {
    font-size: 11px;
}

.mobile_dropdown .countTag {
    height: 22px;
    width: 22px;
}

.navigation_bar .item#serviceAlerts:hover .countTag {
    opacity: 0.4;
}

.modernSearchBar input {
    display: block;
    margin: auto;
    width: 100%;
    font-size: 16px;
    padding: 12px 24px;
    outline: none;
    border: none;
    box-shadow: 0;
    transition: 0.2s ease-in-out box-shadow;
}
.modernSearchBar {
    width: 60%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.modernSearchBar:focus-within {
    box-shadow: 0 0 5px 4px rgb(70, 70, 70);
}

@media screen and (max-width: 750px) {
    .modernSearchBar {
        width: 85%;
    }
}

.modernSearchBar .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: grey;
    pointer-events: none;
}
/* Add padding to search input, if it has an icon */
.modernSearchBar:has(> .icon) input {
    padding: 10px 12px 10px 40px;
}