/* Hide the default checkbox */
.container21-1 input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
border-radius: 5px;
}
.container21-1 {
display: block;
position: relative;
cursor: pointer;
font-size: 20px;
user-select: none;
border-radius: 5px;
box-shadow: 2px 2px 0px rgb(183, 183, 183);
}
/* Create a custom checkbox */
.checkmark21 {
position: relative;
top: 0;
left: 0;
height: 1.3em;
width: 1.3em;
background-color: #ccc;
border-radius: 5px;
}
/* When the checkbox is checked, add a blue background */
.container21-1 input:checked ~ .checkmark21 {
box-shadow: 3px 3px 0px rgb(183, 183, 183);
transition: all 0.2s;
opacity: 1;
background-image: linear-gradient(45deg, rgb(100, 61, 219) 0%, rgb(217, 21, 239) 100%);
}
.container21-1 input ~ .checkmark21 {
transition: all 0.2s;
opacity: 1;
box-shadow: 1px 1px 0px rgb(183, 183, 183);
}
/* Create the checkmark21/indicator (hidden when not checked) */
.checkmark21:after {
content: "";
position: absolute;
opacity: 0;
transition: all 0.2s;
}
/* Show the checkmark21 when checked */
.container21-1 input:checked ~ .checkmark21:after {
opacity: 1;
transition: all 0.2s;
}
/* Style the checkmark21/indicator */
.container21-1 .checkmark21:after {
left: 0.45em;
top: 0.25em;
width: 0.25em;
height: 0.5em;
border: solid white;
border-width: 0 0.15em 0.15em 0;
transform: rotate(45deg);
}