Aligning text to center if screen is smaller then 768px
<p>I have a container with text centered. Inside the container I have a panel with the text set to left, but when the screen gets smaller then a tablet to something like a phone I want the text in the panel to center.</p>

<p>Here is what I am doing but not sure how media queries work and this isn't working for me.</p>

<p>This media query is what I'm using but hte html is a lot more complex, but left simplified as an example</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>@@media all and (min-width:768px) {
  .text-left {
    text-align: center;
  }
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container text-center"&gt;
  &lt;div class="row"&gt;
    &lt;div class="panel panel-default text-left"&gt;
      &lt;div class="panel-body"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>