I'm trying to build a modal screen using CSS, HTML. Code below:
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.6);
}
.content {
  border-radius: 4px;
  background-color: white;
  padding: 16px;
  height: 80vh;
  width: 80vw;
}
.title {
  padding: 16px;
}
.body {
  padding: 16px;
  height: 100%;
  width: 100%;
  background-color: blue;
  min-height: 0;
}<div class="container">
  <div class="content">
    <div class="title">The bugged modal screen</div>
    <div class="body">
      This is overflowing 
    </div>
  </div>
</div>As the example shows, the flex child (blue content) is overflowing its parent. I've tried to use min-height: 0 seens not to be working for me. Help apprecited to put the child inside inside its boundaries.
 
    