body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

#chart-container {
    width: 100%;
    overflow-x: auto;
}

#chart {
    width: 100%;
    min-width: 800px; /* Ensure a minimum width for smaller screens */
}

#controls {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.control-item {
    flex: 1 1 calc(25% - 10px);
    min-width: 150px;
}

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

span {
    font-size: 0.9em;
    color: #7f8c8d;
}

.node text {
    font-size: 10px;
}

.link {
    fill: none;
}
