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

.container {
    background-color: #2d3748;
    padding: 20px;
    border-radius: 8px;
}

.lcd-display {
    display: grid;
    grid-template-columns: repeat(16, auto);
    gap: 4px;
    background-color: #1a202c;
    padding: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    margin-bottom: 20px;
}

.character {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1.4px;
}

.pixel {
    width: 5px;
    height: 5px;
    background-color: #396b3bd8;
}

.pixel.on,
.cursor {
    background-color: #d03131;
}

input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 8px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

button:hover {
    background-color: #3182ce;
}

.cursor-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.cursor-controls button {
    font-size: 18px;
    padding: 5px;
}

#up-button {
    grid-column: 2;
}

#left-button {
    grid-column: 1;
    grid-row: 2;
}

#right-button {
    grid-column: 3;
    grid-row: 2;
}

#down-button {
    grid-column: 2;
    grid-row: 3;
}

.cursor {
    grid-row: 8;
    grid-column: 1 / span 5;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
