Your :targets are children of .text. Update your css accordingly.
EG:
/* hide all .text child divs: */
.text div {display: none;}
/* show all .text child divs if .text is the target: */
.text:target div {display: block;}
/* show the specific target .text child div */
.text div:target {display: block;}
I tried everything, this work just when you clik on the “everything” anchor tag, but I want to do that If you click on “everything” It display the full text, but if you click on “fruits” it displays only the text about the fruits and hide the vegetables’ text, how can i make It work?