Help in css-grid

hi guys, I am practicing some concept in grid. this is my code i want to make it responsive, but it is not getting responsive. I want to learn what is my mistake in this. why it is not getting responsive and what should i do?
also I am getting a horizontal scrollbar in Mozilla. why it is coming?