title: Problem with the Size (resolution) of my div
body: <p>My problem is my div that is called .border, the only purpose of it is to make cool border effect around the 2 headlines in the middle-left of the landingp age picture. But you can see pretty good in the screenshot, that the .border is kind of attached to the picture and stretches out. I have really no clue how to make this border perfectly centered behind the text.</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>.home {
    margin: 3rem 6rem 3rem 6rem;
    background-image: url(img/Aliens\ Cows.jpg);
    background-repeat: no-repeat;
    background-size: inherit;
    min-height: 20rem;
    box-shadow: .5rem .5rem .5rem rgba(0, 0, 0, 0.2), 1rem 1rem 0rem var(--clr-main);
  }
  
  .layer-over-p {
    min-height: 20rem;
    z-index: 1;
    background: linear-gradient(90deg, rgba(32, 31, 27, 0.5), rgb(255, 234, 0, 0.6));
    backdrop-filter: blur(6px);
  }
  
  .text-1 {
    text-shadow: 0.5rem 0.5rem 0.4rem rgba(0, 0, 0, 0.2);
    margin-top: 4.5rem;
    margin-left: 8rem;
  }
  
  .text-1 a {
    font-size: 6rem;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--ff-primary);
  }
  
  .text-2 {
    text-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.2);
    margin-top: -1.6rem;
    margin-left: 8.32rem;
  }
  
  .text-2 a {
    font-size: 1.6rem;
    text-decoration: none;
    color: rgb(189, 189, 189);
    text-transform: uppercase;
    font-family: var(--ff-primary);
  }
  
  .border {
    position: absolute;
    z-index: 2;
  }
  
  
  /* ANIMATIONS = Navbar + Home *******************************************/
  
  .border {
    border-top: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: border-top 0.5s ease-in-out, border-right 0.5s ease-in-out, border-bottom 0.5s ease-in-out, border-left 0.5s ease-in-out;
  }
  
  .border:hover {
    border-top: 3px solid var(--clr-accent);
    border-right: 3px solid var(--clr-accent);
    border-bottom: 3px solid var(--clr-accent);
    border-left: 3px solid var(--clr-accent);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="home"&gt;
    &lt;div class="border"&gt;
      &lt;div class="text-1"&gt;&lt;a href="#"&gt;My Work&lt;/a&gt;&lt;/div&gt;
      &lt;div class="text-2"&gt;&lt;a href="#"&gt;See my Creations.&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="layer-over-p"&gt;&lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>