.home-container #data-plot{
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.nav-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 40px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.card {
    flex: 0 0 calc(33.333% - 3rem);
    aspect-ratio: 2/1;
    min-width: 150px;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card.active {
    background-color: #dbeaff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  }

.card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 0;
    color: #555;
}

.hex-container {
  position: relative;
  width: 700px;
  height: 700px;
  margin: auto;
}

.hex {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: lightgray;
  clip-path: polygon(
    50% 0%, 93% 25%, 93% 75%,
    50% 100%, 7% 75%, 7% 25%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: black;
  font-weight: bold;
  border: 1px solid #999;
  box-sizing: border-box;
}

.hex .label {
  font-size: 10px;
  line-height: 1;
}

.hex .value {
  font-size: 0.75em;
  color: #222;
}

#plot-container {
  display: block;
  max-width: 1400px; /* Set a max-width for centering */
  overflow-x: auto;
  margin: 2rem auto 0; /* Center the container */
}

#data-plot {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

#legend span {
    font-size: 1.2vw;
}