blocks { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; height: auto; } blocks>cntr { display: flex; flex-direction: row; margin-left: 0 } blocks block { position: relative; z-index: 1; } blocks veil { position: absolute; top: 0; width: 100%; height: 100%; z-index: 2; } blocks dots { display: flex; margin: 5px auto; align-self: center; } blocks dots circ { border: 0px solid black; border-radius: 50%; cursor: pointer; margin: 0 5px; background: grey; } blocks dots circ dot { border-radius: 50%; } blocks dots circ.tiny { background: black; } blocks dots circ.tiny[chosen=true] { border-width: 0; } blocks dots circ[chosen=true] dot { margin: 0px; border-radius: 50%; background: ; } blocks dots circ.tiny[chosen=true] dot { margin: 0; } arrow { display: flex; align-items: center; font-size: 25px; } @media screen and (max-width:640px) { blocks dots * { background: grey !important } blocks dots circ { border-width: 0px; margin: 0 3px; } blocks dots circ dot { border: 0px solid black } blocks dots circ[chosen=true], dots circ[chosen=true] dot { background: !important; } blocks dots circ[chosen=true] dot { width: 100%; height: 100%; margin: 0; } }