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

body {
    font-family: 'comicsansms', sans-serif;
    background-color: #4db15a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

/* Controls styling */
.controls {
    margin-bottom: 1.5rem;
}

.size-control {
    margin-bottom: 1rem;
}

#gridSize {
    width: 200px;
    margin: 10px 0;
}

.color-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button.active {
    background-color: #2196F3;
}

/* Grid styling */
.grid {
    width: 500px;
    height: 500px;
    display: grid;
    border: 1px solid #ccc;
    background-color: white;
}

/* Grid squares */
.grid-square {
    border: 1px solid #eee;
    transition: background-color 0.2s;
}

.grid-square.hovered {
    background-color: #333;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .grid {
        width: 300px;
        height: 300px;
    }
    
    .color-controls {
        gap: 5px;
    }
    
    button {
        padding: 6px 12px;
        font-size: 14px;
    }
}
