All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
What you did is not Kufr (disbelief), and in principle, a Muslim remains a Muslim and does not go out of the fold of Islam unless he commits an act of Kufr about which there is no doubt, and not based on something probable or doubtful.
It appears that this question stems from Waswaas (whispers), so we advise you to repel them, to not be preoccupied by them, and not ask about them.
Allah knows best.