Flexbox is a way to distribute elements within a container evenly or by percentage so that the child elements make up…