Hello,
Where did you add the code?
Please note that custom css code should be added in style.css file of child theme or in custom.css file of the parent theme. To create “custom.css” you can rename the file “default.custom.css” which is located in theme directory.
Regards