body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

canvas {
    border: 1px solid #fff;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
}

#scoreBoard {
    margin-top: 10px;
    font-size: 20px;
    text-align: center;
    width: 100%;
}

.controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 100px; /* Adjust this value to control the gap between buttons */
}

.controls button {
    width: 30px;  /* Reduced width */
    height: 30px; /* Reduced height */
    font-size: 18px;
    background-color: #444;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Prevent highlight on mobile */
}

.controls button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translate(-50%, -50%);
}

#leftButton:before {
    border-width: 7.5px 10px 7.5px 0; /* Adjusted for smaller size */
    border-color: transparent #fff transparent transparent;
}

#rightButton:before {
    border-width: 7.5px 0 7.5px 10px; /* Adjusted for smaller size */
    border-color: transparent transparent transparent #fff;
}

.controls button:active {
    background-color: #666;
    outline: none;
}
