What type of hinge is used on small boxes so the lid lays flat on the body of the box?

I bought some butt hinges aligned and mortised both the lid and box but when I installed the hinge the back of the lid was raised when it was closed. So I took a closer look at the uninstalled hinge and saw that the two halves did not come together flush.

What type of hinge should I get?

Thanks,
Jim