
/*  Toggle Switch  */

.oamax-toggleSwitch span span {
  display: none;
}

@media only screen {
  .oamax-toggleSwitch {
    width: 100%;
    height: 100%;
    display: inline-block;
    margin-top: 15px;
    position: relative;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    user-select: none;
  }

  .oamax-toggleSwitch * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  .oamax-toggleSwitch label,
  .oamax-toggleSwitch > span {
    line-height: 10px;
    height: 10px;
    vertical-align: middle;
  }
  .oamax-toggleSwitch input:focus ~ a,
  .oamax-toggleSwitch input:focus + label {
    outline: none;
  }
  .oamax-toggleSwitch label {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
  }
  .oamax-toggleSwitch input {
    position: absolute;
    opacity: 0;
    z-index: 5;
  }

  .oamax-toggleSwitch > span {
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    font-size: 34px;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
    color: #bbb;
  }

  .oamax-toggleSwitch > span span {
    position: absolute;
    z-index: 5;
    display: block;
    text-align: left;
    width: 100%;
    top: -1px;
    opacity: 0;
    text-shadow: #000 3px 3px 8px;
    font-size: 30px;
    color: #fff;
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;

  }


  /* The box */
  .oamax-toggleSwitch > span:before {
    content: '';
    display: block;
    width: 125px;
    height: 100%;
    position: absolute;
    left: 130px;
    top: -1px;
    background-color: #bbbbbb;
    border: 1px solid #ccc;
    border-radius: 45px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    box-shadow: inset 0 0 10px 10px #aaa;
  }


  /*The knob*/
  .oamax-toggleSwitch a {
    position: absolute;
    width: 45px;
    height: 45px;
    right: 50%;
    z-index: 4;
    display: block;
    padding: 0;
    left: 132px;
    border-style: solid;
    border-width: 6px;
    border-color: #ffffff;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background-color: #cc0033;
    top: 2px;
  }

  /*Off*/
  .oamax-toggleSwitch > span span:first-of-type {
    color: #fff;
    opacity: 1;
    left: 182px;
  }

  /*on */
  .oamax-toggleSwitch > span span:last-of-type {
    color: #fff;
    left: 150px;
    opacity: 0;
  }

  /*The activated knob*/
  .oamax-toggleSwitch input:checked ~ a {
    margin-left: -4px;
    left: 211px;
    background-color: #006161;
  }

  .oamax-toggleSwitch input:checked ~ span:before {

  }

  /*Hide off when checked*/
  .oamax-toggleSwitch input:checked ~ span span:first-of-type {
    opacity: 0;
  }

  /* On */
  .oamax-toggleSwitch input:checked ~ span span:last-of-type {
    opacity: 1;
  }
}


/*  End Toggle Switch  */