.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--modal-background); display: flex; justify-content: center; align-items: center; } .modal { background: var(--modal-background); padding: 20px; /* padding-right: 3%; */ border-radius: 8px; /* box-shadow: 0 0.3vh 2vh #1E1E1E; */ max-width: 400px; width: 100%; color: var(--modal-text); } .modal h2 { margin-bottom: 20px; text-align: center; font-size: 4vh; } .modal label { display: block; margin-bottom: 5px; color: var(--modal-text); font-size: larger; font-weight: bolder; padding-bottom: 1%; } .modal input { width: 94%; /* max-width: fit-content; */ padding: 3%; padding-top: 3%; padding-bottom: 3%; margin-bottom: 10px; border: 1px solid #ccc; /* text-align: start; */ border-radius: 4px; font-size: larger; background-color: var(--modal-background); color: var(--modal-text); } .modal button { /* padding: 10px 20px; */ margin-top: 5vh; margin-bottom: 5px; background: var(--modal--btn-background); color: var(--text-color); border: none; border-radius: 4px; box-shadow: 0 0.3vh 1vh #2c2c2c; cursor: pointer; width: 100%; padding-top: 4%; padding-bottom: 4%; transition: 0.2s; } .modal button:hover { background: var(--hover-button); } .error { color: red; margin-bottom: 10px; }