﻿.elements {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default radio button */
    .elements input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Create a custom radio button */
.elements-radio {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

.elements-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.elements:hover input ~ .elements-radio {
    background-color: #ccc;
}

.elements:hover input ~ .elements-checkbox {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.elements input:checked ~ .elements-radio {
    background-color: #0d5c78;
}

.elements input:checked ~ .elements-checkbox {
    background-color: #0d5c78;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.elements-radio:after {
    content: "";
    position: absolute;
    display: none;
}

.elements-checkbox:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.elements input:checked ~ .elements-radio:after {
    display: block;
}

.elements input:checked ~ .elements-checkbox:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.elements .elements-radio:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.elements .elements-checkbox:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    background: white;
}
