/* Overlay */
#modalOverlay {
  visibility: hidden;        /* <-- stays hidden on load */
  opacity: 0;                /* <-- invisible */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;

  display: flex;             /* <-- needed for bottom positioning */
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 40px;

  transition: opacity 0.25s ease;
}

#modalOverlay.show {
  visibility: visible;       /* <-- becomes visible */
  opacity: 1;                /* <-- fades in */
}

/* Modal box */
#modalBox {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  width: 520px;
  max-width: 90%;
  position: relative;
}

/* Close button */
#closeModal {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
  color: Black;
}

/* Copy button */
#copyBtn {
  background: SteelBlue;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 12px;
}

/* Code block */
#codeBlock {
  background: #1e1e1e;
  color: #dcdcdc;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  white-space: pre-wrap;
  text-align:left;
}

/* Simple syntax highlighting */
code .tag      { color: #569cd6; }
code .attr     { color: #9cdcfe; }
code .value    { color: #ce9178; }

/* Instructions text */
#instructions {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.4;
  color: Black;
}