title: CSS - Change parent div background-color on input check
body: <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>    .chk-circle {
       width: 8px;
       height: 8px;
       background: #afb0b5;
       border-radius: 100%;
       position: relative;
       float: left;
       margin-top: 4px;
       margin-right: 8px;
      }
      
      .chk-circle label {
       display: block;
       width: 4px;
       height: 4px;
       border-radius: 100px;
       cursor: pointer;
       position: absolute;
       top: 2px;
       left: 2px;
       z-index: 1;
       background: #fff;
      }
      
      .chk-hide {
        visibility: hidden;
      }
  
      .chk-circle input[type=checkbox]:checked + label {
       background: #63a70a;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   &lt;div class="chk-circle"&gt;
        &lt;input class="chk-hide" type="checkbox" id="chk1"/&gt;
     &lt;label for="chk1"&gt;&lt;/label&gt;
     &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Which produces the following:</p>
  
  <p><a href="https://i.stack.imgur.com/j0vub.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0vub.png" alt="enter image description here"></a></p>
  
  <p>What I want to do is have the outer circle turn green when the input is checked, I have tried the following but the reverse happens:</p>
  
  <p><a href="https://i.stack.imgur.com/YiLCA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YiLCA.png" alt="enter image description here"></a></p>