html, body, #map {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  overflow: hidden;
  color: #222;
}

.box {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #dddddd;
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
}

#brand {
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 1px;
}

.radarLogo {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1.5px solid #2f8f68;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
}

.radarLogo:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 9px;
  left: 10px;
  top: 2px;
  background: #2f8f68;
  transform: rotate(-12deg);
  transform-origin: bottom;
}

#status {
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  font-size: 11px;
  color: #777;
}

.greenDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58c58a;
  margin-right: 5px;
}

.statusGap {
  margin-left: 10px;
}

#traffic {
  top: 60px;
  left: 52px;
  width: 220px;
  max-height: 380px;
  overflow-y: auto;
}

.heading {
  padding: 9px 11px 5px;
  font-size: 10px;
  font-weight: bold;
  color: #6f6f6f;
  letter-spacing: 1px;
}

.trafficRow {
  padding: 6px 11px;
  border-top: 1px solid #eeeeee;
  font-size: 11px;
  color: #666;
  cursor: pointer;
}

.trafficRow:hover {
  background: #f7f7f7;
}

#rightMenu {
  position: absolute;
  top: 60px;
  right: 10px;
  z-index: 1000;
  width: 250px;
}

.menuBox {
  position: relative;
  margin-bottom: 8px;
  padding-bottom: 9px;
}

.sourceBox {
  margin: 0 11px 5px;
  padding: 6px 8px;
  background: #f7faf8;
  border: 1px solid #dce7e0;
  border-radius: 7px;
  font-size: 11px;
  color: #35634e;
}

.smallText {
  margin: 4px 11px 0;
  color: #999;
  font-size: 9px;
}

.buttonRow {
  display: flex;
  margin: 0 11px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
}

.buttonRow button {
  flex: 1;
  padding: 6px;
  border: 0;
  border-right: 1px solid #cccccc;
  background: #f5f5f5;
  color: #777;
  cursor: pointer;
}

.buttonRow button:last-child {
  border-right: 0;
}

.buttonRow button.active {
  background: white;
  color: #222;
  font-weight: bold;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 9px 11px 0;
  font-size: 12px;
}

.option input[type="checkbox"] {
  accent-color: #35c66c;
  width: 18px;
  height: 18px;
}

.option input[type="range"] {
  width: 120px;
  accent-color: #1689e8;
}

#legend {
  left: 10px;
  bottom: 10px;
  width: 198px;
  padding-bottom: 10px;
  font-size: 11px;
  color: #666;
}

#legend > div:not(.heading) {
  padding: 2px 11px;
}

#legend hr {
  border: 0;
  border-top: 1px solid #eeeeee;
  margin: 8px 0;
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 7px;
}

.ground { background: #777; }
.red { background: #d94f4f; }
.orange { background: #d5792e; }
.yellow { background: #b58a15; }
.green { background: #268552; }
.cyan { background: #167b8c; }
.blue { background: #3267b8; }
.purple { background: #7751b7; }

.typeMark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  position: relative;
}

.typeLight:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  background: #777;
}

.typeLight:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 12px;
  height: 2px;
  background: #777;
}

.typeJet:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 12px solid #777;
}

.typeHeavy:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #777;
}

.typeHeavy:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 12px;
  height: 3px;
  background: #777;
}

.typeHeli:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777;
}

.typeHeli:after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 2px;
  background: #777;
}

#count {
  right: 10px;
  bottom: 10px;
  padding: 9px 13px;
  text-align: right;
}

#count b {
  display: block;
  font-size: 22px;
}

#count span {
  font-size: 9px;
  color: #777;
}

#info {
  left: 50%;
  bottom: 10px;
  width: 320px;
  padding: 12px;
  transform: translateX(-50%);
  display: none;
}

#info button {
  float: right;
}

#infoText {
  margin-top: 8px;
  line-height: 1.5;
  font-size: 12px;
}

.aircraftIcon {
  background: transparent !important;
  border: 0 !important;
}

.aircraftMarker {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.aircraftSvg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.38));
}

.planeLabel {
  position: absolute;
  left: 24px;
  top: 6px;
  padding: 2px 5px;
  background: white;
  border: 1px solid #dddddd;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  font-size: 9px;
  white-space: nowrap;
}

.cloudCanvas {
  pointer-events: none;
}

.leaflet-top.leaflet-left {
  top: 50px;
}

.leaflet-control-zoom {
  margin-left: 10px !important;
}
