﻿.container-label
{
    display: inline-block;
    position: relative;
    padding: 0.25em 0.25em 0.25em 2.25em;
    cursor: pointer;
    font-size: 1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #727272;
    margin: 0 4px 0 0;
    font-weight: normal;
    vertical-align: middle;
}

.container-label input, .container-label div.checkbox
{
    position: absolute;
    opacity: 0;
}

.checkmark 
{
    position: absolute;
    top: 0.25em;
    left: 0.25em;
    height: 1.5em;
    width: 1.5em;
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #a3acac;
    transition: all .1s ease
}

.container-label:hover input ~ .checkmark 
{
    background-color: #efe;
}

.container-label input:checked ~ .checkmark 
{
    background-color: #494;
}


.container-label:hover div.checkbox ~ .checkmark 
{
    background-color: #efe;
}

.container-label div.checkbox-checked ~ .checkmark 
{
    background-color: #494;
}

.container-label input:disabled ~ .checkmark
{
    background-color: red !important;
    border: #ccc 1px Silver;
    height: 100px;
    margin: 50px;
    font-size: 50pt;
}

.checkmark:after 
{
    content: "";
    position: absolute;
    display: none;
}

.container-label input:checked ~ .checkmark:after, .container-label input[disabled='disabled'] ~ .checkmark:after 
{
    display: block;
}

.container-label .checkmark:after 
{
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: all .25s ease;
}

/*
 *
 */

.checkbox-nice 
{
    position: relative;
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    padding-left: 5px;
    height: 24px;
}

.checkbox-nice input[type=checkbox] {
    visibility: hidden;
}

.checkbox-nice label 
{
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    margin-left: 10px;
    font-weight: normal;
    color: inherit;
}

.checkbox-nice.checkbox-inline>label 
{
    margin-left: 16px;
}

.checkbox-nice label:before {
    cursor: pointer;
    position: absolute;
    width: 22px;
    height: 22px;
    left: 1px;
    top: 1px;
    background: #ae8;
    content: "";
    border: 1px solid Gray;
    border-radius: 3px;
    background-clip: padding-box;
    transition: background .2s;
}

.checkbox-nice label:after 
{
    opacity: 0;
    content: '';
    position: absolute;
    width: 12px;
    height: 7px;
    background: transparent;
    top: 7px;
    left: 6px;
    border: 3px solid #252;
    border-top: none;
    border-right: none;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-nice label:hover::before 
{
    background: #b8ff90;
    transition: background .2s;
}


.checkbox-nice label:hover::after 
{
    opacity: 0.3;
}

.checkbox-nice input[type=checkbox]:checked+label:after 
{
    opacity: 1;
}

.checkbox-nice span>input[type=checkbox]:checked+label:after 
{
    opacity: 1;
}
