Flammable and toxic foam soundproofing on the ceiling. Just one exit for a large club that could hold hundreds of people. Not a ceiling water sprinkler system in sight.

These are some of the main causes of the massive death toll in a nightclub fire in Brazil — and none broke any law, raising questions about safety regulations in a nation set to host the World Cup and Olympic Games.

Documents obtained by The Associated Press, including past building and fire safety plan permits issued to the Kiss club, where 234 people died within minutes in a fire early Sunday, showed that such deadly choices were within regulations.

"Do I agree with the fact that there was only one exit? No. Do I agree that the roof was covered with flammable material? No, I don't," said Maj. Gerson Pereira, an inspector with the local fire department. "I would have liked to shut down this place, but then the firefighters could be sued" because no law had been broken.

But the same documents also illustrate that other regulations were broken, including irregularities in the fire safety inspection of the club, as well as violations by the band the club hired whose pyrotechnics are blamed for causing the blaze. Police inspectors say any of these violations were reason enough to shut the club down.

One document shows that the club had already been labeled by fire officials as being at "medium" risk for having a fire. By state law, that designation requires that the club undergo annual inspections. But records show that the last inspection took place in August 2011.

Survivors of the fire have said that the club's fire extinguishers failed to work in early attempts to battle the blaze. Under state law, an extinguisher must have a receipt showing that it had been independently inspected within a year in order for it to be acceptable.

Marcelo Arigony, the lead police investigator in the case, said in a Tuesday press conference that it was clear the fire extinguishers had not been inspected and that they were clearly cheap models that should not be used anywhere.

Perhaps most egregious was what authorities point to as the cause of the fire.

The blaze began at around 2:30 a.m. local time during a performance by Gurizada Fandangueira, a country music band that had made the use of pyrotechnics a trademark of their shows. The band's guitarist told media that the 615-square-meter (6,650-square-foot) club was packed with an estimated 1,200 to 1,300 people, the same estimate police have given. Capacity for the club, however, is under 700.

Police said that members of the band knowingly bought flares meant for outdoor use because they cost a mere $1.25 a piece, compared with the $35 price tag for an indoor flare.

"It's not that this club was working to come within this or that law — the place should have never been open in the first place," Arigony said. "This is a problem that is seen across Brazil, these laws. I can only hope this tragedy brings about change."

Jaime Moncada, a U.S.-based fire-safety consultant with nearly three decades experience in Latin America including large projects in Brazil, said he was not surprised that one exit was permissible under local law.

Shown a blueprint of the club obtained by the AP, he calculated that the farthest point from the front door was 105 feet (32 meters), and regulations in most Brazilian states dictate that a second exit is required only if the distance is 131 feet (40 meters) or more.

For the same reason of distance, Moncada said sprinklers and alarms would not be required.

"For an American audience, it is crazy to think that a place would have only one exit," he said.

In Brazil, he added, that would be the norm.

In the United States, the club would have failed an inspection in at least three ways, according to Moncada: Three separate exits would have been required; the foam would need to be treated with a fire retardant; and it would need sprinklers.

Amid the shock of what was the world's deadliest nightclub fire in a decade, changes in Brazil seemed on the horizon.

In Brasilia, the nation's capital, lawmakers in the lower house worked on a proposal that would require federal safety minimum standards across Brazil. Now states individually create such laws. The O Globo newspaper reported on its website that the mayor's office in Santa Maria ordered all nightclubs closed for 30 days while inspections are carried out.

Elsewhere, the government of the country's biggest city, Sao Paulo, set to host the opening match of the 2014 World Cup, promised tougher security regulations for nightclubs.

The Folha de S. Paulo newspaper reported that in Manaus, which will also host World Cup matches, nightclubs with empty fire extinguishers and unmarked emergency exits have been shut down and fined. And in Olympic host city, Rio de Janeiro, a consumer complaint hotline has received more than 60 calls since Sunday's tragedy denouncing hazardous conditions at night spots, theaters, supermarkets, schools, hospitals and shopping malls.

Outraged citizens in Santa Maria are demanding change.

Elise Parode, an 18-year-old student taking part in a protest before City Hall, chanted with all her might along with about 500 others, pushing up against the door of the building as municipal guards kept them from entering.

"We want justice! We want the government held accountable, just like the owners of the bar!" she yelled as the crowd around held aloft poster-size photos of the fire's victims. "Our own government doesn't know the laws — we're not safe until they do."


Associated Press writers Bradley Brooks in Santa Maria and Justin Pritchard in Los Angeles contributed to this report.