
/* Open buttons */
/* .openDialogBtn { */
  /* display: inline-block;
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #000;
  background: #eee;
  transition: background 0.2s ease; */
/* } */
.openDialogBtn[data-dialog="dialog1"] {
  background: #2563eb; /* blue */
}
.openDialogBtn[data-dialog="dialog1"]:hover {
  background: #1d4ed8;
}
.openDialogBtn[data-dialog="dialog2"] {
  background: #16a34a; /* green */
}
.openDialogBtn[data-dialog="dialog2"]:hover {
  background: #15803d;
}

/* Dialog container (backdrop) */
.dialog-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

/* Visible state */
.dialog-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hidden state */
.dialog-hidden {
  display: none;
}

/* Dialog content box */
.dialog-content {

  background: #fff;
  background: var(--bgcolor);
  color: var(--fgcolor);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  max-height: 80vh;          /* 👈 Limit height */
  overflow-y: auto;          /* 👈 Scroll inside */
}

.dialog-visible .dialog-content {
  transform: scale(1);
}

/* Headings and text */
.dialog-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.dialog-content p {
  margin-bottom: 1.5rem;
}

/* Close button */
.closeDialogBtn {
  background: var(--btncolor);
  background: #5391ad;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}