html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Roboto,Arial,sans-serif;
  font-weight: 300;
}

#map {
  height: 100%;
  width: 99.7%;
  float: left;
}

#route {
  float: right;
  width: 0;
  height: 100%;
  overflow: auto;
  word-break: break-all;
  border-left: 1px solid #ccc;
  box-sizing: border-box;
}

.search-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 10px 0 10px;
  border-bottom: 1px solid #ccc;
}

.search-input {
  margin-bottom: 10px;
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
}
.search-input input {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
}
.buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.buttons .spacer {
  flex-grow: 1;
}
#route button {
  font: bold 18px "Lucida Console", Monaco, monospace;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  margin: 0 0 0 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#route button:hover {
  background-color: #eee;
}
.reverse-waypoints {
  padding-top: 6px;
}
.reverse-waypoints:after {
  content: "\21c5";
  font-weight: normal;
}
.add-waypoint:after {
  content: '+'
}
.remove-waypoint:after {
  content: "\00d7";
  font-weight: normal;
}
.settings:after {
  content: "\2699";
}
#route .buttons button.settings {
  margin-left: 0;
}

#progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  z-index: 99999;
}
#progress {
  background: #439FE0;
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
}

.popup-buttons {
  margin-top: 10px;
}
.popup-buttons button {
  margin-right: 10px;
  background: #eee;
  cursor: pointer;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
}
.popup-buttons button:hover {
  background: #ddd;
}

#settings-dialog {
  display: none;
  position: absolute;
  top: 0%;
  right: 30%;
  padding: 0 10px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  flex-direction: column;
  background-color: white;
}
#settings-dialog.active {
  display: flex;
}
#settings-dialog .setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
#settings-dialog .setting .label {
  margin-right: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 17px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

.adp-list {
  border: 0 !important;
}
.adp-placemark {
  border: 0 !important;
}

#summary {
  font-family: Roboto,Arial,sans-serif;
  font-weight: 400;
  padding: 6px;
  margin-top: 10px;
  display: block;
  color: #2c2c2c;
}

.link-button {
  position: absolute;
  top: 10px;
  left: 10px;
}

.link-button button {
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  margin: 0 0 0 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 5px 10px;
}
.link-button button:hover {
  background-color: #eee;
}
