how to include main navigation twice with different display i started working with drupal 8 few days ago. 
I am working on theming with Twig.
I included the main Navigation on the header, after the activation of twig debug mode , i followed the suggestion of twig and i created menu-main.html.twig contains the html respresentation of the links and i had this display:

My Problem is :
I included the Main navigation on the footer too but it appears the same way as the header but i want to change the display to be like this:

What should i do ?
Don't rely on a hardcoded class in your overridden template to style the menu, but instead rely on a container to style it (for example the containing block or region).