html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    cursor: url('Images/cursor_normal.png') 0 0, auto;
}

html:active, body:active {
    cursor: url('Images/cursor_click.png') 0 0, auto;
}

canvas {
    width: 100%;
    height: 100%;
    cursor: url('Images/cursor_normal.png') 0 0, auto;
}

canvas:active {
    cursor: url('Images/cursor_click.png') 0 0, auto;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#zone-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #444;
    pointer-events: all;
    min-width: 400px;
}

#zone-selector.hidden {
    display: none;
}

#zone-selector h2 {
    margin: 0 0 20px 0;
    color: #fff;
    text-align: center;
}

#zone-list {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
}

#load-zone {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#load-zone:hover {
    background: #45a049;
}

#info-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    pointer-events: none;
    font-family: 'Courier New', monospace;
}

#info-panel div {
    margin-bottom: 5px;
}

/* Mobile optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

canvas {
    touch-action: none; /* Prevent default touch behaviors (scrolling, zooming) */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #zone-selector {
        min-width: 90%;
        max-width: 400px;
        padding: 20px;
        font-size: 16px;
    }
    
    #zone-list {
        padding: 12px;
        font-size: 16px; /* Larger for touch */
    }
    
    #load-zone {
        padding: 15px;
        font-size: 18px; /* Larger for touch */
    }
    
    #info-panel {
        font-size: 12px;
        padding: 10px;
        top: 5px;
        left: 5px;
    }
    
    #info-panel div {
        margin-bottom: 3px;
    }
}