on the other side of the ocean sea a red line representing the popes decree divided the realms of spain , flying the flag of castile and lon , from those of portugal with the five wounds of christ defended by three macaws .