And what condition needed to create solid matter?
You realize, don't you, that solid matter didn't form in the early universe until quite late? The temperature didn't decrease below 10,000K for about 300,000 years after the beginning. And it was another few million years before the first stars began forming the heavier elements.
Solids require a high enough density and a low enough temperature so that the atoms (or molecules) involved for strong bonds that keep them in place. The exact conditions differ for different materials. So, for example, water becomes a solid when the temperature gets low enough. We call that solid ice. It becomes a gas if the temperature goes high enough. We call that gas stream. But it is the same basic material in three different states. If you have even higher temperatures, the molecules of water break up into oxygen and hydrogen atoms. Even higher and you get a plasma. Even higher and the atoms start to break apart. The same process happens in reverse under cooling.