body {
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    padding-top: 20px;
    height: 100vh;
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 10px;
}

.sound-controls button {
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

.sound-controls button.muted::after {
    content: '/';
    position: absolute;
    color: red;
    font-size: 40px;
    transform: translate(-19px, -5px);
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 800 / 600;
    border: 2px solid #333;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#start-button {
    background-color: #e07a5f;
    color: white;
    font-size: 2em;
    padding: 20px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#start-button:hover {
    background-color: #d95d39;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#joystick-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#joystick-stick {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.1s;
}

/* Hide joystick on larger screens */
@media (min-width: 800px) {
    #joystick-container {
        display: none;
    }
}
