[off-topic]
When you post code in the forum, you need to format it. To do so you can either select all the code and click the </> button, or type 3 backticks ``` on a separate line both before and after the code block.
CSS in email, especially outlook, is a nightmare to get consistent and you need to go back to 1999 practices and use tables and td elements and attributes to create the spacing. Padding doesn’t work consistently in some email clients and all styling on divs is ignored in some versions of outlook.
You would be better downloading a free template and adjusting to your needs rather than writing from scratch unless you are an accomplished email developer.
Use Foundation for Emails 2https://get.foundation/emails.html or MJMLhttps://mjml.io/.
These are modern frameworks for creating responsive email templates with good documentation.
If you have doubts about the correct usage of the HTML elements and CSS properties while writing your personal code use Can I emailhttps://www.caniemail.com/ service for checking the compatibility of the elements with different email clients.