* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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


.visualization-container {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

#chart {
    width: 100%;
    height: 600px;
    overflow: visible;
}

.bar {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.bar:hover {
    opacity: 0.8;
}

.axis text {
    font-size: 12px;
}

.axis-label {
    font-size: 14px;
    font-weight: bold;
}

.x-axis path,
.y-axis path,
.x-axis line,
.y-axis line {
    stroke: #ccc;
}


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

.tooltip-category {
    font-weight: bold;
    margin-bottom: 5px;
}

.tooltip-value {
    margin-bottom: 5px;
}


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

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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


@media (max-width: 768px) {
    #chart {
        height: 400px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 200px;
    }
}
