﻿@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
*, *:before, *:after {
    box-sizing: border-box;
}

input[switch] {
  display: none;
}
input[type="radio"].type_Switch + label {
    font-size: 1em;
    line-height: 1;
    display: inline-block;
    margin-left: -0.3em;
    width: 4em;
    height: 2em;
    position: relative;
    background-color: #ddd;
    background-image: none;
    border-radius: 1em;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2) inset;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}
input[type="checkbox"].type_Switch + label {
    font-size: 1em;
    line-height: 1;
    display: inline-block;
    margin-left: -0.3em;
    width: 4em;
    height: 2em;
    position: relative;
    background-color: #ddd;
    background-image: none;
    border-radius: 1em;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2) inset;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}
label.for_CheckBox {    
  -webkit-transform: translateY(0.4em);
      transform: translateY(0.4em);
  left: 3.3em;
  font-size: 0.8em;
  color: #808080;
}

input[switch].type_Switch + label:before {
  /* Label */
  text-transform: uppercase;
  color: #b7b7b7;
  content: attr(data-off-label);
  display: block;
  font-family: inherit;
  font-family: FontAwesome, inherit;
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1.74rem;
  position: absolute;
  right: 0.21667rem;
  margin: 0.21667rem;
  top: 0;
  text-align: center;
  min-width: 1.66667rem;
  overflow: hidden;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}
input[switch].type_Switch + label:after {
  /* Slider */
  content: '';
  position: absolute;
  left: 0.17em;
  top: 0.17em;
  background-color: #f7f7f7;
  box-shadow: none;
  border-radius: 1em;
  height: 1.7em;
  width: 1.7em;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}
input[switch]:checked + label {
  background-color: lightblue;
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.2));
  background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.2));
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3) inset;
}
input[switch]:checked + label:before {
  color: #fff;
  content: attr(data-on-label);
  right: auto;
  left: 0.21667rem;
}
input[switch]:checked + label:after {
  left: 2.16667rem;
  background-color: #f7f7f7;
  box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.3);
}

/* CheckBox (Tiny) */

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    display: inline-block;
    width: 40px;
    height: 20px;
    position: relative;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    margin: 0px;
    box-sizing: border-box;
    cursor: pointer;
}


label.checker {
    font-family: inherit;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.74rem;
    left: 0px;
  -webkit-transform: translateY(7px);
          transform: translateY(7px);
}


input[type="checkbox"] + label:after {
    content: '';
    display: block;
    position: absolute;
    background: #ddd;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
}

.check_Square:checked + label:after {
    background: #5CB85C;
    left: calc(100% - 14px);
}

.check_Square + label {
    border: 2px solid #ddd;
    border-radius: 40px;
}

