.mermaid {
  display: flex;
  justify-content: center;
  margin: 2em auto;
  width: 80%;
  max-width: 100%;
}

/* Fullscreen dark overlay with blur */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3); /* translucent black */
}

/* Modal content box */
.custom-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 24px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.custom-modal-close {
  color: #000;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
  color: #666;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
