@Hassaan @ebx Put all CSS rules in the same style elements.
style
Refer to this comment I made.
Nice! you got it working