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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    color: white;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: rgba(16, 16, 54, 0.8);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #00ffff;
}

header h1 {
    font-size: 2.5em;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 5px;
}

header p {
    color: #cccccc;
    font-size: 1.1em;
}

.controls {
    background: rgba(16, 16, 54, 0.9);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
}

.control-group {
    display: flex;
    align-items: center;
    margin: 5px;
}

.control-group label {
    margin-right: 10px;
    font-weight: bold;
    color: #00ffff;
}

.control-group input[type="range"] {
    width: 100px;
    margin-right: 10px;
}

.control-group span {
    color: #ffff00;
    font-weight: bold;
    min-width: 30px;
}

#zoomValue {
    color: #00ffff;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

#zoomInBtn, #zoomOutBtn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

button {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #0080ff, #00ffff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

#autoPauseBtn {
    background: linear-gradient(45deg, #ff4444, #aa2222);
    color: white;
    font-weight: bold;
}

#modeToggleBtn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: white;
    font-weight: bold;
}

.info {
    color: #cccccc;
    font-size: 0.9em;
}

.info p {
    margin: 2px 0;
}

#gameCanvas {
    flex: 1;
    background: radial-gradient(circle at center, #001122, #000000);
    cursor: crosshair;
    border: 2px solid #00ffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        padding: 10px;
    }
    
    .control-group {
        margin: 3px 0;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Custom scrollbar for range inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #333;
    outline: none;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ffff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ffff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px #00ffff;
}
