body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    display: flex;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#gameCanvas {
    border: 2px solid #333;
    background-color: #e0e0e0;
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 150px;
}

.material-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-btn {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ccc;
    color: black;
    font-weight: bold;
}

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

#sandBtn.active {
    background-color: #ffd700;
    color: black;
}

#soilBtn.active {
    background-color: #4b2e16;
    color: white;
}

#waterBtn.active {
    background-color: #1e90ff;
    color: white;
}

#lavaBtn.active {
    background-color: #ff0000;
    color: white;
}

#wallBtn.active {
    background-color: #808080;
    color: white;
}

#acidBtn.active {
    background-color: #32cd32;
    color: white;
}

#eraserBtn.active {
    background-color: #800080;
    color: white;
}

.material-btn:hover:not(.active) {
    background-color: #999;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}

button:hover {
    background-color: #0b7dda;
}