Media Query & Flex Not Detected - Product Landing Page

Hello all,

I have assen a few posts of this kind already solved, however the solutions for those don’t appear to work with mine.

So I run the tests and it shows that the media query and flex display setting is not detected despite being there. I have tried in different browsers and the same problems occurs. I have run the code through a code validaion site which came back okay.

Please find the code below:
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <link rel="stylesheet" href="styles.css">
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
<header id="header">
      <img id="header-img" src="httpsLaunchpadLogo.png">

<nav id="nav-bar">
<a href="#introduction" class="nav-link">Introduction</a>
<a href="#our-services" class="nav-link">Our Services</a>
<a href="#contact" class="nav-link">Contact</a>
</nav>
</header>
<main class="main-doc">
<section id="introduction">

</section>
<section id="our-services">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/1HN2xjYl48Y?si=dFyZaT1LhdeLD3sU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

</section>
<section id="contact">
<form   action="https://www.freecodecamp.com/email-submit" id="form">
  <input type="email" id="email" name="email" placeholder="Someone@somehwere.com">
  <input id="submit" type="submit">

</form>
</section>
</main>
<footer></footer>




  </body>
</html>

<script src=https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js></script>

And CSS:

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

#header-img {
  height: 200px;
  width: auto;

}

body {
  background-color:#F7F7F7;
    display: flex;
}

@media (max-width: 700px) {
  body {
    justify-content: center;
  }
}

Please forgive the state of the project at present. I’m just trying to meet the test criteria first… lol.

Any thoughts and guidance anybody may have will be greatly appreciated!

Many thanks

Your code is passing for me.

Thank you! Which browser are you using?