To add some CSS changes to the Divi theme, you can go to the WP-Admin / Divi / Theme Options / General Settings and search for the Custom CSS option at the very bottom:
You can find the same option under WP-Admin / Themes / Theme Customizer / Additional CSS.
Don't forget to click the Save button after you added the code.