added an opacity variable of the navbar