How to changes the color for the node based on Jqtree treeview level

How to changes the color for the node based on Jqtree treeview level

I have created 3 level of jqtree treeview.

A
   -A1
        -A11
   -A2
        -A21
   -A3
        -A31

I Want to differentiate the node based on level,A should be one color and A1 should be another color and also A11 should be separate color.

I have tried in css

.jqtree-tree .jqtree-title.jqtree-title-folder {
color:green
}
and also 

ul.jqtree-tree li.jqtree-folder {
Color:Red;
}

but it show Level 0 and Level 1 node displayed as green color and level 2  node displayed as  red.but i want different color for  level 0 and level1