problem loading stylesheets to wp_head dynamically

While your code is a bit messy, I think the one thing that is breaking it is the wp_enqueue_style you’ve got there. The second parameter “10” just shouldn’t be there.