html, body {
  height: 100%;
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 14px;
}

#control_panel {
  z-index: 1000;
  position: relative;
  width: 100%;
  background-color: white;
  color: black;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

#search_line {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#form_line1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#preset {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 14px;
  width: 200px;
}

#go_button {
  width: 50px;
}

#search_line input[type="checkbox"] {
  margin-right: 5px;
}

#config_info {
  color: #666;
  font-size: 12px;
}

#search_line label {
  color: #666;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}

#search_line label:hover {
  color: #333;
}

/* Footer styles */
#footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #34495e;
  margin-top: 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#footer a {
  color: #3498db;
  text-decoration: none;
}

#footer a:hover {
  color: #5dade2;
  text-decoration: underline;
}

#footer p {
  margin: 0;
  line-height: 1.4;
}

.thank-you {
  color: #f39c12;
  font-weight: 500;
  font-style: italic;
}

#stats_line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

#map {
  height: 60vh;
  width: calc(100% - 20px);
  margin: 10px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#data_view {
  width: 100%;
  padding: 20px;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

#spot_info {
  z-index: 1000;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: none;
}

#aux_info {
  position: absolute;
  bottom: 10px;
  left: 100px; /* Position to the right of the scale control, adjusting for typical scale width */
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1000;
  display: none;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

#form_line1 {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0px;
  align-items: center;
  flex-wrap: wrap;
}

#synopsis {
  color: #333;
}

#update_countdown {
  color: #666;
}

#unit_switch_link {
  color: #0066cc;
  text-decoration: none;
}

#unit_switch_link:hover {
  text-decoration: underline;
}

#show_data_button, #close_data_button {
  display: none; /* These buttons are no longer needed */
}



table.data_table {
  margin: 0px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: none;
  overflow-y: auto;
}

.data_table tr {
  background-color: white;
}

.data_table td {
  padding: 3px 5px;
  text-align: right;
  color: #333333;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}

.data_table th {
  padding: 5px;
  position: sticky;
  top: 0;
  text-align: center;
  background-color: #aaa;
  color: white;
  white-space: pre;
  border-bottom: 1px solid #555;
  border-right: 1px solid #555;
  border-top: 1px solid #555;
}

.data_table th:first-child {
  border-left: 1px solid #555;
}

.pretty_button {
   margin: 20px 10px 20px 0px;
   padding: 5px 10px;
   font-size: 14px;
   cursor: pointer;
   background-color: #7777cc;
   color: white;
   border: none;
   border-radius: 5px;
   transition: background-color 0.3s ease;
}

.pretty_button:hover {
  background-color: #5555aa;
}

.uplot {
  display: inline-block;
  background-color: white;
  border: 1px solid #aaa;
  margin: 10px 10px 10px 0px;
  padding: 0px 10px;
  touch-action: auto;
  vertical-align: top;
}

#data_view_wrapper {
  padding: 20px;
  display: block;
}

#data_view .notice {
  background-color: #ffffdd;
  border: 1px solid #bbb;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.notice {
  background-color: #ffffdd;
  border: 1px solid #bbb;
  padding: 4px;
  border-radius: 4px;
  display: table;
  clear: both;
}

#go_button {
  background-color: #7777cc;
  color: white;
  border: 1px solid #fff;
  border-radius: 3px;
}

#go_button:disabled {
  background-color: #888;
  color: #ddd;
  cursor: not-allowed;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.leaflet-tooltip {
  font-size: 13px;
}
