JSFiddle - React, Tailwind, and code Playground

by LuckyCat

HTML

<body>
  <html>
    <div class="wrapper">
      <div class="outer">
        <div class="inner">
        
        </div>
      
      </div>
  
    </div>

  </html>
</body>

CSS

* {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

.wrapper {
  position: relative;
  border: solid 1px;
  background-color: grey;
  width: 100%;
  height: 100%;
}

.outer {
  position: relative;
  width: 30%;
  height: 30%;
  background-color: white;
  top: 30%;
  left: 30%;
  box-shadow: 0 0 25px 2px inset;
  border-radius: 10px;
}

.inner {
  position: absolute;
  width: 30%;
  height: 30%;
  background-color: black;
  opacity: 0.5;
  top: 50%;
  left: 50%;
  
  transform: translate(-50%, -50%);
}