.modal { z-index: 99; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; padding: 5%; background: transparent; } .modalContainer { background: #272b30; color: #ccc; width: 100%; height: 100%; padding: 20px; border-radius: 20px; overflow-y: auto; }