:root{
  --air:rgb(64, 185, 31);
  --train: rgb(82, 176, 254);
  --tram: rgb(162, 215, 255);
  --metro: rgb(0, 69, 149);
  --bus: rgb(159, 75, 187);
  --ferry: rgb(30, 30, 124);
  --car: rgb(166, 143, 205);
  --cycle: rgb(110, 33, 26);
  --walk: rgb(232, 140, 0);
  --aerialway: rgb(175, 207, 59);

  --poi: rgb(0, 0, 0);
  --restaurant: rgb(0, 0, 0);
  --accommodation: rgb(0, 0, 0);

  --future : rgb(255, 255, 255);
}

@font-face {
  font-family: Twemoji;
  src: url(fonts/Twemoji.Mozilla.ttf);
}

@font-face {
  font-family: FlagEmojis;
  src: url(fonts/Twemoji.Mozilla.ttf);
  unicode-range: U+1F1E6-U+1F1FF; /* Flags */
}

.flagPNG {
  height:20px;
  max-width: 35px;
  display: inline-block;
  vertical-align: -5px;
  border-radius: 3px; 
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.largeFlag {
  height:unset !important;
  max-height: 100px;
  max-width: 35%!important;
}

.flag {
  font-family: Twemoji !important;
}

@media screen and (min-width: 1500px) {
  .flag {
    font-size: 26px;
    vertical-align: -3px;
  }
}

/* Navbar */

.dropdown-search {
  margin: 10px;
  width: calc(100% - 20px); /* Adjust width to fit within the dropdown padding */
}

.incoming-request-number{
  color:red;
  position: relative; 
  top: -0.5em; 
  font-size: 80%;
}

.plus-icon {
  position: relative; 
  top: -0.5em; 
  font-size: 80%;
  right: 11px;
}

.after-plus-icon{
  left: 37px;
  position: absolute;
}

.navbar {
  z-index: 2000;
  box-shadow: 0px 1px 5px grey;
}
.navbar-nav>li>.dropdown-menu { 
  width: 230px; 
}

.navbar-collapse {
  z-index: 1001;
}

.navbar-nav .nav-link {
  display: flex; /* Use Flexbox for layout */
  align-items: center; /* Align items vertically */
  gap: 0.5rem; /* Add space between the icon and the text */
  white-space: nowrap; /* Prevent text from wrapping */
}

.navbar-nav .nav-link i {
  display: inline-block; /* Ensure icons don't overflow or collapse */
  line-height: 1; /* Vertically centers the icons */
}

/* Optional: Adjust dropdown items similarly if needed */
.dropdown-item {
  display: flex; /* Use Flexbox for layout */
  align-items: center; /* Align items vertically */
  gap: 0.5rem; /* Add space between the icon and the text */
  white-space: nowrap; /* Prevent text from wrapping */
}

.tripCurrent{
  display:none; 
}

.tripCurrent i{
  animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
  50% {
    color: rgb(255, 0, 0);
  }
}

/* Trips */

.dropdown-item{
  cursor:default;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Adjust the gap as needed */
}

.tag-blob {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  margin: 2px;
  user-select: none;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tag-blob i {
  margin-left: 5px;
}

.airframe{
  position: relative;
  top: -10px;
  margin-left: 10px;
}

.vehiclePhotoContainer {
  position: relative;
  display: inline-block;
}

.vehiclePhotoAttr {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: .25em;
  color: white;
  background-color: rgba(0,0,0,.2);
  font-size: 0.9em;
}

.popover {
  max-width: 80%;
}
.popover img {
  max-width: 100%;
}

.vehiclePhotoAttr:hover {
  color:#c9c5c5
}

td.noHidden::before{
  display: none !important;
}

td.noHidden{
  cursor: default !important;
}

.trips{
  margin-top: 30px;
  margin-bottom: 70px;
  padding: 25px;
}

.trips select {
  color: black;
}

td.child table tr td{
  max-width: max-content !important;
}


th {
  background-color: #207cca !important;
  color: white;
}

tr.selected td img{
  background-color: #ffffff;
  padding: 5px;
  border-radius: 6px;
}

td .operatorLogo{
  max-height: 38px;
  max-width: 100px;
  margin-right: 5px;
 }

.multiLink{
   bottom: 30px;
   width:50%;
   right:25%;
   position:fixed;
   font-size: 1.5em;
   display:none;
   z-index: 100;
   text-align:center;
 }

.bottom-space{
  height: 30px;
}

 button.multiTrip{
  width:66%;
 }
 button.multiCancel{
  width:50px;
 }
 button.multiDropdown{
  width:50px;
 }
 
 .button{
     border-radius: 10px;
     padding: 5px 5px;
     text-align: center;
     text-decoration: none;
     display: inline-block;
     font-size: 13px;
 }
 
 .nonPublic{
   display:none;
 }
 
 .button+.button{
   margin-left: 5px;
 }

.duration{
  white-space: nowrap;
}

#tripRows td div.duration.est:before{
  content:"\A";
  width:5px;
  height:5px;
  margin-right: 5px;
  border-radius:50%;
  vertical-align:middle;
  background-color:#9f58a3;
  display:inline-block;
}
#tripRows td div.duration.man:before{
  content:"\A";
  width:5px;
  height:5px;
  margin-right: 5px;
  border-radius:50%;
  vertical-align:middle;
  background-color:#4f8d61;
  display:inline-block;
}

