JSFiddle - React, Tailwind, and code Playground

by Sergey Goryachev

HTML

<div class="block"></div>

CSS

.block {
  width: 300px;
  height: 180px;
  background: wwhite;
  position: relative;
  z-index: 3;
  margin: 100px auto;
  box-shadow: 0 10px 15px 5px rgba(0,0,0,.25);
}
.block:before,
.block:after {
  content: '';
  position: absolute;
  width: 90%;
  height: 10px;
  z-index: 2;
  background: rgba(0,0,0,.25);
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.block:after {
  background: rgba(0,0,0,.15);
  width: 80%;
  height: 20px;
  z-index: 1;
  top: -20px;
}