#game-container {
    position: relative;
    width: calc(100vw - 50px);
    height: calc(100vh - 50px);
    background-color: #f0f0f0;
    overflow: hidden;
    border-width: 1px;
    font-family: monospace;
    font-size: 12px; 
    /* Text color blue */
    font-weight: bold;
    color: grey;
}

#player-box {
    position: absolute;
    width: 50px;
    height: 50px;
    /* background-color: blddue; */
    
    top: 0;
    left: 0;
    text-align: center;
    line-height: 50px;
}

.projectile {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: orangered;
    border-radius: 2px;
    z-index: 10;
}

/* ...existing code... */

.controls-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
}

.controls-overlay p {
    margin: 0;
    text-align: center;
}

/* Mobile Controls */
.mobile-controls {
    position: fixed;
    bottom: 20px;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 100;
}

/* Joystick Container */
.joystick-container {
    position: absolute;
    left: 30px;
    bottom: 30px;
    width: 120px;
    height: 120px;
    pointer-events: auto;
}

.joystick-base {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(0, 0, 0, 0.5);
    position: relative;
}

.joystick-knob {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

/* Shoot Button */
.shoot-button {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 100, 100, 0.8);
    border: 3px solid rgba(200, 50, 50, 0.8);
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
    touch-action: manipulation;
}

.shoot-button:active {
    background-color: rgba(255, 150, 150, 0.9);
    transform: scale(0.95);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
}

/* Show only on mobile */
@media (max-width: 767px) {
    .mobile-controls {
        display: block;
    }
}