body {
  font-family: "new-science", sans-serif;
  font-weight: 400;
  font-style: normal;  margin: 0;
  padding: 20px;
  background-color: #f5f7f9;
  color: #333;
}


.home-icon {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: rem;
  height: 2rem;
  font-size: 2rem;
}

.home-icon a{
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  margin-bottom: 5px;
}

.description {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.sankey-container {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node rect {
  cursor: pointer;
  fill-opacity: 0.9;
}

.node text {
  pointer-events: none;
  font-size: 0.7rem;
  fill: #333;
  line-height: 1.5rem;
}

text {
    dominant-baseline: middle;
}

.link {
  fill: none;
  stroke-opacity: 0.4;
}

.link:hover {
  stroke-opacity: 0.7;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 3px;
}

.controls {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

button {
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #2980b9;
}

.tooltip {
  position: absolute;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  pointer-events: none;
  font-size: 13px;
  z-index: 10;
}
