.HintViewer { background-color: rgba(255, 255, 255, 0.88); color: #868e96; /* OC: GRAY 6*/ font-size: 0.8rem; left: 50%; pointer-events: none; position: absolute; top: 54px; transform: translateX(calc(-50% - 16px)); /* 16px is half of lock icon */ } @media (max-width: 600px), (max-height: 500px) and (max-width: 1000px) { .HintViewer { position: static; margin-top: 0.5rem; text-align: center; } }