.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: flex-end;
  z-index: 999;
}

/* Modal Content */
.modal-content {
  background: white;
  width: 100%;
  max-width: 540px;
  height: 50vh;
  min-height: fit-content;
  padding: 40px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.modal-content .row {
  display: flex;
  justify-content: center;
}
.modal-image {
  width: 138px;
}

.modal-message {
  font-size: 16px;
  margin: 0;
}

.modal-overlay .modal-content {
  animation: slideUp 0.3s ease-out forwards;
}

@media (min-width: 541px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: 16px;
    max-height: 80%;
    height: 40vh;
  }
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (min-width: 541px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: 16px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.modal-overlay.closing .modal-content {
  animation: slideDown 0.3s ease-in forwards;
}
