:root {
  --topButtonDisplay: block;
  font-size: 15px;
}
* {
  font-family: monospace;
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgb(31, 31, 31);
}
canvas {
  position: absolute;
  top: 0;
  left: 0;
}
.footer {
  position: fixed;
  font-size: 0.7rem;
  pointer-events: none;
  bottom: 0;
  margin: 5px;
  color: rgba(199, 199, 199, 0.575);
  z-index: 100;
}
img.footer {
  margin: 0;
}
#autoFetchInfo {
  color: rgba(228, 228, 228, 0.9);
}
#routeManager {
  position: fixed;
  top: 46px;
  left: 0;
  padding: 0;
  margin: 5px;
  gap: 5px;
  width: calc(100% - 10px); /*account for side margins*/
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
#routeManager > button {
  color: inherit;
}
#addRouteBtn {
  grid-row: 1;
  grid-column: 1;
  background-color: rgba(55, 92, 56, 0.6);
}
#addRouteBtn:hover {
  background-color: rgba(77, 128, 79, 0.6);
}
#nearby {
  grid-column: 2;
}
#gpsNearby {
  grid-column: 1;
}
#routesOn {
  color: rgba(53, 161, 3, 1);
}
#routesOff {
  color: rgba(219, 9, 9, 1);
}
#routesSettingContainer {
  display: flex;
  flex-direction: row;
  gap: 4px;
}
#routesSettingContainer > * {
  font-size: 1rem;
  padding: 0 4px 0 4px;
}
.routesSetting {
  font-size: 0.8rem;
}
#deleteAll {
  background-color: rgba(92, 55, 55, 0.6);
}
#deleteAll:hover {
  background-color: rgba(150, 90, 90, 0.6);
}
#canvas {
  box-shadow: inset 0 0 4rem 0 rgba(0, 0, 0, 0.3);
}
.topEl {
  display: var(--topButtonDisplay);
}
#previewContainer {
  display: flex;
  flex-direction: column;
  grid-column: 1 / span2;
  grid-row: 1;
  color: inherit;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.247);
  backdrop-filter: blur(5px);
  border-radius: 4px;
  border: 5px solid rgba(255, 255, 255, 0.5);
  padding: 0 10px 10px;
}
#confirmButtons {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 5px;
}
#confirmButtons > .btn {
  flex-grow: 1;
  color: inherit;
}
#previewTitle {
  font-size: 1.3rem;
  font-weight: bold;
}
#previewInfo {
  font-size: 0.7rem;
}
#previewRoutes {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
#previewRoutes > * {
  pointer-events: all;
  user-select: none;
  cursor: pointer;
}
.btn {
  text-align: center;
  border: none;
  border-radius: 4px;
  background-color: rgba(75, 75, 75, 0.6);
  transition: background-color 200ms;
  font-size: 1.1rem;
  padding-top: 4px;
  padding-bottom: 2px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  pointer-events: all;
  border: 2px solid rgba(201, 201, 201, 0.11);
}
.btn:hover {
  background-color: rgba(117, 117, 117, 0.6);
}
.square {
  aspect-ratio: 1;
  height: 32px;
  width: 32px;
  padding: 2px;
}
.white {
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.toggledBtn {
  background-color: rgba(124, 124, 124, 0.753) !important;
}
.routeEditorBtnContainer {
  display: flex;
  justify-content: space-between;
}
.routeEditorBtn {
  border: none;
  font-size: 1.2rem;
  border-radius: 8px;
  width: fit-content;
  cursor: pointer;
  padding: 0.5rem;
}
.modal {
  min-width: 80%;
  min-height: 10px;
  max-height: 80%;
  max-width: 90%;
  background-color: rgb(53, 53, 53);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 0 20px 10px rgb(32, 32, 32);
  z-index: 200;
  line-height: 1.4;
}
hr {
  height: 7px;
  width: 100%;
  border: none;
  border-top: 3px solid rgba(255, 255, 255, 0.151);
}
.textbox {
  font-size: inherit;
  background-color: transparent;
  resize: none;
  border: none;
  border-bottom: 3px solid rgb(153, 153, 153);
  user-select: none;
  -webkit-user-select: none;
  transition: border-bottom 200ms;
  outline: none;
  min-width: 30%;
}
.colorInput {
  background-color: transparent;
  border: none;
  padding: none;
  cursor: pointer;
  min-height: 25px;
  flex-grow: 1;
}
.colorInputLabel {
  font-weight: bold;
}
.textbox:focus {
  border-bottom: 3px solid rgb(221, 221, 221);
}
.suggestionDropdown {
  max-height: 20rem;
  background-color: rgba(255, 254, 254, 0.137);
  font-size: 0.9rem;
  padding: 0.3rem;
  padding-left: 0.5rem;
  list-style-type: none;
  overflow-y: auto;
  overflow-x: hidden;
}
.suggestionDropdown > li {
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
  transition: background-color 200ms;
  height: 1.1rem;
}
.nightBusSuggestion {
  background-color: rgba(1, 70, 160, 0.116);
}
.expressSuggestion {
  background-color: rgba(160, 1, 1, 0.103);
}
.usedSuggestion {
  background-color: rgba(255, 230, 5, 0.103);
}
.suggestionDropdown > li:hover {
  background-color: rgba(255, 255, 255, 0.247);
  cursor: pointer;
}
#routePicker {
  font-size: 1.1rem;
  height: fit-content;
  pointer-events: none;
  grid-column: 1 / span 2;
}
.routePickerTopBtn {
  pointer-events: all;
  color: inherit;
}
.routePickerOption {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.routePickerMain > p {
  margin: inherit;
  cursor: pointer;
  width: fit-content;
}
.routePickerMain > * {
  pointer-events: all;
}
.routePickerMain {
  display: flex;
  flex-direction: row;
}
.textBtn {
  background-color: rgba(75, 75, 75, 0.6);
  border-radius: 4px;
  padding-left: 2px;
  padding-right: 2px;
  transition: background-color 200ms;
  backdrop-filter: blur(5px);
}
.textBtn:hover {
  background-color: rgba(151, 151, 151, 0.7);
}
#loadingMessage {
  font: 3rem inherit;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  pointer-events: none;
  z-index: 50;
}
#primaryContainer {
  display: flex;
  flex-direction: row;
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  width: calc(100% - 10px);
  gap: 4px;
  padding: 5px;
  background-color: rgb(31, 31, 31);
  pointer-events: none;
}
.hidden {
  display: none;
}
.modalTitle {
  font-size: 1.7rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  text-align: center;
}
.modalContainer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.1rem;
}
a {
  color: rgb(126, 190, 206);
}
p {
  margin: 5px;
}
.infoExplain {
  text-align: center;
}
.infoTitle {
  font-weight: bold;
  font-size: 1.7rem;
  text-align: center;
}
#routeButtonsContainer {
  display: flex;
  flex-direction: row;
  gap: 5px;
}
#routeButtonsContainer > button {
  flex-grow: 1;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 0.5rem;
  font: 1rem inherit;
  border-radius: 10px;
  margin: 0;
  max-width: 90%;
  text-align: center;
  z-index: 400;
  background-color: rgba(31, 31, 31, 0.5);
  backdrop-filter: blur(5px);
  transition: bottom 500ms ease-in-out;
}
summary {
  cursor: pointer;
}
details > p {
  font-size: 1rem;
}
.alertInfoDiv {
  white-space: pre-line;
  max-width: 50vw;
  font-size: 0.85rem;
  margin: 3px;
  margin-left: 25px;
  background-color: rgba(31, 31, 31, 0.9);
  border-radius: 10px;
  padding: 3px;
}
.settingsOptionContainer {
  display: flex;
  flex-direction: row;
  /* justify-content: space-between; */
  gap: 10px;
}
