body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    font-size: 24px;
    margin: 20px 0;
}

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

label {
    font-size: 20px;
}

select, button {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button {
    background-color: #4e79a7;
    color: white;
    border: none;
}

button:hover {
    background-color: #f28e2c;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

select:hover {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.chart-container {
    width: 90%;
    margin: 0 auto;
    overflow-x: auto;
}

svg {
    font-family: 'Arial', sans-serif;
}

.tooltip {
    position: absolute;
    background-color: #ffffff;
    font-size: 12px;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 網格線樣式 */
.x-grid .tick line {
    stroke: #ddd;
}


/* 軸文字大小調整 */
.axis text {
    font-size: 14px;
}

/* 軸線條樣式微調 */
.axis path, .axis line {
    stroke: #888;
    stroke-width: 1px;
    shape-rendering: crispEdges;
}
