.case { position: relative; width: 58px; height: 58px; border: 2px solid black; display: flex; justify-content: center; align-items: center; background-color: white; } .case:not(:last-child) { border-right: none; } .case > .circle { width: 3em; height: 3em; } .case.inactive { border: 0px; box-shadow: 0px 0px 3px 0px #000; background-color: #888888; } .case.inactive.lightgreen { background-color: var(--color-lightgreen); } .case.inactive.lightred { background-color: var(--color-lightred); } @media (max-width: 720px) { .case { height: calc(58px * 0.8); width: calc(58px * 0.8); } }