body {
    background-color: #f0f0f0; /* Color de fondo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinear al inicio para el menú fijo */
    height: 100vh;
    margin: 0;
}

#hr{
    width: 85%;
}

.menu {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #444;
    padding: 10px;
    z-index: 1000;
    color: #fff;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

.menu button, .menu input {
    margin-right: 10px;
    margin-left: 10px;
    background-color: #444;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

.menu input[type="text"] {
    flex-grow: 1;
    max-width: 200px;
}

.menu button:hover, .menu input:hover {
    background-color: #555;
}

.container {
    display: grid;
    gap: 1px;
    border: 1px solid #ccc;
    margin: 20px auto;
    width: fit-content;
    background-color: #ddd;
}

.pixel {
    box-sizing: border-box;
    border: 1px solid #ccc;
    cursor: pointer;
}

button.active {
    background-color: #666;
    color: #fff;
}



.controls button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.controls input[type="color"] {
    padding: 8px;
    border: none;
    cursor: pointer;
}

.controls {
    margin: 20px;
    display: flex;
    align-items: center;
}

.color-palette {
    display: flex;
    margin-left: 10px;
}

.color-button {
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

.color-button:focus, .color-button.active {
    outline: 2px solid #000;
}

.eyedropper-active {
    cursor: crosshair;
}