I would like to create a triangle like the one below:

however, I'm not quite sure how to get the triangle between the divs.
Here's the code I currently have:
.container {
display: flex;
flex-direction: row;
align-content: center;
}
.box {
height: 50px;
width: 50%;
background-color: #ddd;
border: 1px solid red;
}
<div class="container">
<div class="box"></div>
<div class="box"></div>
</div>