﻿.switch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 50px;
    text-align: center;
    margin: -30px 0 0 -75px;
    background: #4cd964;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border-radius: 25px;
    font-weight: 800;
}
 
@media screen and (max-width: 768px) {
    .switch {
        top: 160%;
        left: 70%;
        width: 120px;
        height: 35px;
        font-weight: 800; 
    }
}


    .switch span {
        position: absolute;
        width: 20px;
        height: 4px;
        top: 50%;
        left: 50%;
        margin: -2px 0px 0px -4px;
        background: #fff;
        display: block;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -webkit-transition: all 0.2s ease;
        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        -ms-transition: all 0.2s ease;
        transition: all 0.2s ease;
        border-radius: 2px;
    }

        .switch span:after {
            content: "";
            display: block;
            position: absolute;
            width: 4px;
            height: 12px;
            margin-top: -8px;
            background: #fff;
            -webkit-transition: all 0.2s ease;
            -moz-transition: all 0.2s ease;
            -o-transition: all 0.2s ease;
            -ms-transition: all 0.2s ease;
            transition: all 0.2s ease;
            border-radius: 2px;
        }


.switch label {
    cursor: pointer;
    color: rgba(0,0,0,0.2);
    width: 60px;
    line-height: 50px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

label[for=yes-sterilized] {
    position: absolute;
    left: 0px;
    height: 20px;
}

label[for=no-sterilized] {
    position: absolute;
    right: 0px;
}

#no-sterilized:checked ~ .switch {
    background: #ff3b30;
}

    #no-sterilized:checked ~ .switch span {
        background: #fff;
        margin-left: -8px;
    }

        #no-sterilized:checked ~ .switch span:after {
            background: #fff;
            height: 20px;
            margin-top: -8px;
            margin-left: 8px;
        }

#yes-sterilized:checked ~ .switch label[for=yes-sterilized] {
    color: #fff;
}

#no-sterilized:checked ~ .switch label[for=no-sterilized] {
    color: #fff;
}




label[for=yes-vaccined] {
    position: absolute;
    left: 0px;
    height: 20px;
}

label[for=no-vaccined] {
    position: absolute;
    right: 0px;
}

#no-vaccined:checked ~ .switch {
    background: #ff3b30;
}

    #no-vaccined:checked ~ .switch span {
        background: #fff;
        margin-left: -8px;
    }

        #no-vaccined:checked ~ .switch span:after {
            background: #fff;
            height: 20px;
            margin-top: -8px;
            margin-left: 8px;
        }

#yes-vaccined:checked ~ .switch label[for=yes-vaccined] {
    color: #fff;
}

#no-vaccined:checked ~ .switch label[for=no-vaccined] {
    color: #fff;
}




label[for=yes-veterinaria] {
    position: absolute;
    left: 0px;
    height: 20px;
}

label[for=no-veterinaria] {
    position: absolute;
    right: 0px;
}

#no-veterinaria:checked ~ .switch {
    background: #ff3b30;
}

    #no-veterinaria:checked ~ .switch span {
        background: #fff;
        margin-left: -8px;
    }

        #no-veterinaria:checked ~ .switch span:after {
            background: #fff;
            height: 20px;
            margin-top: -8px;
            margin-left: 8px;
        }

#yes-veterinaria:checked ~ .switch label[for=yes-veterinaria] {
    color: #fff;
}

#no-veterinaria:checked ~ .switch label[for=no-veterinaria] {
    color: #fff;
}
