.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; } .modal { background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 600px; position: relative; } .close-button { position: absolute; top: 10px; right: 10px; background: transparent; border: none; font-size: 1.5em; cursor: pointer; &:hover { color: #ff9908; } }