/* Custom styles for the game */
#player {
    background-image: url('player.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.enemy {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: red;
    border-radius: 50%;
}

.bullet {
    position: absolute;
    width: 6px;
    height: 15px;
    background-color: #00ff00; /* Bright green for player bullets */
    border-radius: 3px;
    z-index: 10;
}

.enemy-bullet {
    position: absolute;
    width: 6px;
    height: 15px;
    background-color: #ff4444; /* Red for enemy bullets */
    border-radius: 3px;
    z-index: 10;
}

.explosion {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('explosion.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Mobile Controls */
#mobile-controls {
    display: none; /* Hidden by default, shown for mobile */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hide all mobile controls since we're using touch drag */
#mobile-controls {
    display: none !important;
}

/* Add a visual cue for the player on mobile only */
@media (max-width: 768px) {
    #player::after {
        content: 'DRAG TO MOVE';
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 12px;
        white-space: nowrap;
        text-shadow: 0 0 5px rgba(0,0,0,0.8);
    }
    
    /* Make score more visible on mobile */
    #score {
        font-size: 24px !important;
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        margin: 10px;
        z-index: 100;
    }
}

/* Prevent text selection on mobile */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #player {
        width: 48px;
        height: 48px;
    }
    
    .enemy {
        width: 36px;
        height: 36px;
    }
    
    #score {
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
}
