I have a raster file which shows the land suitability of a country. I have masked this on top of a shape file which is the country itself. I want to only keep parts of the shape file that overlap with the raster file. Some errors that I could possibly run into are the CRS projections of each file. 

Could I get some guidance on how to remove unwanted parts of the shape file. (I only want to keep parts of the brown map where there is blue and yellow)

[![enter image description here][1]][1]

[![enter image description here][2]][2]


  [1]: https://i.sstatic.net/hKWW5.png
  [2]: https://i.sstatic.net/We7GN.png