body {
    margin: 0;
    overflow: hidden; /* Hide scrollbars */
    background-color: #111; /* Dark background for a cinematic feel */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif; /* Resetting font for now */
    color: white;
}

canvas {
    display: block;
    background-color: #000; /* Canvas background */
}

#scoreDisplay {
    position: absolute;
    top: 70px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    z-index: 100; /* Ensure it's above the canvas */
}

/* Button Styles */
#controlsContainer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    align-items: center;
}

#controlsContainer button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#spawn10 {
    background-color: #4CAF50; /* Green */
}

#spawn100 {
    background-color: #2196F3; /* Blue */
}

#spawn1000 {
    background-color: #F44336; /* Red */
}

#dumpBalls {
    background-color: #FF9800; /* Orange */
}

#controlsContainer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

#controlsContainer button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Slider styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 12px;
    margin-left: 5px;
}

.slider-container label {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

#flowRateSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

#flowRateSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #9C27B0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#flowRateSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #9C27B0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#flowRateSlider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}