body {
    background-color: #000;
    color: #fff;
    font-family: sans-serif;
    text-align: center;
    /* Prevent scrolling on mobile when tapping controls */
    touch-action: manipulation; 
}

canvas {
    background-color: #222;
    border: 2px solid #fff;
    /* NEW: This makes the game fit on small screens */
    width: 100%;
    max-width: 600px;
    height: auto;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin: 10px;
}

/* NEW: Styles for the mobile buttons */
#mobile-controls {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 20px;
}

#mobile-controls button {
    font-size: 30px; /* Big icons */
    padding: 20px;
    border-radius: 15px; /* Rounded corners */
    background-color: #333;
    color: white;
    border: 2px solid #555;
    /* Prevents selecting text when tapping fast */
    user-select: none; 
}

#mobile-controls button:active {
    background-color: #666; /* Light up when pressed */
}
