I can’t put this online because ASP.NET projects are compiled and the CSS files are not visible.
If you can look at the results in a browser, you can look at the generated CSS.
The best approach is to make a reduced test case, e.g., on codepen. Find the minimum amount of code that demonstrates your problem.
The code you posted does this.