Preheat the oven to 350°F (175°C) and line a baking sheet with parchment paper.
Whisk together flour, baking powder, and salt in a medium bowl and set aside.
In a large bowl, beat softened butter and granulated sugar until light and fluffy.
Add eggs one at a time, mixing well after each addition, then stir in vanilla and almond extracts if using.
Gradually combine dry ingredients into wet mixture, stirring until just combined; dough will be thick and slightly sticky.
Divide dough into portions based on desired colors, add gel food coloring, and mix fully.
Cover dough and refrigerate for at least 30 minutes to firm up.
Scoop tablespoon-sized portions, roll into balls, and coat generously in powdered sugar.
Place coated dough balls 2 inches apart on the prepared baking sheet.
Bake for 10-12 minutes until cookies puff and crack; centers should remain slightly soft with set edges.
Allow cookies to rest a few minutes on the baking sheet, then transfer to a wire rack to cool completely.