Hey Nabil, whilst your solution looked great, I however noticed that you used px and now your solution isn't fully responsive on some mobiles changing you width units to % percentages would go a long way
example you could do
.main-container {
width: 60%;
}
@NabilWasir
Posted
@Errorman2003 Thanks for your feedback. But I have tested the website in various screen sizes from small phones to bigger ones and even for tablets, it is working perfectly in old and new phones.