How to style content going onto the webpage

How do I style the py-script code being outputted. When i link a css doc, and add a class in the pyscript tag, it just makes everything inside the tag regular html text.

from ktsh.tanaka.2020 to ameshedrickjunior

Detailed information can be found on medium.com and StackOverflow, so please provide the reference URL.

StackOverflow:

medium: