.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; background-color: rgba(0, 0, 0, 0.1); } .overlay-content { height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; }