Unhappiness is an inward, not an outward, thing. It is as independent of circumstances as is happiness. Consider the truly happy people you know. I think it is unlikely that you will find that circumstances have made them happy. They have made themselves happy in spite of circumstances.