body{
  margin:0;
  padding:0;
  font-family: 'Rubik', sans-serif;

}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

.mapDiv {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10;
}

div.sidebar{
  width:25rem !important;
  z-index: 1000;
  height: 100%;
  padding: .75rem !important;
}

div.mb-3{
  z-index: 1000;
  border-radius: 5px;
}

div.data{
  transition: 0.2s;
  background-color: white;;
  z-index: 1000;
  min-height: 10rem;
  position: relative;
  color:black;
  border-radius: 5px;
  padding-bottom: 1rem;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  flex-wrap: wrap;
  align-items: center; 
  justify-content: center;
}

.btn-block{
  box-sizing: border-box;
  width:100%;
}

div.data img.bus{
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  width:23.5rem;
  height: 10rem;
  object-fit: cover; /* Do not scale the image */
  object-position: bottom; /* Center the image within the element */
}
div.busName{
  line-height: 1px;
}
div.busData table{
  border: none;
  border-collapse: collapse;
  width:100%;
}
div.sidebar hr{
  border: 1px solid grey;
}
div.line p{
  line-height: 0;
  border: none;
  border-collapse: collapse;
  width:100%;
}
div.line table{
  border: none;
  border-spacing:0; /* Removes the cell spacing via CSS */
  border-collapse: collapse;  /* Optional - if you don't want to have double border where cells touch */
  padding: 0px;
  border: 0px;
  border-spacing: 0;
  width: 100%;
}
div.line td.time{
  text-align: right;
}
div.line td.image{
  width:30px;

}
div.line img{
  width:25px;
  height:auto;
}

div.lineContent{
  padding: 1rem;
}

div.hideDisplay{
  z-index: 2000;
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  pointer-events: none;
  background-color: #1E7B4B;
  -webkit-animation: hideDisplay 4s infinite; /* Safari 4+ */
  -moz-animation:    hideDisplay 4s infinite; /* Fx 5+ */
  -o-animation:      hideDisplay 4s infinite; /* Opera 12+ */
  animation:         hideDisplay 4s infinite; /* IE 10+, Fx 29+ */
}

div.hideDisplay div{
  position: fixed;
  pointer-events: none;
  top: 50%;
  right: 50%;
  left: 50%;
  bottom: 50%;
  width: 100%;
}

@keyframes hideDisplay {
  0%   {opacity: 1;  pointer-events: visible;}
  50%  {opacity: 1;  pointer-events: visible;}
  100% {opacity: 0;}
}

div.lineName{
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color:#939598;
  color:white;
  padding: 1rem 1rem 0.5rem 1rem;
  word-wrap: break-word;      /* IE */
  white-space: pre-wrap;      /* CSS3 */   
  white-space: -moz-pre-wrap; /* Firefox */    
  white-space: -pre-wrap;     /* Opera <7 */   
  white-space: -o-pre-wrap;   /* Opera 7 */    
}

div.stationName{
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color:black;
  color:white;
  padding: 1rem 1rem 0.5rem 1rem;
  word-wrap: break-word;      /* IE */
  white-space: pre-wrap;      /* CSS3 */   
  white-space: -moz-pre-wrap; /* Firefox */    
  white-space: -pre-wrap;     /* Opera <7 */   
  white-space: -o-pre-wrap;   /* Opera 7 */    
}

div.lineContent img.busImg{
  height:35px;
  -webkit-filter: drop-shadow(0px 0px 2px rgba(53, 53, 53, .5));
  filter: drop-shadow(0px 0px 2px rgba(53, 53, 53, .5));
}
div.lineContent a{
  text-decoration: none;
  color:black;
}
div.lineContent tr{
  transition-duration: 500ms;
}
div.lineContent tr:hover{
  background-color: lightgray;
}

.btn-secondary {
  background-color: white;
  color: black;
  border:none;
  height: 40px 
}

.btn-secondary:hover {
  transition: 0.2s;
  background-color: #E2E2E2;
}
.btn-secondary:hover i{
  color:#5B5B5B;
}

.hamburger {
  transition: 0.2s;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-control{
  border:none;
}
div.dropdown-menu {
  height:auto;
}

#form-input,
#form-button {
  line-height: 50px;
  font-size: 16px;
}

#form-input {
  height: 50px;
}

div.line tr{
  transition: 0.2s;

}

div.line tr:hover{
  background-color:rgb(235, 235, 235);
}

a.timeSelect{
  transition: 0.2s;
  text-decoration: none;
  padding: .1rem;
  padding-left: .2rem;
  padding-right: .2rem;
  border-radius: 10px;
  color: black;
  cursor: pointer;
}

a.timeSelect:hover{
  background-color: rgb(235, 235, 235);
}

span.lineSpan{
  width:2rem;
  border-radius: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
div.data::-webkit-scrollbar {
  display: none !important;
  background: transparent;
}

/* Hide scrollbar for IE, Edge and Firefox */
div.data {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

div.busImageData{
  position: relative;
  text-align: center;
  color: white;
}

div.author{
  position: absolute;
  background-color: rgba(53, 53, 53, .5);
  bottom: 0px;
  right: 0px;
  padding-left: 2px;
  padding-right: 2px;
  border-top-left-radius: 5px;
  font-size: 0.7rem;
}

button.close{
  position: absolute;
  background-color: rgba(53, 53, 53, .0);
  color:white;
  border: none;
  top: 0px;
  left: 0px;
  width:1.2rem;
  height:1.2rem;
  font-size: 1rem;
}

button.switch{
  position: absolute;
  background-color: rgba(53, 53, 53, .0);
  color:white;
  border: none;
  top: 0px;
  right: .5rem;
  width:1.2rem;
  height:1.2rem;
  font-size: 1rem;
}

button.locateBus{
  position:absolute;
  background-color: rgba(53, 53, 53, .0);
  color:black;
  border: none;
  top: 11.5rem;
  right:1rem;
  padding: .5rem;
  font-size: 1.8rem;
  transition: 0.2s;
  border-radius: 5px;
}

button.locateTrain{
  background-color: rgba(53, 53, 53, .0);
  color:black;
  border: none;
}

button.locateTrain:hover {
  color: rgba(0,168,235,0.5);
}

td.leftTableBusDetailSide {
  width:30%;
}

@media only screen and (max-width: 1080px){
  div.sidebar{
    width: 20rem;
    height: 100%;
  }
  div.data img.bus{
    width: 20rem;
  }
  div.lineContent img.busImg{
    height:20px;
  }
  div.mb-3{
    width: 20rem;
  }
  button.locateBus{
    top: 11rem;
  }
  div.data {
    max-height: 30vh;
    width: 19.75rem;
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
  }
}