@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mic-pulsate-color {
  0% {
    background-color: #ffdcdc;
  }
  50% {
    background-color: #ff8585;
  }
  100% {
    background-color: #ffdcdc;
  }
}

.ltr {
  text-align: left;
}

.rtl {
  text-align: right;
}

.excalidraw-button {
  border: 0;
  padding: 0;
  margin: 0;
  background-color: transparent;

  width: 100%;
}

.excalidraw-button.selected {
  outline: 2px solid rgb(60, 132, 244);
  user-select: none;
}

.tree-view-output {
  display: block;
  background: #222;
  color: #fff;
  padding: 0;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  min-height: 100px;
  margin: 20px;
}

.github-node-container,
.inline-embed-container {
  display: inline-block;
  max-width: 100%;
  line-height: normal;
  vertical-align: text-bottom;
}

.github-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
}

.github-container .github-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 3px;
}

.github-container .github-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 15px;
  margin-right: 3px;
  height: 18px;
}

.github-container .github-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
  font-size: 14px;
  font-weight: bold;
  height: 18px;
  line-height: 18px;
  text-decoration: none;
}

table td .github-container .github-text {
  max-width: 300px;
}

.github-container .github-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-left: 4px;
}

.github-container:hover {
  cursor: pointer !important;
  background: rgba(148, 148, 148, 0.15);
  box-shadow: 0 0 0 3px rgba(148, 148, 148, 0.15);
  border-radius: 1px;
}

.global-loading {
  vertical-align: middle;
}

.global-loading span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  animation: be-rotate 1s linear infinite;
}

.global-loading span::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 2px solid #b9c6d4;
  animation: be-prixClipFix 2s linear infinite;

  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes be-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes be-prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}
li.embed-option-disabled > span:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(4, end) 900ms infinite;
  animation: ellipsis steps(4, end) 900ms infinite;
  content: '\2026'; /* ascii code for the ellipsis character */
  width: 0px;
}
@keyframes loading-ellipsis {
  to {
    width: 1.25em;
  }
}
@-webkit-keyframes loading-ellipsis {
  to {
    width: 1.25em;
  }
}

/* HeadingsIdPlugin */
.be-editable h1[id] > a:last-child,
.be-editable h2[id] > a:last-child,
.be-editable h3[id] > a:last-child,
.be-editable h4[id] > a:last-child,
.be-editable h5[id] > a:last-child,
.be-editable h6[id] > a:last-child {
  user-select: none;
  -webkit-user-select: none; /* 兼容 Safari */
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  color: #999;
  font-size: inherit;
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.3s ease;
  border: 0;
}

.be-editable h1[id]:hover a,
.be-editable h2[id]:hover a,
.be-editable h3[id]:hover a,
.be-editable h4[id]:hover a,
.be-editable h5[id]:hover a,
.be-editable h6[id]:hover a {
  opacity: 1;
}

/* https://github.com/francoischalifour/medium-zoom */
.medium-zoom-overlay,
.medium-zoom-image--opened {
  z-index: 99999;
}

.inline-translation-node {
  position: relative;
}

/* 紧挨的 2 个 TranslationNode 容器结点，分别用于包裹翻译结果结点和原文结点, 第 2 个 TranslationNode 是隐藏状态, 通过调换顺序来实现单个结点的原文/翻译切换 */
.inline-translation-node + .inline-translation-node {
  display: none;
}

.inline-translation-node-inline > * {
  border-bottom: 2px dashed #3890f9;
}

.bg-excalidraw {
  background-image: url(images/excalidraw.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
