A semi-official news agency in Iran is reporting that the country's football federation has suspended a goalkeeper for six months for a series of offenses, including wearing yellow pants reminiscent of "SpongeBob SquarePants."

Only in #Iran can wearing #SpongeBob pants get you banned from the national soccer team https://t.co/iX3ZmwxdSB pic.twitter.com/xoKarpEfyP — Donya Jam (@FreeeIran) June 8, 2016

The ISNA news agency reported Wednesday that Sosha Makani, formerly a goalie for Persepolis Football Club, can appeal his suspension.

An image of Makani smiling and wearing the dotted yellow pants that showed his ankles circulated online last month. Those pants were apparently too close to looking like "SpongeBob SquarePants," a yellow sponge character on a popular children's animated television show.

Athletes and celebrities in Iran have been targeted by hard-liners in the judiciary and elsewhere for what they wear and how they behave. Iranian hard-liners view much of Western culture as corrupt and un-Islamic.