.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}


@keyframes uncover {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.dialog-content {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 5px;
  max-width: 50%;
  max-height: 100%;
  width: 100%;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  animation: uncover 0.5s ease forwards;
  z-index: 1100;
}


.dialog-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border: 3px solid #000; 
  border-radius: 50%;
  background: #ff1e1e; 
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 4px 4px 0px #000;

  text-shadow: 2px 2px 0px #000;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dialog-close-btn:hover {
  background: #ffcc00;
  color: #000;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 6px 6px 0px #d32f2f;
}



.backdrop-visible {
  opacity: 1;
  visibility: visible;
}

.backdrop-hidden {
  opacity: 0;
  visibility: hidden;
}

.content-visible {
  animation: uncover 0.5s ease forwards;
}

.content-hidden {
  opacity: 0;
  transform: translateY(-100%);
  animation: none;
}

/* General Breakpoints */
@media (max-width: 1200px) {
  .dialog-content {
    max-width: 75%;
    max-height: 100%;
    padding: 0px;
  }
}

@media (max-width: 768px) {
  .dialog-content {
    max-width: 90%;
    max-height: 80%;
    padding: 0px;
  }
}

@media (max-width: 576px) {
  .dialog-content {
    max-width: 95%;
    max-height: 80%;
    padding: 0px;
  }
  .dialog-close-btn {
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 375px) {
  .dialog-content {
    max-width: 100%;
    max-height: 90%;
    padding: 0px;
  }
}
