body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  
}
.sidebar {
  display:block;
  position: absolute;
  margin: 165px 20px 30px 20px;
  width: 25%;
  top: 0;
  bottom: 0;
  padding: 20px;
  background-color: #fff;
  overflow-y: scroll;
}

.card {
  font-size: small;
  border-bottom: solid #d3d3d3 2px;
  margin-bottom: 6px;
}

.card-header {
  font-weight: bold;
  padding: 6px;
}

.no-route {
  background-color: #d3d3d3;
  color: #f00;
}

.obstacle-found {
  background-color: #d3d3d3;
  color: #fff;
}

.route-found {
  background-color: #33a532;
  color: #fff;
}

.card-details {
  padding: 3px 6px;
}




.toggle-label {
  position: absolute;
  top: 180px;
  left: 20px;
  background-color: #10b156;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.3s ease-in-out;
    color: white;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toggle-label:hover {
  background-color: #1e6c3c;
}

.toggle-label:active {
  background-color: #dad8d9;
}


input[type="checkbox"]#toggle {
  position: absolute;
  top: 20px;
  left: 70px;
  opacity: 0;
  z-index: 2;
}

.sidebar {
  display: none;
  position: absolute;
  top: 50px;
  left: 10px;
  padding: 10px;
  background-color: #f6f6f6;
  width: 200px;
  cursor: pointer;
  z-index: 1;
}

input[type="checkbox"]#toggle:checked + .sidebar {
  display: block;
}


input.toggle:checked + label.sidebar-toggle:after {
  margin-left: calc(100% - 25px);
}

div.sidebar {
  display: none;
  padding: 10px;
  background-color: #f6f6f6;
  width: 200px;
  cursor: pointer;
}

input.toggle:checked ~ div.sidebar {
  display: block;
}

.mapbox-directions-instructions {
  position: absolute;
  top: 200px;
  right: 0px;
  background-color: #878787 ;
  padding: 0px;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0.8; /* Agregar esta línea */
}

/* Añadir este CSS al final de tu archivo CSS */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #444;
  color: white;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s;
}

.notification.show {
  opacity: 1;
}

