/* When the checkbox is checked, add a blue background */
.container2 input:checked ~ .checkmark2 {
background-image: linear-gradient(#b9e9b3,#a8e4a0)
}
/* Create the checkmark2/indicator (hidden when not checked) */
.checkmark2:after {
content: "";
position: absolute;
display: none;
}
/* Show the checkmark2 when checked */
.container2 input:checked ~ .checkmark2:after {
display: block;
}