/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
 #map {
    height: 100%;
  }
  
  /* 
   * Optional: Makes the sample page fill the window. 
   */
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .lang_table * {
    border: 1px solid black;
  }

  #info_box {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
  }
  
  #info_box h3 {
    margin-top: 0;
  }
  
  #info_box img {
    vertical-align: middle;
  }

.settings-panel {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.settings-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.settings-btn {
    transition: transform 0.3s ease, box-shadow 0.2s ease;
}
.settings-btn.open {
    transform: rotate(90deg);
}
.settings-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.legend-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e8e8e8;
}

.legend-title {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-label {
  font-size: 0.75rem;
}