/* custom styling for text */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  padding: 1em;
}

/* navbar styling */
.navbar {
  display: inline-block;
  list-style-type: none;
  padding: 0;
}
li.navtab {
  font-family: "Tahoma";
  float: left;
  font-weight: bold;
}
li.navtab a {
  background-color: #eee;
  color: #333;
  font-size: 1.2rem;
  padding: 12px 24px;
  text-decoration: none;
}
li.navtab :hover { background-color: #ddd; }
li.navtab.selected a {
  background-color: #11f;
  color: white;
}
li.navtab.selected :hover { background-color: #35f; }

h1 {
  font-size: 3em;
  margin: 0.25em 0;
}

h3 {
  font-size: 2em;
  margin: 0.25em 0;
}

p {
  font-size: 1em;
}

/* custom styling for tooltip */
#tooltip {
  display: block;
  height: max-content;
}

.tooltip {
  position: absolute;
  text-align: center;
  width: auto;
  height: auto;
  padding: 5px;
  font: 10px sans-serif;
  background: rgb(76, 84, 93);
  border: 1px;
  border-radius: 10px;
  pointer-events: none;
}

path.state {
  stroke: black;
}

/* Tab styles */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab button {
  background-color: inherit;
  float: right;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

/* Tab content styles */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

#Visualizations {
  display: none;
}

/* Map styles */
#map {
  width: 100%;
  height: 90vh; /* Adjust this value as needed */
  margin: 0 auto; /* Center the map if needed */
}



/* Style for the table */
table {
  border-collapse: collapse;
  width: 50%;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

/* Style for table headers */
th {
  background-color: #f2f2f2;
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

/* Style for table data cells */
td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

/* Additional styles for even rows */
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Style for hover effect */
tr:hover {
  background-color: #e0e0e0;
}

/* Style for the table header */
thead {
  font-weight: bold;
}

/* sorting table */
table.sortable th {
  cursor: pointer;
}

table.sortable th.ascending::after {
  content: " ▲";
}

table.sortable th.descending::after {
  content: " ▼";
}

/* styles.css */
.data-view {
  margin: 5px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.data-view:hover {
  background-color: #ddd;
}

#sort-toggle {
  display: block;  /* Ensure it doesn't overlap other elements */
  margin-top: 20px;  /* Adjust spacing from other elements */
  padding: 10px 20px;
  background-color: #73787a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#sort-toggle:hover {
  background-color: #bbdbea;
}
