.dialog { z-index: 1000; display: flex; position: relative; right: 0; left: 0; top: 20px; margin-right: auto; margin-left: auto; margin-top: 50px; height: 690px; width: 1024px; background-color: #fff; padding: 12px; box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.349), 0 13px 19px 2px rgba(0, 0, 0, 0.349), 0 5px 24px 4px rgba(0, 0, 0, 0.349); } .overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.705); z-index: 999; }