White Plastazote is a commonly used foam for working with light (generally referred to as "LED foam").
Note: black Plastazote on the other hand will not let the light pass through.
Shape at low temperatures (it melts easily) and for the best results glue with clear adhesive.
The edges of the foam may have manufacturing defects. The foam will arrive slightly larger than the stated size.