td.actionButtons{
  white-space: nowrap;
}

#dataTable{
  padding-top: 8px;
}


#dataTable tbody td{
  max-width: 120px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#dataTable tbody td.flagList{
  min-width:120px;
  text-overflow:unset ;
  overflow: auto;
  white-space: unset;
}

@media screen and (max-width: 600px) {
  #dataTable tbody td{
    max-width: 100px;
  }

  td.child table tr td{
    white-space: normal !important;
    text-overflow:unset !important;
    overflow:auto !important;
  }
  td.child table tr{
    width:100%;
  }

  .trips{
    padding: 0px;
    margin-bottom:5em;
  }

  .multiLink{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    padding-bottom: 5px;
  }

  .bottom-space{
    height: 15px;
  }
}

.operatorLogoCell {
  overflow-x: scroll !important;
}

.operatorLogoCell::-webkit-scrollbar {
    display: none;  /* Hide scrollbars */
}

.operatorLogoCell {
    scrollbar-width: none;  /* Hide scrollbars */
}

/* Admin */

#admin th{
  color:#000;
}

 /* Forms */

.loading.error{
  background-image: url("../images/icons/error-icon.png");
}
.loading.spinning{
  background-image: url("../images/icons/spinning-loading.gif");
} 
.loading{
  background-size: auto 50%;
  background-position: right 2px center;
  background-repeat: no-repeat;
}
/* Preload spinner */
body::before {
  content: url("../images/icons/spinning-loading.gif");
  position: absolute;
  top: -9999rem;
  left: -9999rem;
  opacity: 0;
}


.manualStationSelect::after{
  content: attr(text);
  margin-right:2px;
  margin-top: -25px;
  font-size: 0.8em;
  text-align: right;
  float:right;
  color:#710f0f5a
}
.manualStationSelect{
  background-color: #ffb4b43b;
}

.ui-autocomplete .disambiguation{
  opacity: 0.5;
  font-size: 75%;
  padding-left: 1.75em;
  display: block;
}

#operatorGroup .operatorLogoWrapper{
  display:inline-block;
  vertical-align: middle;
  position:relative;
  width:31px;
  height: 32px;
}

#operatorGroup .operatorLogo{
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width:100%;
}

#operatorGroup #operator{
  position:relative;
  display:inline;
  width: calc(100% - 37px);
  right:0px;
}


/* Copy of #operatorGroup styles applied to the flagDropdownWrapper and input */

/* Wrapper for the flag dropdown, mimicking .operatorLogoWrapper */
.flagDropdownWrapper {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  width: 35px;
  height: 32px;
}

/* Select element styled like .operatorLogo */
.flagDropdownWrapper select {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-75%);
  width: 100%;
  height: 100%;
  padding-left: 4px;
  border: none;
  background-color: transparent;
  font-size: 20px;
  font-family: Twemoji !important;
  -webkit-appearance: none;
  appearance: none; /* Remove default dropdown arrow */
}

