title: How to make text and image contained in div when div shrinks?
body: <p>Currently, when I shrink the size of the screen, the text and images get squeezed out of the div like so: <a href="https://i.stack.imgur.com/9dSG2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9dSG2.png" alt="enter image description here" /></a>.</p>
  <p>How can I fix it to look like <a href="https://i.stack.imgur.com/eoKxE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eoKxE.png" alt="this" /></a>? (showing both full screen and half size of the screen).</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.flex {
    z-index: 2;
    display: flex;
    flex-direction: row;
    background-color: #000000;
    height: 100px;
    border-radius: 20px;
    margin: -450px 36% 0 36%;
  }
  
  .landingText {
    z-index: 2;
    font-family: 'Mukta', sans-serif;
    font-style: normal;
    font-size: 44px;
    line-height: 100%;
    color: white;
    text-shadow: none;
    display: inline-block;
    padding: 27px 0 29px 33px;
    justify-content: center;
  }
  
  .landingArrow {
    display: inline-block;
    text-shadow: none;
    padding: 40px 0 29px 0;
    position: relative;
    left: 5%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div className={indexStyles.flex}&gt;
    &lt;h1 className={indexStyles.landingText}&gt;LISTEN TO ORCAS LIVE!&lt;/h1&gt;
    &lt;div className={indexStyles.landingArrow}&gt;
      &lt;Image src={arrow} /&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>EDIT: the app is built with NextJS so the HTML I posted is not what my browser sees on completion of the script. I screenshotted the HTML from inspect elements:
  <a href="https://i.stack.imgur.com/v0znZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v0znZ.jpg" alt="enter image description here" /></a></p>