Role of JSON and CSS in calculator?

How effective are both JSON and CSS languages in creating a calorie calculator similar to the one depicted in the screenshot below?

I don’t think JSON or CSS is the main thing here. How are you storing/retrieving data when a user chooses a drink type? Do you have it stored in advance or are you calling an API?