/* The input field next to the flag select, similar to #operator */
.originInput, .destinationInput {
  position: relative;
  display: inline-block;
  width: calc(100% - 37px);
  margin-left: 5px;
  height: 32px;
  border: 1px solid #ccc;
}

.logo img{
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
}


#form {
  width: 500px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: #fcfcfc;
  padding: 20px 50px 40px;
  box-shadow: 1px 4px 10px 1px #aaa;
  font-family: sans-serif;
}

#form * {
    box-sizing: border-box;
}

#form h2{
  text-align: center;
  margin-bottom: 30px;
}

#form input {
  margin-bottom: 15px;
}

#form input[type=text], 
#form input[type=password], 
#form input[type=date], 
#form input[type=time], 
#form input[type=number] {
  width: 100%;
  height: 32px;
  padding: 6px 16px;
  border: 0;
  background-color: #f3f3f3;
  margin: 0 0 1rem;
  display: grid;
  justify-content: start;
  align-items: center;
  text-align: left;
  line-height: 1;
  color: black;
  -webkit-appearance: none;
  appearance: none;
}

#form input[type=float] {
  width: 100%;
  height: 32px;
  padding: 6px 16px;
  border: 0;
  background-color: #FFF;
  border: 1px solid #c5c5c5;
  margin: 0 0 1rem;
  display: grid;
  justify-content: start;
  align-items: center;
  text-align: left;
  line-height: 1;
  color: black;
  -webkit-appearance: none;
  appearance: none;
}

#form select {
  width: 100%;
  height: 32px;
  padding: 6px 16px;
  border: 0;
  background-color: #f3f3f3;
  margin: 0 0 1rem;
  display: grid;
  justify-content: start;
  align-items: center;
  text-align: left;
  line-height: 1;
  color: black;
}

#form select:has(> option[value=""]:checked) {
    color: grey;
}

#form select option[value=""] {
    color: grey;
}

#form select#currency{
  display: inline; /* Adjust if you want it inline with other elements */
  min-width: 5em;
  height: 32px;
  border: none;
  background-color: #f3f3f3;
  -webkit-appearance: none; /* Removes default styling for select elements on WebKit browsers */
  -moz-appearance: none; /* Removes default styling for select elements on Firefox */
  appearance: none; /* Standard way to remove default arrow */
  vertical-align: middle;
  margin-bottom: 15px;
  padding-left: 16px;
  padding-right: 6px;
  text-align:left;
  line-height: 1;
  color: black;
}

input[type=number] {
  appearance: textfield;
  vertical-align: middle;
  line-height: 1;
}

/* For Webkit browsers like Chrome, Safari */
#form input[type="number"]::-webkit-inner-spin-button,
#form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#priceDetails {
  display: flex;
  flex-wrap: nowrap; /* Allows items to wrap onto the next line */
  gap: 10px; /* Adjust gap between elements */
}

#ticketSearchInput,
#ticketSearchInputLabel {
  grid-column-start: 1;
  grid-column-end: -1;
}

#currency{
  text-align: center;
}

#form label:not(.btn) {
  color: #777;
  font-size: 0.9em;
  display: block;
}

#form label a{
  color: #777;
}

#form .text {
  color: #777;
  font-size: 0.9em;
  display: block;
}

#form .text a{
  color: #777;
}

#form group {
  display: block;
  clear: both;
}

#form label.checkboxLabel {
  display: inline;
}

#form input[type=checkbox]:not(.form-check-input) {
  float: left;
  margin: 6px 0.3rem 6px 0;
}

#form #dates,
#form #unknownDates,
#form #onlyDatePicker,
#form #manDuration,
#form #originStationAuto,
#form #originStationManual,
#form #destinationStationAuto,
#form #destinationStationManual,
#form #detailsGroup {
  display: none;
}


