I have the following layout:
.content-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.view-content {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.zavod,
.ekipa {
  width: 100%;
  max-width: 300px;
  background-color: red;
}<div class="content-container">
  <div class="view-content">
    <section class="zavod">
      <p>Some text</p>
    </section>
    <section class="ekipa">
      <p>Some more text</p>
      <p>Even more text</p>
      <p>Even more text</p>
    </section>
  </div>  
</div>What I would like to accomplish is for .zavod and .ekipa to have different heights. Now this works inside a single flex container, but when I nest multiple ones it does not work.
What am I doing wrong?
 
     
     
     
     
    