The story is based on real events that Panahi first heard about when Kiarostami told him the story while they were stuck in a traffic jam on their way to one of Kiarostami's photographic exhibits. Panahi was extremely moved by the story and Kiarostami agreed to write the script for him to direct. Panahi submitted the film to the Cannes Film Festival without being granted a permit from the Ministry of Culture and Islamic Guidance. Panahi had applied for the permit but the Ministry demanded several cuts be made to the film. Panahi refused and submitted the film anyway. At the festival it won the Un Certain Regard Jury Award. It later won the Golden Hugo Award for Best Film at the Chicago International Film Festival. Like "The Circle", "Crimson Gold" was banned in Iran. In 2006 Panahi made "Offside". In the film, a group of young Iranian girls disguise themselves as boys to sneak into Azadi Stadium to watch the World Cup qualifying football playoff game between Iran and Bahrain. The film was partially shot during the actual game it depicts. Since the 1979 Islamic Revolution women have been banned from attending football matches in Iran on grounds of rowdy and aggressive language, lewd behavior, and seeing men in shorts and short sleeve shirts. At one point Mahmoud Ahmadinejad had wanted to repeal the law but was overruled by the ulema. Panahi has stated "I use the football game as a metaphor to show the discrimination against women on a larger scale. All my movies have that topic at their center. This is what I am trying to change in Iranian society." The film was inspired by an incident several years earlier when Panahi's daughter was refused entry to a football stadium but ended up sneaking into the stadium anyway. Knowing that the film would be controversial, Panahi and his crew submitted a fake script about some young men who go to a football match to Iranian authorities in order to get permission to make the film. However, before they began shooting the Ministry of Guidance, which issues licenses for films to be shown publicly, told Panahi in advance that because of his past films they would not issue "Offside" a license until he re-edited his previous films. Not wanting to miss the World Cup tournament, Panahi ignored the Ministry and began shooting the film. As usual, Panahi cast non-professional actors for the film, and the group of young girls in the lead roles were mostly university students that Panahi found through friends who all were passionate fans of football.