JSFiddle - React, Tailwind, and code Playground
HTML
<div class="card-wrapper">
<div class="orange"></div>
</div>
CSS
.card-wrapper{
position: relative;
}
.orange{
position: relative;
margin: 0 auto;
display: block;
background-color: orange;
width: 400px;
height: 300px;
border-radius: 10%;
}
.orange:before{
display: block;
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 20px;
width: 380px;
height: 300px;
background-color: red;
border-radius: 10%;
z-index: -1;
}
.orange:after{
display: block;
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 40px;
width: 360px;
height: 300px;
background-color: blue;
border-radius: 10%;
z-index: -2;
}