body {
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #333;
    margin: 10px 0;
    font-size: 24px;
}

#map {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 0;
}

.province {
    stroke: #333;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.province:hover {
    stroke: #000;
    stroke-width: 2;
    opacity: 0.8;
}

.tooltip {
    position: absolute;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.controls {
    text-align: center;
    margin: 5px 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 5px;
}

.controls button {
    margin: 5px;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.controls button:hover {
    background: #2c5aa0;
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    z-index: 1000;
}

.legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 12px;
}

.legend-color {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid #333;
}

.coordinates-panel {
    position: absolute;
    bottom: 20px;
    right: 150px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    border: 1px solid #ddd;
}

.coordinates-panel h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.coord-item {
    margin: 2px 0;
    color: #666;
}

.time-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    z-index: 1000;
    min-width: 300px;
}

.time-controls select,
.time-controls input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.time-controls label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.year-slider {
    width: 100%;
    margin: 10px 0;
}

.play-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.play-controls button {
    flex: 1;
    padding: 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.play-controls button:hover {
    background: #218838;
}

.play-controls button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.year-display {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.color-scheme-selector {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.province-label {
    font-size: 11px;
    font-weight: bold;
    text-anchor: middle;
    pointer-events: none;
    fill: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.8), 1px -1px 2px rgba(255, 255, 255, 0.8), -1px 1px 2px rgba(255, 255, 255, 0.8);
}

.trend-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    z-index: 1000;
    max-width: 200px;
    font-size: 11px;
}

.github-fork-ribbon.right-top:before {
    background-color: #090;
}