In what country was the sport of curling invented?

Sport Trivia Question: In what country was the sport of curling invented?