.overlay { width: 100%; height: 100%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( to top, rgba(32, 31, 49, 1) 0%, rgba(32, 31, 49, 0) 20%, rgba(32, 31, 49, 0) 100% ); z-index: 50; } .dot { width: 5px; height: 5px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: inline-block; }