#form input[id=radioPreciseDates]:checked ~ #dates,
#form input[id=radioUnknown]:checked ~ #unknownDates,
#form input[id=radioUnknown]:checked ~ #manDuration, 
#form input[id=radioOnlyDate]:checked ~ #onlyDatePicker,
#form input[id=radioOnlyDate]:checked ~ #manDuration,
#form input[id=originManualToggle]:not(:checked) ~ #originStationAuto,
#form input[id=originManualToggle]:checked ~ #originStationManual,
#form input[id=destinationManualToggle]:not(:checked) ~ #destinationStationAuto,
#form input[id=destinationManualToggle]:checked ~ #destinationStationManual,
#form input[id=detailsToggle]:checked ~ #detailsGroup {
  display: grid;
}

#manDuration, #dates, #onlyDatePicker {
  gap: 0 0.3rem;
}

#manDuration, #dates {
  grid-template-columns: 1fr 1fr;
}

#onlyDatePicker {
  grid-template-columns: 1fr; 
}

@supports (contain:strict) {

  #manDuration, #dates, #onlyDatePicker {
    grid-template-columns: none;
    gap: 0;
  }

  #form :has(input[id=radioPreciseDates]:checked) #dates,
  #form :has(input[id=radioUnknown]:checked) #unknownDates,
  #form :has(input[id=radioUnknown]:checked) #manDuration,
  #form :has(input[id=radioOnlyDate]:checked) #onlyDatePicker,
  #form :has(input[id=radioOnlyDate]:checked) #manDuration,
  #form :has(input[id=originManualToggle]:not(:checked)) #originStationAuto,
  #form :has(input[id=originManualToggle]:checked) #originStationManual,
  #form :has(input[id=destinationManualToggle]:not(:checked)) #destinationStationAuto,
  #form :has(input[id=destinationManualToggle]:checked) #destinationStationManual,
  #form:not(:has(input[id=originManualToggle])) #originStationAuto,
  #form:not(:has(input[id=destinationManualToggle])) #destinationStationAuto,
  #form :has(input[id=detailsToggle]:checked) #detailsGroup {
    display: grid;
  }
}

#form .fieldset-datetime {
  display: grid;
  grid-template-columns: 1fr minmax(6rem,auto);
  gap: 0 1rem;
}

#form .fieldset-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

#form .fieldset-price {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr;
  gap: 0 0.3rem;
}

@media (max-width:439px) {
  #form .legend {
    width:100%;
  }
}

#detailsGroup {
  clear: both;
  padding-top: 1rem;
}

#price, #purchasing_date, #currency, #manDuration input[type="number"]{
  width:100% !important;
}

@media (max-width:439px) {
  #form .legend {
    width:100%;
  }

  #form .fieldset-price {
    grid-template-columns: 1fr 1fr;
  }

  #form .fieldset-price #price {
    grid-column-start: 1;
    grid-column-end: 2;
  }

  #form .fieldset-price #currency {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  #form .fieldset-price #purchasing_date {
    grid-column-start: 1;
    grid-column-end: 3;
  }
}

#form .trip-time-inputs,
#form .inline-inputs {
  display: flex;
  justify-items: start;
  justify-content: start;
  align-items: baseline;
  grid-auto-flow: column;
  flex-wrap: wrap;
  gap:0.5rem;
}

#form .trip-time-inputs {
  padding-bottom:1rem;
}

#form hr {
  border-bottom: 1px solid #aaa;
}

#form .inline-inputs {
  margin: 0 0 1rem;
}

#form .radio-group {
  display: flex;
  align-items: baseline;
  gap:0.3rem;
}

#form .radio-group input[type=radio] {
  margin: 0;
}

#form #dates {
  transition: .3s;
}

#form button[id=submit], button[id=signup]{
  display: block;
  margin: 20px auto 0;
  width: 150px;
  height: 40px;
  border-radius: 25px;
  border: none;
  color: #eee;
  font-weight: 700;
  box-shadow: 1px 4px 10px 1px #aaa;
}

#form button[id=submit]{
  background: #207cca; /* Old browsers */
    background: -moz-linear-gradient(left, #207cca 0%, #9f58a3 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #207cca 0%,#9f58a3 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #207cca 0%,#9f58a3 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#207cca', endColorstr='#9f58a3',GradientType=1 ); /* IE6-9 */
}

