Each day in the Dunder Mifflin office located in Scranton, Pennsylvania was full of surprises. 

In the popular American sitcom, "The Office," friendships formed, coworking rivalries spanned the television screen, and romantic relationships blossomed – with no shortage of unforgettable comedic moments throughout. 

The work environment set in "The Office" was by no means a traditional one, especially under the direction of Michael Scott, a goofy boss with very little self-awareness, played by Steve Carell. 

‘FRIENDS’, ‘SEINFELD’ AND OTHER TV SHOWS UNFIT FOR TODAY'S WOKE CULTURE

"The Office" had a lenthy TV run, airing on national television from 2005 to 2013. But the popularity of the show did not end with its finale. Audiences frequently tune into past episodes on streaming services. Some believe the show is more popular now than it was when it first aired. 

Because of this, the show has seen an uptick in new fans in recent years.

Scene from "The Office"

"The Office" ran from 2005 until 2013. The documentary-style show displayed the lives of Dunder Mifflin employees. (Chris Haston/NBCU Photo Bank/NBCUniversal via Getty Images via Getty Images)

And though there are many fans of "The Office," most are unaware of some of the behind-the-scenes secrets of the beloved sitcom. Here is a roundup of some of the most hilarious moments from taping the show that you might not know about.

1. John Krasinski's wig

John Krasinski pulled off a wig for a few episodes of the show. 

During the third season of the show, Krasinski had to cut his hair for a movie he was in called "Leatherheads."

For the last six episodes of season 3, Krasinski wore a wig and kept Jim Halbert's hairstyle intact, according to a Mashable interview with hair and makeup stylist Kim Ferry.

2. A perfect 64-degree office

The temperature of the office was always a perfect 64 degrees, Rainn Wilson pointed out in his 2020 book titled "The Bassoon King."

According to the actor, the cool temperature was steadily maintained due to Carell's sweating.

IF YOU LOVED ‘CHEERS,' YOU MIGHT ALSO LIKE ‘FRASIER’ AND OTHER SIMILAR SITCOMS

3. A different Michael Scott

Michael Scott is one of the most well-known roles of Carell's career thus far. But did you know the character was almost played by someone else?

"Better Call Saul" actor, Bob Odenkirk, was going to play Scott after Carell was booked for another show, according to Screen Rant. The show ended up facing an early cancellation, bringing Carell back to Dunder Mifflin. 

Steve Carell as Michael Scott in "The Office"

Michael Scott is one of Steve Carell's most-remembered roles. (Justin Lubin/NBCU Photo Bank/NBCUniversal via Getty Images via Getty Images)

4. Phyllis: From casting to cast

Phyllis Smith wasn't always part of the main "Office" cast. Originally, she worked in casting, where she read lines with potential actors who would be part of the cast.

The producers liked Smith and ended up creating a role for her on the show.

HOW HOUSEHOLD TV SHOWS LIKE ‘MODERN FAMILY’ AND ‘FULL HOUSE’ COMPARE TO ‘THE BRADY BUNCH’

5. The camera work of John Krasinski

Audiences can thank Krasinski for the shots displayed during the opening credits of the show.

After landing the role of Jim, Krasinski went on a road trip to Scranton, Pennsylvania, where he shot the famous clips played before each episode of the show.

6. Jim and Pam's first kiss

Jim and Pam are a favorite TV couple of many, and the story of their first kiss makes their love story even sweeter.

During a 2020 episode of the "Office Ladies" podcast, co-hosted by fellow "The Office" castmates Jenna Fischer and Angela Kinsey, Krasinski talked about his first kiss with Fischer in the episode titled "Casino Night."

Jenna Fischer and John Krasinski as Pam and Jim in "The Office"

Many fans of "The Office" loved and rooted for the relationship between Jim and Pam. (Danny Feld/NBCU Photo Bank/NBCUniversal via Getty Images via Getty Images)

‘THE OFFICE’ CHARACTERS JIM AND PAM WERE SUPPOSED TO BREAK UP IN SEASON 9

Krasinski spoke about how the kiss between Jim and Pam was his first acting kiss of his career.

"It was also my first kiss – first kiss I ever had acting," Krasinski said. "That was my first acting kiss ever."

Kinsey said her first acting kiss was with Dwight; Fischer said her kiss with Krasinski was her second.

7. Meredith who?

If you look really closely at Meredith seated at her desk in the very first episode of "The Office," you may notice that she looks a little different. 

Fischer spoke on the "Office Ladies" podcast about how Kate Flannery, who would end up playing Meredith, was not originally cast.

"Henriette Mantel was a comedy actress who [had] just broken out because she had played Alice in the Brady Bunch films," Fischer said in the podcast. "And she was there for the pilot, and then it was six months later that we got picked up, and then we started filming the rest of the episodes. And I guess the rumor was she was not available."

Kate Flannery as Meredith in "The Office"

The first episode of "The Office" sees Henriette Mantel as Meredith instead of Kate Flannery, shown. (Chris Haston/NBCU Photo Bank/NBCUniversal via Getty Images via Getty Images)

8. The highly qualified workers of Dunder Mifflin

As it turns out, the employees of Dunder Mifflin are very highly educated. 

Four of "The Office" cast members received an Ivy League education. Krasinski graduated from Brown University just in time for his long run on "The Office."

Ellie Kemper, who played Erin Hannon in later seasons of the show, graduated from Princeton University.

CLICK HERE TO GET THE FOX NEWS APP

Mindy Kaling, who played Kelly Kapoor on "The Office," graduated from Dartmouth College and Rashida Jones, who played Karen Filippelli for a limited run, studied at Harvard University.

9. Actors who used their real names

A handful of the actors on the show shared a name with their characters including Angela, Phyllis, Creed and Oscar.