:root {
  --bg: lightgray;
}

html {
  height: 100%;
}
body {
  background-color: var(--bg);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.board {
  background-color: #00000011;
  border-radius: 35px;
  box-shadow: 0 0 2px #00000066;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.row.current {
  position: relative;
  --height: 70px; /* magic number */
  height: var(--height);
  border-radius: calc(var(--height) / 2);
  background-color: #e1e1e1;
  box-shadow: 0 0 4px 0px #00000022;
}

.row.current:not(:empty):after {
  content: "undo";
  position: absolute;
  right: 0;
  margin-right: 18px;
  font-size: 40px;
  font-family: arial;
  color: #c5c5c5;
  /* text-shadow: 0px 0px 1px #000000aa; */
  text-transform: uppercase;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.check {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  width: 60px;
}
.cell {
  --size: 60px;
  --blick: 20px;
  height: var(--size);
  width: var(--size);
  background-color: grey;
  margin: 5px;
  border-radius: 50%;

  background-image: radial-gradient(
      circle at var(--blick) var(--blick),
      white 0%,
      transparent 10%
    ),
    radial-gradient(
      #ffffff4d 0%,
      #ffffff00 28%,
      #08080882 62%,
      white 65%,
      black 73%
    ),
    linear-gradient(var(--color), var(--color));
}
.board .cell {
  animation: ball-add 150ms ease-in-out;
  animation-fill-mode: both;
}
.controls .cell:hover {
  animation: 300ms filtering ease-in-out;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
.mini {
  --size: 20px;
  --blick: 5px;
  background-image: radial-gradient(
      circle at var(--blick) var(--blick),
      white 0%,
      transparent 10%
    ),
    radial-gradient(#ffffff4d 0%, #ffffff00 28%, #08080882 62%, black 73%),
    linear-gradient(var(--color), var(--color));
}
[color="a"] {
  --color: #bf12dd;
}
[color="b"] {
  --color: greenyellow;
}
[color="c"] {
  --color: #24dcf6;
}
[color="d"] {
  --color: #e80c27;
}
[color="e"] {
  --color: #ff5400;
}
[color="f"] {
  --color: #ffe000;
}
.bull {
  --color: black;
}
.cow {
  --color: white;
}
.controls .cell {
  --size: 50px;
  --blick: 15px;
}
@keyframes filtering {
  0% {
    filter: brightness(0.9);
  }
  100% {
    filter: brightness(1.2);
  }
}
@keyframes ball-add {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
