*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; justify-content: center; margin: 10px; background-color: hsl(0, 0%, 12%); } section { background-color: transparent; display: flex; flex-flow: row wrap; align-items: flex-start; font-size: 0; height: 100%; width: 1000px; filter: contrast(1.2); } div { flex: 0 1 auto; color: hsl(0, 0%, 85%); background-color: hsl(210, 100%, 25%); min-width: min-content; } section:hover > div:not(:hover) { transition: all 0.50s ease; filter: grayscale(0.85); transform: scale(0.9); } section > div:hover { transition: all 0.15s ease; z-index: 100; box-shadow: 0 0 2px hsla(0, 0%, 0%, 0.5); transform: scale(1.1); } section:not(:hover) > div { transition: all 0.5s ease; }