Where is g-d when life gets hard?
To the Questioner,
It is exactly at those times that a person can notice that G-d is here.
The idea of the difficult times is exactly that: it is a time when a person can reconsider and weigh what acts he can improve and accept upon himself to become a better Torah observer in some way.
Source: See Bereishit Rabbah 70:1, that during difficult times a person should accept something [small] upon himself (to better himself), and then certainly Hashem has the ability to turn around the situation entirely to become positive.