Searchbox to open popup?

Hello all. Please help me if you are able. I want a searchbox input and click to trigger a popup with information from the database. I am developing a tarot reference guide. The idea is that a user can search for the name of a card and the popup will show all the card info including image.

I can’t figure out how use the search input to trigger dynamic data elements in the popup. I would be very much appreciative if anyone has a solution.