title: Flex-wrap: nowrap is not working correctly
body: <p>I have a problem making the page responsive. The property <code>flex-wrap: nowrap</code> is not working properly. Can you please help me to find out where the problem is?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.logo {
      text-decoration: none;
      color: white;
  }
  
  .header {
      width: 100%;
      max-width: 960px;
      min-width: 460px;
      min-height: 100px;
      margin: 0 auto 30px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      box-sizing: border-box;
  }
  
  .logo {
      background: black;
      width: 150px;
      min-height: 50px;
      align-items: center;
      display: flex;
      flex: none;
      margin: 0 10px 40px;
      justify-content: center;
  }
  
  .contnet {
      background: black;
      min-height: 50px;
      font-size: 20px;
      color: white;
      margin-bottom: 40px;
      flex-basis: 300px;
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  .bottom-content {
      min-height: 50px;
      display: flex;
      flex-wrap: wrap;
      flex: auto;
      background: black;
      width: 100%;
      color: white;
      font-size: 20px;
      justify-content: center;
      align-items: center;
  }
  
  .main {
      width: 100%;
      max-width: 960px;
      min-width: 430px;
      display: flex;
      flex: auto;
      margin: auto;
      box-sizing: border-box
  }
  
  .grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }
  
  .griditem {
      margin-bottom: 30px;
      display: flex;
      flex-basis: calc(33.33% - 20px * 2/3);
      flex-wrap: wrap;
  }
  
  .img {
      width: 200px;
      height: 200px;
      background-color: black;
      margin: 0 auto;
  }
  
  .title {
      text-align: center;
  }
  
  .grid-content {
      flex: 0 1 100%;
  }
  
  .text {
      text-align: center;
  }
  
  .footer {
      width: 100%;
      background-color: black;
      max-width: 960px;
      min-width: 460px;
      margin: 0 auto;
      padding: 15px;
      color: white;
      text-align: center;
  }
  
  .img {
      color: white;
  }
  
  @media screen and (max-width: 800px) {
      .contnet {
          display: none
      }
  
      .griditem {
          flex-wrap: nowrap;
          flex-basis: 100%;
      }
      .img {
          flex: 0 0 auto;
      }
  
      .griditem:nth-child(even) {
          margin: 0 0 0 30px;
          order: 2
      }
      .footer{
          display: none
      }
  
      .griditem:nth-child(odd) {
          margin: 0 30px 0 0;
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;hrader class="header"&gt;
          &lt;a href="" class="logo"&gt;Logo&lt;/a&gt;
          &lt;div class="contnet"&gt;Content&lt;/div&gt;
          &lt;div class="bottom-content"&gt;2&lt;/div&gt;
      &lt;/hrader&gt;
      &lt;main class="main"&gt;
          &lt;div class="grid"&gt;
              &lt;div class="griditem"&gt;
                  &lt;div class="img"&gt;1&lt;/div&gt;
                  &lt;div class="grid-content"&gt;
                      &lt;h1 class="title"&gt;Title&lt;/h1&gt;
                      &lt;p class="text"&gt;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio neque magnam amet, praesentium vel illum error autem voluptatibus veniam consequuntur.&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="grid"&gt;
              &lt;div class="griditem"&gt;
                  &lt;div class="img"&gt;2&lt;/div&gt;
                  &lt;div class="grid-content"&gt;
                      &lt;h1 class="title"&gt;Title&lt;/h1&gt;
                      &lt;p class="text"&gt;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio neque magnam amet, praesentium vel illum error autem voluptatibus veniam consequuntur.&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt; &lt;div class="grid"&gt;
              &lt;div class="griditem"&gt;
                  &lt;div class="grid-content"&gt;
                      &lt;div class="img"&gt;3&lt;/div&gt;
                      &lt;h1 class="title"&gt;Title&lt;/h1&gt;
                      &lt;p class="text"&gt;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio neque magnam amet, praesentium vel illum error autem voluptatibus veniam consequuntur.&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/main&gt;
      &lt;footer class="footer"&gt;
          Footer
      &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Fiddle: <a href="https://jsfiddle.net/q9bcpr4L/" rel="nofollow noreferrer">https://jsfiddle.net/q9bcpr4L/</a></p>