title: Make flex items stack next to each other
body: <p>I have 10 divs: 2 hidden and 8 stacked one on top of each other.</p>
  
  <p>Using a media query, when resizing the screen, I can display the 2 hidden divs.</p>
  
  <p>So, now I have 4 red divs at the bottom but I want them to appear in pairs - 2 lines with 2 red divs one next to each other.</p>
  
  <p><img src="https://i.stack.imgur.com/LxRuW.jpg" alt="enter image description here"></p>
  
  <p>How do I do that?</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>html {
    font-size: 20px;
  }
  
  .box {
    color: white;
    font-size: 100px;
    text-align: center;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    padding: 10px;
    Margin: 5px;
    /*  width: calc(33.33% - 10px);*/
  }
  
  
  /* Flexbox code starts here */
  
  .container {
    display: flex;
    /*Must!!!! on the container, in order to turn it to flex*/
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  
  /* Colors for each box */
  
  .blue {
    background: blue;
  }
  
  .orange {
    background: Orange;
    height: 300px;
  }
  
  .green {
    background: green;
  }
  
  .red {
    background: red;
    height: 170px;
  }
  
  .hide-reds {
    display: none;
  }
  
  
  /*Media Queries for Different Screen Sizes*/
  
  @media all and (min-width: 800px) {
    .red {
      display: block;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="box blue"&gt;Blue&lt;/div&gt;
    &lt;div class="box blue"&gt;Blue&lt;/div&gt;
    &lt;div class="box orange"&gt;Orange&lt;/div&gt;
    &lt;div class="box green"&gt;Green&lt;/div&gt;
    &lt;div class="box green"&gt;Green&lt;/div&gt;
    &lt;div class="box green"&gt;Green&lt;/div&gt;
    &lt;div class="box red"&gt;Red&lt;/div&gt;
    &lt;div class="box red"&gt;Red&lt;/div&gt;
    &lt;div class="box red hide-reds"&gt;Red&lt;/div&gt;
    &lt;div class="box red hide-reds"&gt;Red&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>