There are two ways where you can customize the CSS. One is:
- Using the WordPress Customizer:
Go to Dashboard -> Appearance -> Customize -> Additional CSS. Paste your CSS code inside it.
- Creating a Child Theme:
You should create a child theme for your parent theme and can apply the CSS in style.css file.