Address automatically generated ids in css [closed]

Use a plugin to add custom css classes. This plugin does just that and a little more: https://wordpress.org/plugins/widget-css-classes/

For example, add the class .recent-posts to the recent posts widgets. Then you should be able to style them just like any other css class.