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

#sand-canvas {
    display: block;
}

/* --- NEW: Main Menu Container Styling --- */
#menu-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100; /* Ensure it's on top of the canvas */
}

/* --- NEW: Burger Icon Styling --- */
#burger-icon {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    cursor: pointer;
}

#burger-icon span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}


/* --- UPDATED: Controls Container Styling --- */
.controls-container {
    /* It is now hidden by default using max-height */
    max-height: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 10px; /* No top/bottom padding when collapsed */
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;

    /* Smooth transition for the expand/collapse animation */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

/* --- NEW: The Hover Effect --- */
/* When you hover over the whole menu area, the controls container expands */
#menu-container:hover .controls-container {
    max-height: 500px; /* Set to a height large enough for all content */
    padding: 10px; /* Add padding back when expanded */
}


.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

button, select, input {
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #333;
    color: white;
}

button {
    cursor: pointer;
}

/* --- These styles for the slider handle remain unchanged --- */
#wind-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2a6496;
    cursor: pointer;
    border: 1px solid #666;
    transition: background 0.2s ease-in-out;
}

#wind-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2a6496;
    cursor: pointer;
    border: 1px solid #666;
    transition: background 0.2s ease-in-out;
}

#wind-slider.is-off::-webkit-slider-thumb {
    background: #999;
}

#wind-slider.is-off::-moz-range-thumb {
    background: #999;
}