.popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; } .popup-fullscreen { width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 3; backdrop-filter: blur(8px); } @media (prefers-color-scheme: light) { .popup { background-color: transparent; } }