functions.php doesn’t load all custom theme assets
I believe your mistake is using main as handle keyword for both script and style, handle must be unique. You don’t have to use wp_register_script (and style) enqueue function does this automatically. You typically use wp_register_script(style) only if you are not sure if script/style will be needed later, if it is enqueued conditionally, but you … Read more