#form button[id=signup]{
  background: #207cca; /* Old browsers */
    background: -moz-linear-gradient(left, #207cca 0%, #007f26 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #207cca 0%,#007f26 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #207cca 0%,#007f26 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#207cca', endColorstr='#007f26',GradientType=1 ); /* IE6-9 */
}

@media screen and (max-width: 600px) {
  #form {
    width: 90%;
    padding: 20px 35px 40px;
  }
}

#form fieldset legend {
  display:contents;
}

#form .legend,
#form .fieldset-datetime .fieldset-datetime-label {
  grid-column-start: 1;
  grid-column-end: -1;
  display: block;
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}


/* Map style */

body {
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
}
html, body {
  height: 100%;
  width: 100%;
}
.mapRouting{
  height: 100%;
}
.mapUser {
  height: calc(100% - 56px);
}
.mapIndiv {
  height:100%;
}
#overpass-api-controls {
  padding: 10px;
  background-color: rgb(255, 255, 255);
}
#overpass-api-controls a {
  display: inline;
}

/* Waiting spinner */
.spinner-container{
  width:100%;
  height:100%;
  display: flex;
  justify-content: center;
}
.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  margin-top: -40px;
  top: 50%;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: black;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.filter-option-inner-inner{
  font-size: 0.8em;
}

.dropdown-item{
  font-size: 0.8em;
}

.dropdown-menu .inner li a{
  width:100%;
}

.dropdown-menu{
  width:100%;
}
#specialSelect{
  font-size: unset;
  width:100%;
}

/* Legend Control Styling */
.legend-control {
  padding: 0;
  background: none;
  box-shadow: none;
}

.legend-toggle a {
  display: block;
  width: 30px;
  height: 30px;
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 30px;
  font-size: 18px;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  text-decoration: none;
}

.legend-toggle a:hover {
  background-color: #f4f4f4;
  color: #000;
}

.legend-content {
  background-color: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  max-width: 200px;
  position: relative;
}

.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.legend-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.legend-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.legend-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legend-content li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.legend-icon {
  display: inline-block;
  width: 20px;
  height: 10px;
  margin-right: 8px;
  border: 1px solid #333;
  border-radius: 2px;
}

.legend-icon.striped {
  position: relative;
  display: inline-block;
}
.legend-icon.striped::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    90deg,
    transparent,          /* First transparent stripe */
    transparent 4px,      /* Blue stripe width */
    white 4px,     /* Start of white stripe */
    white 8px,     /* White stripe width */
    transparent 8px,      /* Second transparent stripe starts */
    transparent 12px,     /* Continue pattern */
    white 12px,
    white 16px,
    transparent 16px,
    transparent 20px
  );
  pointer-events: none;
}
/* Keyframes for blinking effect */
@keyframes blink-live {
  0% { opacity: 1.0; }
  50% { opacity: 0.35; }
  100% { opacity: 1.0; }
}

/* Polylines */

/* Base polyline style with common shadow effect */
.polyline {
  stroke-width: 3;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.45)) 
          drop-shadow(-1px -1px 0 rgba(0, 0, 0, 0.45)) 
          drop-shadow(1px -1px 0 rgba(0, 0, 0, 0.45)) 
          drop-shadow(-1px 1px 0 rgba(0, 0, 0, 0.45));
}

/* Air-related polylines */
.airPolyline, 
.helicopterPolyline { 
  stroke: var(--air);
  stroke-dasharray: 15, 10, 5, 10;
}

/* Land-based polylines */
.carPolyline { 
  stroke: var(--car);
}

.tramPolyline { 
  stroke: var(--tram);
}

.metroPolyline { 
  stroke: var(--metro);
}

.walkPolyline { 
  stroke: var(--walk);
  stroke-dasharray: 1, 12;
}

.cyclePolyline { 
  stroke: var(--cycle);
  stroke-dasharray: 10, 12;
}

.busPolyline { 
  stroke: var(--bus);
}

/* Water-based polylines */
.ferryPolyline { 
  stroke: var(--ferry);
}

/* Aerialway polylines */
.aerialwayPolyline { 
  stroke: var(--aerialway);
}

