Added height: 100%; to the main element