body {
    margin: 0;
    background-color: #111;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    text-align: center;
    border: 2px solid #fff;
    padding: 20px;
    background-color: #000;
}

canvas {
    background-color: #111;
    display: block;
    margin: 0 auto;
    border: 1px solid #444;
}
.controls-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.controls-pad button {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    user-select: none; /* Prevents text selection on rapid clicks */
}

.controls-pad button:active {
    background-color: #555;
}

/* Position the rotate button in the center top row */
#btn-rotate {
    grid-column: 2;
}

/* Position the down button directly under rotate */
#btn-down {
    grid-column: 2;
    grid-row: 2;
}

#btn-left {
    grid-column: 1;
    grid-row: 2;
}

#btn-right {
    grid-column: 3;
    grid-row: 2;
}    
