body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#map-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

svg {
    width: 100%;
    height: 100%;
    background-color: #a4d1e3;
}

.country {
    fill: #4CAF50;
    stroke: #fff;
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
    cursor: move;
}

.country:hover {
    fill: #2E7D32;
}

.custom-country {
    fill: #FF9800;
    stroke: #fff;
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
    cursor: move;
}

.custom-country:hover {
    fill: #F57C00;
}

.supercontinent {
    fill: #9C27B0;
    stroke: #fff;
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.projection-selector {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.projection-selector label {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.projection-selector select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 12px;
}

button {
    margin: 2px;
    padding: 8px 10px;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}

button:hover {
    background-color: #0b7dda;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 200;
}