title: Change Font color onclick Radio buttons
body: <p>We are displaying text &amp; two radio buttons in page....</p>
  
  <p>Once we click on Radio buttons, we are changing background color of page according to radio button....</p>
  
  <p><strong>Requirement</strong> :</p>
  
  <p>Instead of Background color, i want to change the <strong>text color</strong> onclick radio button....</p>
  
  <p>I tried below , but it did't worked : </p>
  
  <pre><code>.orange input:checked ~ .text {
    color: #F4511E;
  }
  </code></pre>
  
  <p><strong>Code Snippet</strong></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>html,
  body {
    width: 100%;
    height: 100%;  
    margin: 0;
    padding: 0;
    text-align: center;
  }
  
  body {
    box-sizing: border-box;
    padding-top: 180px;
    background: #ffffff;
  }
  
  input {
    display: none;
  }
  
  .button {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
    margin: 10px;
    cursor: pointer;
  }
  
  .button span {
    display: block;
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 0;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 100%;
    background: #eeeeee;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    transition: ease .3s;
  }
  
  .button span:hover {
    padding: 10px;
  }
  
  .orange .button span {
    background: #FF5722;
  }
  
  .amber .button span {
    background: #FFC107;
  }
  
  
  .layer {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    /*transition: ease .3s;*/
    z-index: -1;
  }
  
  .orange input:checked ~ .layer {
    background: #F4511E;
  }
  
  .amber input:checked ~ .layer {
    background: #FFB300;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
   
  &lt;div class="text"&gt;text&lt;/div&gt;
   
  &lt;label class="orange"&gt;
    &lt;input type="radio" name="color" value="orange"&gt;
    &lt;div class="layer"&gt;&lt;/div&gt;
    &lt;div class="button"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;/label&gt;
  
  &lt;label class="amber"&gt;
    &lt;input type="radio" name="color" value="amber"&gt;
    &lt;div class="layer"&gt;&lt;/div&gt;
    &lt;div class="button"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;/label&gt;
  
  
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>