@Hassiai
Posted
The body has a wrong background color.
To center the main on the page using flexbox, replace the height in the body with min-height: 100vh.
For a responsive content give the main a fixed max-width value that is total width of all the sections max-width:600px
There is no need to give the section a width. Replace the height in .card with a padding value for all the sides, this will prevent the content from overflowing on smaller screen.
There is no need to give the body a width.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful