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

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
}

.map-wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
}

svg {
    width: 100%;
    /* border-radius: 8px;
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.08);
    background: white; */
}

.country {
    /* fill: #cfd8e3; */
    stroke: #fff;
    stroke-width: 0.5;
}

.country:hover {
    fill: #9fb0d6;
}

.graticule {
    fill: none;
    stroke: rgba(30, 40, 60, 0.06);
    stroke-width: 0.8;
}

.zoom-reset {
    position: absolute;
    right: 45%;
    top: 20%;
    background: #1f77b4;
    color: aliceblue;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(6, 7, 82, 0.4);
    cursor: pointer;
}

.process-book {
    position: absolute;
    left: 20px;
    top: 20px;
    background: #1f77b4;
    border-radius: 6px;
    border: none;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

a {
    color: aliceblue;
    text-decoration: none;
    font-weight: bold;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-family: system-ui, sans-serif;
    background: #ffffff;
    color: #222;
}

h2 {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 20px;
}

#chart {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chart svg {
    display: block;
    margin: 0 auto;
}

#yearLabel {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

#yearSlider {
    margin-top: 20px;
    width: 300px;
    appearance: none;
    background: transparent;
}

#yearSlider::-webkit-slider-runnable-track {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

#yearSlider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    margin-top: -5px;
    cursor: pointer;
}

#yearSlider::-moz-range-track {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

#yearSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

#legend {
    position: absolute;
    position: absolute;
    bottom: 50px;
    left: 1%;
    z-index: 10;
    bottom: 2rem;
    font-size: 12px;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: wrap;
    flex-wrap: wrap;
    gap: 6px;
    width: 6rem;
    border-radius: 1rem;
    background-color: rgb(255, 255, 255, 0.5);

}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 8rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

#yearControls {
    position: absolute;
    bottom: 50px;
    left: 30%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-charts-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
}

.map-wrap {
    flex: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
}

#chart-div {
    flex: 2;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}


.chart-row {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

.pie-chart-container,
.bar-chart-container,
.country-pie-chart-container,
.country-bar-chart-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
}

#countryTitle {
    justify-content: center;
}

header {
    position: absolute;
    top: 2%;
    width: 65%;
    justify-content: center;
    align-items: center;
    text-align: center;
    left: -5%;
    background-color: rgb(255, 255, 255, 0.5);
}

h1 {
    color: #1f77b4;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
}

h3 {
    color: #7e93a2;
    font-weight: 500;
}