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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.share-info {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.share-code {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
    margin: 5px 0;
}

.map-container {
    display: flex;
    justify-content: center;
    position: relative;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
}

#us-map {
    max-width: 100%;
    height: auto;
    cursor: grab;
}

#us-map:active {
    cursor: grabbing;
}

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

.state:hover {
    fill: #c0c0c0;
    stroke-width: 2;
}

.state.clicked {
    fill: #4CAF50;
    stroke: #2e7d32;
    stroke-width: 2;
}

.state-label {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.stats {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: #555;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    #us-map {
        width: 100%;
    }
    
    .state-label {
        font-size: 8px;
    }
}