To go into detail why Germany couldn't invade or even annoy the US mainland in WW2, they didn't have a credible navy and never had a strategic bomber fleet.
Hitler started WW2 5 years before the German navy was built-up, and most of their aviation was for close air support.
Even the English Channel ended up being too much.
In summary, both Germany and Japan declared war on a country they couldn't invade, the USA - how futile is that?