Tax affect consumer surplus, producer surplus, and total surplus

How does a tax affect consumer surplus, producer surplus, and total surplus?