JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">     
    <img src="http://kpv.s3.amazonaws.com/static/img/film.jpg" class="background"></img>
    <div class="box-message flow_text flow_three">
        <h3>text</h3>
        <p>text txtegv dsf asd fsda f asdf f as d</p>
    </div>
    <div class="box-message flow_text flow_two">
        <h3>text</h3>
        <p>text txtegv dsf asd fsda f asdf f </p>
    </div>
</div>

CSS

.container { position: relative; }
.background { width: 100%; }
.box-message {
    box-sizing: border-box;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.11), -1px 0 3px rgba(0, 0, 0, 0.11);
    border: 2px solid black;
    border-radius: 3px;
    background: #fff;
    color: #000;
    padding: 2% 2% 3% 2%;
    position: absolute;
    width: 15%;
    height: 15%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    overflow: hidden;
}
.flow_three {
    top: 18%;
    left: 22%;
}
.flow_two {
    top: 52%;
    left: 58%;
}
.flow_text h3 {
    color: #1BB366;
    margin: 0;
    font-size: 2vw;
}
.flow_text p {
    font-size: 3vw;
    line-height: 3vh;
    margin: 0;
}

JavaScript

causeRepaintsOn = $("h1, h2, h3, p");

$(window).resize(function() {
  causeRepaintsOn.css("z-index", 1);
});