Game - part 1

by cgreinhold

HTML

<input id="1" type="checkbox" />
<label for="1"></label>
<input id="2" type="checkbox" />
<label for="2"></label>
<input id="3" type="checkbox" />
<label for="3"></label>
<input id="4" type="checkbox" />
<label for="4"></label>
<input id="5" type="checkbox" />
<label for="5"></label>
<footer>
  frutas selecionadas
</footer>

CSS

body {
  color: white;
  text-align: center;
  user-select: none;
  font-weight: bold;
  font-family: Arial;
  overflow: hidden;
}

label[for="1"]:before {
  content: '🍎';
}

label[for="2"]:before {
  content: 'πŸ‡';
}

label[for="3"]:before {
  content: 'πŸ₯';
}

label[for="4"]:before {
  content: 'πŸ₯₯';
}

label[for="5"]:before {
  content: '🍍';
}

input:checked + label:before {
  content: 'πŸ₯™';
}

input:checked + label {
  pointer-events: none;
}

input {
  position: absolute;
  left: -100vw;
  zoom: 3;
}

input {
  counter-increment: frutas;
}
    
input:checked {
  counter-increment: frutas frutas-selecionadas;
}

footer {
  background-color: #f03a17;
  color: white;
  height: 1.5rem;
  width: 100vw;
  position: absolute;
  bottom: 0;
}

footer:before {
  content: counter(frutas-selecionadas) '/' counter(frutas) ' ';
}