Marine predators that lived in deep waters during the Jurassic Period thrived as sea levels rose, while species that dwelled in the shallows died out, research suggests.