﻿/*https://codepen.io/foxeisen/pen/mMRmdx*/

.checkbox-block {
    display: flex;
    justify-content: space-between;
}

.checkbox-effect:not(:checked),
.checkbox-effect:checked {
    position: absolute;
    left: -9999px;
}

label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

/* checkbox effect #1 */
.checkbox-effect-1:not(:checked) + label:before,
.checkbox-effect-1:checked + label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 10px;
}

.checkbox-effect-1:not(:checked) + label:after,
.checkbox-effect-1:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 11px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 2px;
    color: #fff;
    transform-origin: center center;
}

.checkbox-effect-1:not(:checked) + label:after {
    transform: scale(0);
}

.checkbox-effect-1:checked + label:before {
    background-color: #1b998b;
    border-color: #1b998b;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}

.checkbox-effect-1:checked + label:after {
    transform: scale(1);
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

/* checkbox effect #2 */
.checkbox-effect-2:not(:checked) + label:before,
.checkbox-effect-2:checked + label:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 10px;
    margin-right: 10px;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

.checkbox-effect-2:not(:checked) + label:after,
.checkbox-effect-2:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 18px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0px;
    color: #00711b;
}

.checkbox-effect-2:not(:checked) + label:after {
    opacity: 0;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}

.checkbox-effect-2:checked + label:before {
    opacity: 0;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}

.checkbox-effect-2:checked + label:after {
    opacity: 1;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

/* checkbox effect #3 */
.checkbox-effect-3 + label {
    overflow: hidden;
}

.checkbox-effect-3:not(:checked) + label:before,
.checkbox-effect-3:checked + label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 10px;
}

.checkbox-effect-3:not(:checked) + label:after,
.checkbox-effect-3:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 11px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 3px;
    color: #fd5200;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0, 1.31, 1, 1);
    transition-delay: 0s;
}

.checkbox-effect-3:not(:checked) + label:after {
    left: -52px;
}

.checkbox-effect-3:checked + label:after {
    left: 3px;
}
heckbox effect #4 */
.checkbox-effect-4:not(:checked) + label:before,
.checkbox-effect-4:checked + label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 10px;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

.checkbox-effect-4:not(:checked) + label:after,
.checkbox-effect-4:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 22px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 2px;
    color: #72195a;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
    transform-origin: center center;
    opacity: 0;
}

.checkbox-effect-4:not(:checked) + label:after {
    transform: scale(0);
}

.checkbox-effect-4:checked + label:before {
    transform: scale(0);
    opacity: 0;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}

.checkbox-effect-4:checked + label:after {
    transform: scale(1);
    opacity: 1;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.57, 1.9, 0, 1.52);
    transition-delay: 0.2s;
}

/* checkbox effect #5 */
.checkbox-effect-5:not(:checked) + label:before,
.checkbox-effect-5:checked + label:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 10px;
    margin-right: 20px;
    transform-origin: center center;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}

.checkbox-effect-5:not(:checked) + label:after,
.checkbox-effect-5:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 10px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 1px;
    color: #fff;
}

.checkbox-effect-5:not(:checked) + label:after {
    opacity: 0;
}

.checkbox-effect-5:checked + label:before {
    transform: scale(1.5);
    background-color: #275dad;
    border-color: #275dad;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.57, 1.9, 0, 1.52);
    transition-delay: 0s;
}

.checkbox-effect-5:checked + label:after {
    opacity: 1;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

/* checkbox effect #6 */
.checkbox-effect-6:not(:checked) + label:before,
.checkbox-effect-6:checked + label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #5a5a5a;
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 10px;
}

.checkbox-effect-6:not(:checked) + label:after,
.checkbox-effect-6:checked + label:after {
    content: "";
    font-family: fontawesome;
    font-size: 21px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: -2px;
    left: 1px;
    color: #c42021;
    text-shadow: 0px -1px 0px #fff;
    transform-origin: center center;
}

.checkbox-effect-6:not(:checked) + label:after {
    transform: scale(1, 0);
}

.checkbox-effect-6:checked + label:after {
    transform: scale(1, 1);
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
}