#popup-overlay-veil { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 99; display: none; /* Hidden by default */ } .popup-window { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); z-index: 100; display: none; } .popup-btn { display: inline; padding: 5px; border-bottom: 3px; }