body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
}

#overworldCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    image-rendering: pixelated; /* Essential for crisp tiles */
}

#overworldCanvas:active {
    cursor: grabbing;
}

.ui-group {
    position: absolute;
    z-index: 10;
}

#dropdown-container {
    top: 20px;
    right: 20px;
}

#zoom-container {
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#cluster-select {
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    max-width: 250px;
}

#cluster-select:hover {
    background: rgba(40, 40, 40, 0.9);
}

.btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn:hover {
    background: rgba(40, 40, 40, 0.9);
}

#tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #555;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    transform: translate(15px, 15px); /* Offset from cursor */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

#tooltip.hidden {
    display: none;
}

#tooltip-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

#tooltip-id {
    font-size: 12px;
    color: #aaa;
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.5s;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
