You did not post a detailed schematic showing parts values. The schematic should also show the input which we guess is high voltage AC electricity? We need to know the RMS voltage and its frequency.
Your photo shows a simple circuit with only one red LED but another photo shows 18 clear LEDs and we do not know if they are connected to the same circuit or how they are connected. There are many wires shown on the photos but no labels describing what they are for.
Here is a sketch of a schematic similar to yours. Copy it and make changes to it using Microsoft Paint program so it matches your circuit, then post it here as your schematic.