@font-face {
    font-family: 'EarlyGameBoy';
    src: url('fonts/Early GameBoy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0e17;
    
}

#main-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 5px; /* 원하는 간격 조정 */
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eeeeee;
}

#stateControls-container {
    padding: 10px;
    justify-content: center;
    margin: 10px 0 0 0;
}

#controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

#controls-container {
    padding: 0 150px 0 0;
    display: flex;
    justify-content: center;
}

.keys-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    margin: 30px;
    background: #0f0e17;
    border: 3px solid #eeeeee;
    border-radius: 8px;
}

.keys-group.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.keys-label {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'EarlyGameBoy', monospace;
}

.keys-set {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keys-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 4px 0;
}

.key {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s, filter 0.2s;
    image-rendering: pixelated;
}

.key.active {
    transform: scale(0.9);
    filter: brightness(0.7);
}

.key:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.cell {
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;  
    image-rendering: pixelated;
}