In what country was the sport of curling invented?

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