@font-face {
  font-family: Cerebri Sans;
  src: url(/assets/fonts/cerebrisans/cerebrisans-regular.eot);
  src: url(/assets/fonts/cerebrisans/cerebrisans-regular.eot?#iefix)
      format("embedded-opentype"),
    url(/assets/fonts/cerebrisans/cerebrisans-regular.woff) format("woff"),
    url(/assets/fonts/cerebrisans/cerebrisans-regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: Cerebri Sans;
  src: url(/assets/fonts/cerebrisans/cerebrisans-medium.eot);
  src: url(/assets/fonts/cerebrisans/cerebrisans-medium.eot?#iefix)
      format("embedded-opentype"),
    url(/assets/fonts/cerebrisans/cerebrisans-medium.woff) format("woff"),
    url(/assets/fonts/cerebrisans/cerebrisans-medium.ttf) format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: Cerebri Sans;
  src: url(/assets/fonts/cerebrisans/cerebrisans-semibold.eot);
  src: url(/assets/fonts/cerebrisans/cerebrisans-semibold.eot?#iefix)
      format("embedded-opentype"),
    url(/assets/fonts/cerebrisans/cerebrisans-semibold.woff) format("woff"),
    url(/assets/fonts/cerebrisans/cerebrisans-semibold.ttf) format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* These variables may be overridden by the agency's theme */
:root {
  --header-color: #231f20;
  --route-button-text-color: #fff;
  --route-badge-border-radius: 5em;
  --search-pill-border-radius: 0.5rem;
  --logo-height: calc(var(--header-height) / 2);
  --logo-y-offset: calc(var(--logo-height) / 2);
  --menu-link-font-weight: 600;
  --font-family: "Cerebri Sans";
  --header-height: 3.5rem;
  --header-link-height: 3.5rem;
  --header-link-font-size: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  overflow: hidden;
  position: fixed;
  margin: 0px;
  font-family: var(--font-family);
  font-weight: 400;
  font-style: normal;
  height: 100%;
  width: 100%;
  /* iOS Safari */
  -webkit-touch-callout: none;
  /* Safari */
  -webkit-user-select: none;
  /* Konqueror HTML */
  -khtml-user-select: none;
  /* Old versions of Firefox */
  -moz-user-select: none;
  /* Internet Explorer/Edge */
  -ms-user-select: none;
  /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
  user-select: none;

  /* Non-overridden variables  */
  --information-container-height: calc(3 * 3.5rem + 20px);
}

a {
  text-decoration: none;
  color: blue;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  height: var(--header-height);
  width: 100%;
  background-color: var(--header-color);
  position: relative;
  z-index: 201;
  align-items: flex-end;
}

.headerButton {
  display: flex;
  margin: 0 calc(3.5rem / 4);
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  height: var(--header-link-height);
}

.routesButtonContainer {
  color: var(--route-button-text-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.routesButtonText {
  font-size: medium;
  font-weight: 600;
}

.headerLogo {
  display: flex;
  height: 100%;
  width: auto;
  height: var(--logo-height);
  top: var(--logo-y-offset);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navigationMenu {
  display: flex;
  margin-left: auto;
  height: var(--header-link-height);
  font-size: var(--header-link-font-size);
}

.dropMenuButton {
  padding-top: calc((var(--header-link-height) - 1.8rem) / 2);
}

.dropDownMenu {
  position: fixed;
  right: 0;
  z-index: 201;
  background-color: var(--header-color);
  margin: 0;
  list-style-type: none;
  padding: 0;
  max-height: calc(100% - var(--header-height));
  overflow-y: auto;
}

.routeListMenu {
  position: fixed;
  left: 0;
  background-color: white;
  margin: 0;
  list-style-type: none;
  padding: 0;
  height: calc(100% - var(--header-height));
  top: var(--header-height);
  overflow-y: scroll;
  z-index: 201;
  box-shadow: 0px 3px 3px 0px rgb(0 0 0 / 30%);
  width: 100%;
}

.horizontalLinks {
  list-style-type: none;
  display: flex;
  align-items: center;
  margin: 0;
}

.menuItem {
  font-weight: 600;
}

.dropDownMenu .menuItem {
  border-top: #ffffff 1px solid;
}

.routeListMenu .menuItem {
  border-top: #edededed 1px solid;
  padding: 0.5em;
  cursor: pointer;
  display: flex;
  gap: 1em;
  align-items: center;
}

.shortNameBadge {
  border-radius: var(--route-badge-border-radius);
  padding-left: 0.5em;
  padding-right: 0.5em;
  min-width: 3.5em;
  max-width: 3.5em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  overflow: hidden;
}

.horizontalLinks .menuItem {
  max-width: max-content;
  text-align: center;
}

.menuItem a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: var(--header-link-height);
  padding: 1em;
  font-weight: var(--menu-link-font-weight);
}

.routeListMenu .menuItem:hover,
.routeListMenu .menuItem:active {
  background: rgb(235, 235, 235);
}

.searchContainer {
  position: absolute;
  z-index: 98;
  top: var(--header-height);
  width: 100%;
}

.informationContainer {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 100%;
  top: calc(var(--header-height) + 3.5rem);
  height: var(--information-container-height);
}

.predictionList {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
  height: var(--information-container-height);
  overflow-y: auto;
  /* Internet Explorer 10+ */
  -ms-overflow-style: none;
  /* Firefox */
  scrollbar-width: none;
  position: relative;
  z-index: 97;
}

.predictionList::-webkit-scrollbar {
  /* Safari and Chrome */
  display: none;
}

.predictionListElement {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  flex-direction: row;
  align-items: stretch;
  border-top: rgb(245, 245, 245) 1px solid;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(245, 245, 245, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  min-height: 3.5rem;
  max-height: 3.5rem;
  overflow: clip;
}

.predictionListElement:hover,
.predictionListElement:active {
  background: rgb(235, 235, 235);
}

.predictionListElement:first-of-type {
  border-top: none;
}

.predictionListElementShortNameContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
}

.predictionListElementShortName {
  font-weight: 600;
  margin: 0.5rem;
  text-align: center;
}

.predictionWheelchairAccessible {
  display: flex;
  align-items: center;
  padding-right: 5px;
}

.predictionListElementMiddle {
  margin: 0.5rem;
  /* This is the center block calc, it is restrcited by the left and right cols and will expand to fil its */
  width: calc(100% - 175px);
}

.predictionListElementMiddle div:first-child {
  font-weight: 600;
}

.predictionListElementEta {
  width: 60px;
  margin-left: auto;
  white-space: nowrap;
  align-items: center;
  display: flex;
}

#appDiv {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

#mapDiv {
  position: absolute;
  top: calc(
    var(--header-height) + 3.5rem + var(--information-container-height)
  );
  width: 100%;
  height: calc(
    100% - var(--header-height) - 3.5rem - var(--information-container-height)
  );
}

.bannerMessagesContainer {
  position: absolute;
  z-index: 1;
  width: 100%;
}

.bannerMessage {
  padding: 0.5rem;
  z-index: 97;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 3.5rem;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
}


.bannerMessage i {
  margin-left: auto;
  cursor: pointer;
}

.detectMessage {
  background-color: #006fdc;
  color: white;
}

.accessiblityMessage{
  background-color: #F3B824;
}

.tripInfo {
  background-color: #ffffff;
  padding: 0.5rem;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
  height: var(--information-container-height);
  justify-content: space-around;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 97;
}

.rightContainer{
  margin-left: auto;
}

.tripInfoWheelchairAccessible {
  cursor: pointer;
}

.tripInfo div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tripInfo div .updatedBadge {
  gap: 0;
  margin-left: auto;
  font-size: small;
}

.tripInfo i {
  text-align: center;
  width: 1.5rem;
  font-size: 1.15rem;
}

.headsignName {
  font-weight: bold;
  font-size: large;
}

.searchValueContainer {
  display: flex;
  position: absolute;
  padding: 0 0 2px 0.5rem;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.searchPill {
  display: flex;
  border-radius: var(--search-pill-border-radius);
  height: 2.4rem;
  line-height: 2.4rem;
  text-align: center;
  font-weight: 600;
  padding: 0 0.5rem;
  gap: 0.5rem;
  font-size: larger;
}

.searchText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goToStop {
  display: flex;
  align-items: center;
  padding-left: calc(0.5rem + 1.5rem);
}

.currentStop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

hr {
  width: 100%;
  border-top: 2px white solid;
}

.routeInfoList {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
  height: calc(3.5rem * 3 + 20px);
  overflow-y: auto;
  /* Internet Explorer 10+ */
  -ms-overflow-style: none;
  /* Firefox */
  scrollbar-width: none;
  position: relative;
  z-index: 97;
}

.routeGroup {
  padding: 1em;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.routeGroupToggleIcon {
  font-size: x-large;
}

.routeInfoElement {
  display: flex;
  cursor: pointer;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0 0.5rem;
  border-top: rgb(245, 245, 245) 1px solid;
  min-height: 3.5rem;
  max-height: 3.5rem;
  width: inherit;
  justify-content: space-evenly;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(245, 245, 245, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.routeInfoElement:hover,
.routeInfoElement:active {
  background: rgb(235, 235, 235);
}

.routeInfoElement:first-of-type {
  border-top: none;
}

.noPredictions {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: default;
  background: rgba(255, 255, 255);
}

.noPredictions:hover,
.noPredictions:active {
  background: rgba(255, 255, 255);
}

.routeInfoList i {
  text-align: center;
  width: 1.5rem;
  font-size: 1.15rem;
}

.vehicle {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.vehicle.updatedBadge {
  display: flex;
  flex-direction: row;
  text-align: center;
  align-items: center;
  font-size: small;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geoLocateControl {
  position: absolute;
  bottom: 144px;
  right: 10px;
  background-color: white;
  border-radius: 4px;
  height: 29px;
  width: 29px;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
  cursor: pointer;
  line-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333333;
  font-weight: 600;
  z-index: 1;
}

.geoLocateControl:hover {
  background-color: #f2f2f2;
}

.geoLocateControl.disabled {
  background-color: #f2f2f2;
  cursor: default;
  color: #888;
}

/* Timetable */

.timetableButtonContainer {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
}

.timetableButton {
  all: unset;
  border: solid 1px #266bcc;
  color: #266bcc;
  padding: 12px 28px;
  font-size: small;
  font-weight: 600;
  cursor: pointer;
}

.timetableContainer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height));
  background-color: white;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timetableHeaderContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
  padding: 16px;
  gap: 16px;
  border-bottom: solid 1px #eeeeee;
  box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.065);
  -webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.065);
  -moz-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.065);
}

.timetableHeaderFields {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 16px 24px;
  align-items: center;
  flex-wrap: wrap;
}

.timetableModalCloseButton {
  font-size: x-large;
  cursor: pointer;
}

.timetableRouteBadge {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: large;
  font-weight: 600;
  padding: 6px;
  width: 54px;
  border-radius: var(--route-badge-border-radius);
}

.timetableTitle {
  font-size: large;
  font-weight: 600;
}

.timetableSwitchDirectionButton {
  all: unset;
  border: solid 1px #266bcc;
  color: #266bcc;
  padding: 6px 6px 2px 6px;
  font-size: large;
  font-weight: 400;
  cursor: pointer;
}

.timetableSwitchDirectionButton:disabled {
  border-color: #b9b9b9;
  color: #aaaaaa;
  cursor: unset;
}

.timetableDatepicker {
  font: var(--font-family);
  font-weight: 400;
  height: 36px;
}

.timetableShowAllStops {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.timetableDataContainer {
  overflow-x: auto;
  display: grid;
  position: relative;
  flex: 1;
  padding: 0 16px;
}

.timetableStopContainer {
  position: sticky;
  top: 0;
  overflow: visible;
  border-bottom: solid 4px;
  margin-bottom: 24px;
  background-color: white;
}

.timetableStopName {
  width: 200px;
  position: absolute;
  bottom: 8px;
  left: 0px;
  transform: rotate(-45deg);
  transform-origin: top left;
}

.timetableStopCircle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: solid 1px;
  position: absolute;
  background-color: white;
  bottom: -9px;
  left: 0;
}

.timetableCell {
  display: flex;
  align-items: center;
  border-top: solid 1px #eeeeee;
  gap: 8px;
}

.timetablePeriod {
  font-size: small;
}

.timetableMissingInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  text-align: center;
}

.timetableMissingInfo i {
  color: #6e84a3;
  font-size: 40px;
}
