
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 999;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  background: #1e1e1e;
   background: #f7f4f4;
  color: #000000;
  padding: 16px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition:
    transform 220ms cubic-bezier(.2,.9,.3,1.2),
    opacity 200ms ease;
  z-index: 1000;
}

.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-title {
  width:95%;
}

.modal-close {
  width:5%;
  text-align:right;
}

.modal-close2 {
  border: 1px solid #000000;
}

.modal-header {
  width: 100%;
}


.fade5 {
  animation: fadeOut 0.8s ease forwards;
  animation-delay: 5s;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
