title: How do I position my image on the right side of my flex container?
body: <p>So this is my code for a responsive website that I am currently creating, it works fine in the mobile version but as you can see, inside the</p>
  <blockquote>
  <p>@media property</p>
  </blockquote>
  <p>where I am trying to move my image to the right side of the image container ( the red border container) but I am not able to do it, can someone please help me or tell me where is it that I'm mistaking the code.</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>@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&amp;display=swap");
  @import url("https://fonts.googleapis.com/css2?family=Lexend+Deca&amp;display=swap");
  
  body {
    background-color: hsl(233, 47%, 7%);
    height: 100%;
  }
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .card {
    width: 300px;
    height: 800px;
    background-color: hsl(244, 38%, 16%);
    border-radius: 10px;
    margin: 70px 30px;
    box-shadow: 0 0 10px black;
  }
  .image_container {
    width: 300px;
    height: auto;
  }
  .image {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    mix-blend-mode: soft-light;
  }
  .text-container {
    align-self: center;
    text-align: center;
  }
  h1,
  article {
    font-family: "Inter", sans-serif;
    padding: 0px 15px;
  }
  
  h1 {
    padding-top: 10px;
    color: white;
    font-weight: 700;
  }
  .insights {
    color: hsl(277, 64%, 61%);
  }
  article {
    color: hsla(0, 0%, 100%, 0.75);
  }
  
  .stats_container {
    align-content: center;
    text-align: center;
    display: block;
  }
  
  .num1 {
    color: white;
    font-family: "Lexend Deca", sans-serif;
    font-weight: 400;
    font-size: 35px;
    display: block;
    padding-top: 25px;
  }
  
  .stats_heading {
    color: hsla(0, 0%, 100%, 0.6);
    font-family: "Lexend Deca", sans-serif;
    text-transform: uppercase;
  }
  
  @media only screen and (min-width: 1224px) {
    .card {
      width: 1040px;
      height: 450px;
      align-self: center;
    }
    .image_container {
      border: 1px red solid;
      width: 1040px;
      height: 450px;
      flex-direction: row;
      justify-content: flex-end;
      align-content: flex-end;
    }
    .image {
      width: 50%;
      height: 100%;
      align-self: flex-end;
  
      mix-blend-mode: soft-light;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;DOCTYPE! html&gt;
      &lt;html lang="en"&gt;
  
      &lt;head&gt;
          &lt;link href="firstproject.css" rel="stylesheet"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;meta charset="UTF-8"&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
  &lt;div class="container"&gt;
          &lt;div class="card"&gt;
              &lt;div class="image_container"&gt;
                  &lt;img class="image" alt="main.jpg"  src="image-header-desktop.jpg"&gt;
              &lt;/div&gt;
              &lt;div class="text-container"&gt;
                  &lt;h1&gt;Get &lt;span class="insights"&gt;insights&lt;/span&gt; that help your buisness grow&lt;/h1&gt;
                  &lt;article&gt;Discover the benfits of data analyitcs and make better decision regarding revenue, customer experience, and overall efficiency.&lt;/article&gt;
              &lt;/div&gt;
              &lt;div class="stats_container"&gt;
                  &lt;section class="stats"&gt;
                  &lt;div class="companies"&gt;&lt;span class="num1"&gt;10k+&lt;/span&gt;
                  &lt;span class="stats_heading"&gt;companies&lt;/span&gt;&lt;/div&gt;
                  &lt;div class="templates"&gt;&lt;span class="num1"&gt;314&lt;/span&gt;
                  &lt;span class="stats_heading"&gt;Templates&lt;/span&gt;&lt;/div&gt;
                  &lt;div class="queries"&gt;&lt;span class="num1"&gt;12M+&lt;/span&gt;
                  &lt;span class="stats_heading"&gt;queries&lt;/span&gt;&lt;/div&gt;   
              &lt;/section&gt;
              &lt;/div&gt;
             
          &lt;/div&gt;
  &lt;/div&gt;
      &lt;/body&gt;
  
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>