/* Future and past states */
.futurePolyline { 
  stroke: var(--future);
  opacity: 50%;
}

.plannedFuturePolyline { 
  filter:unset;
  stroke: var(--future) !important;
  stroke-dasharray: 5, 10;
}

.airPolyline.plannedFuturePolyline {
  stroke-dasharray: 15, 25;
  stroke: var(--future);
}

.cyclePolyline.plannedFuturePolyline {
  stroke-dasharray: 10, 34;
  stroke: var(--future);
}

.walkPolyline.plannedFuturePolyline {
  stroke-dasharray: 1, 25;
  stroke: var(--future);
}

.currentPolyline { 
  animation: blink-live 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes blink-live {
  0% { opacity: 1.0; }
  50% { opacity: 0.35; }
  100% { opacity: 1.0; }
}

/* Special case: Self-connection polylines */
.selfConnectionPolyline {
  stroke: #000;
  stroke-dasharray: 1, 12;
  filter: unset;
}


/* Future Toggle */

.futureToggle {
  background-color: #ffffff;
  padding: 2px;
}

/* Info Panel */
#infoPanel {
  width: 320px;
  background-color: white;
  padding-top: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Stats */
#km{
  display: none;
}
#leftLabel{
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  right: calc(50% + 45px);
  margin-top: 30px;
}
#rightLabel{
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  left: calc(50% + 45px);
  margin-top: 30px;
}
.statsContainer div{
  padding: 2.5%;
  width : 33%;
  display: inline-block;
  height:50%;
  min-height: 350px;
  min-width:500px;
}
.statsContainer .long{
  width : 44%;
}
.statsContainer {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 1115px) {
  .statsContainer div{
    width : 90% !important;
    display: block;
    min-width:0;
  }
}

#statsSelectWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  margin: auto;
}

.statsSelect {
  margin: 10px;
  max-width: 150px
}

#statsSelectD-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

#statsSelectTrips {
  margin-top: 10px;
  margin-right: 10px;
}

#statsSelectKmSwitch {
  margin-left: 10px;
  margin-right: 10px;
}

#statsSelectKm {
  margin-top: 10px;
  margin-left: 10px;
}


/* Buttons */

.btn-label {
  position: relative;
  left: -12px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px 0 0 3px;
}
 
.btn-labeled {
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

/* Hide button text on screens smaller than 600px */
@media (max-width: 599px) {
  .btn-text {
    display: none;
  }
  .btn-friend {
    width:38px;
  }
}
 
.btn {
  margin-bottom: 10px;
}

.actionKebab{
  vertical-align: -0.3em;
}

/* About */

@media screen and (max-width: 1000px) {
  #bmc-wbtn{
    display:none !important;
  }
}

@media screen and (min-width: 600px) {
  .aboutForm {
    width:580px !important;
  }
}

@media screen and (min-width: 1000px) {
  .aboutForm {
    width:850px !important;
  }
}

/* Leaderboard */

#leaderboard tbody td {
  vertical-align: middle;
}

#leaderboard tr.highlight > td,
#leaderboard tr.highlight + tr.child > td:not(:has(table)) { /* we don't want to highlight childs that contain another table */
  color: white;
  background-color: #6c757d;
}

#leaderboard_filter {
  margin-bottom: 5px;
}

#leaderboard .child table {
  width:100%;
  max-width: 500px;
  margin:auto;
  box-sizing: border-box;  /* ensure padding and border are included in the width */
}

#leaderboard .child td, 
#leaderboard .child th {
  padding: 5px;  /* adjust as needed */
  border: 1px solid #ddd;  /* adjust as needed */
}


table.dataTable.dtr-column>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>th.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>td.control:before,
table.dataTable.dtr-column>tbody>tr>th.control:before {

  height:1em;
  width:1em;
}

.leaderboardLink{
  text-decoration: none;
  transition: filter 0.1s;
}


.tagLink{
  text-decoration: none;
  transition: filter 0.1s;
  color:#000;
}

.leaderboardLink:hover {
  filter: brightness(500%);
}

.dataTables_wrapper .dataTables_filter{
  margin-bottom: 5px;
}
