I have this structure ... it's similar to the WordPress administration area ... the point is that I need .main taking all the space available in width and height and .foot remains down while there is no content that lowers it. I want to use flex because I will have columns inside the .main and I need these columns take full height as well... Maybe someone can give me another solution, but I can NOT change the html, only the CSS
.wrap {
  display: flex;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: -100px;
  background-color: #00a0d2;
  width: 200px;
}
.main {
  background-color: #66BB6A;
  display: flex;
}
.foot {
  margin-left: -200px;
  background-color: #9999dd;
  height: 60px;
}<div class="wrap">
  <div class="sidebar">Menu</div>
  <div class="main">Content</div>
  <div class="foot">Footer</div>
</div>where the final result would be something like this, thx

 
     
    