.main { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); grid-template-rows: repeat(31, minmax(31px, 1fr)); gap: 5px; width: 100%; max-width: 100%; height: 100%; } .grid-item { display: flex; justify-content: center; align-items: center; background-color: var(--bg-primary); border: 2px solid var(--color-secondary); width: 88px; height: 31px; } .grid-item:hover img { color: white; text-decoration: underline; } .grid-item img { max-width: 100%; max-height: 100%; color: var(--color-accent) }