img {
    image-rendering: pixelated;
    filter: blur(0);
    -webkit-filter: blur(0);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
}

h1 {
    margin-bottom: 25px;
    color: #333;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.pixel-art {
    margin: 30px auto;
}

label {
    font-size: 14px;
    color: #555;
}

input[type="text"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

input[type="number"] {
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 50px;
}

.pixel-button {
    border-radius: 0px;
    background: black;
    width: 5px;
    height: 5px;
}

button {
    padding: 12px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:focus {
    border: 4px solid red;
}

button:hover {
    background: #004ecc;
}

.output img {
    margin-top: 20px;
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 10px;
}

.button {
    padding: 12px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.button:hover {
    background: #004ecc;
}

.color{
    margin-top:10px;
    height:20px;
    width:20px;
    font-size:10px;
    text-align: center;
    border:2px solid black

}

.whitebutton{
    border-color: #004ecc;
    background-color: white;
}
.whitebutton:hover{
    background-color: white;
}
.blackbutton{
    background-color: black;
}
.blackbutton:hover{
    background-color: black;
}
.colortext{
    margin-top:25px;
}
.colorContainer{
    display: flex;
    width:100%;
    gap:10px;
    align-items:center;
    justify-content: center;
}
.reset{
    margin-top:10px;
    height:30px;
    text-align: center;
    justify-content: center;
    padding-top:0;
    padding-bottom:0;
}