Why are you setting the opacity twice? Also the best way to get opacity is using the

background-color:  rgba( r, b, g, a ) 

method in css.