JSFiddle - React, Tailwind, and code Playground

HTML

<div class="modal"></div>
    <div class="modal-content">
       My Modal
    </div>
    <p>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>

        some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>

        some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>

        some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>

        some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/>some content<br/></p>

CSS

.modal{

    position: fixed;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    filter:alpha(opacity=50);
    -moz-opacity:0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
    z-index: 1;}

.modal-content{
       
        background:#fff;
        width: 100px;
        height: 100px;
        box-shadow(0 10px 2px #999);
    position:absolute;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
    z-index: 2;
    }