body {
  max-width: 100%;
}

#app {
  height: 100vh;
}

.demo-header h1 {
  margin: 0.5rem;
}

h2 {
  margin-top: 0rem;
  margin-bottom: 0.5rem;
}

button {
  margin: 0.05rem;
}

pre.clojure {
  padding: 0.1rem;
  margin-bottom: 0.5rem;
}

.popup {
  color: #444;
}

.waiting {
  color: yellow;
  font-style: italic;
  margin-left: 0.5rem;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

.maplibregl-popup-close-button {
  border: none;
  color: grey;
  padding: 0.5rem;
  border-radius: 0 3px 0 0;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}

.half-interactive-map {
  width: 48%;
  display: inline-block;
  vertical-align: top;
  height: 360px;
  max-width: 880px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.cartoj-interactive-map {
  width: 100%;
  height: 360px;
  max-width: 880px;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.demo-main {
  width: 100%;
  margin-right: 1.5rem;
}

.demo-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.demo-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0.1rem 0;
  overflow-y: auto;
}

.nav-item {
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 0.33rem 1.15rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  color: var(--pico-color);
  transition:
    background 0.15s,
    border-color 0.15s;
  width: 100%;
  display: block;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-item.active {
  font-weight: bold;
  border-left: 3px solid grey;
}

.control-panel {
  background: var(--pico-muted-color);
  margin-bottom: 1rem;
  max-width: 400px;
}

.control-panel a {
  display: block;
  padding: 0.15rem 0;
  color: var(--pico-primary);
  text-decoration: none;
}

.control-panel a:hover {
  text-decoration: underline;
}

.cartoj-interactive-map .maplibregl-canvas {
  cursor: pointer;
}
