@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

.st-code {
  display: flex;
  flex-direction: column;
  --st-color: #f9fafc;
  --st-monospace-font: 'Monaco', 'Source Code Pro', 'Consolas', monospace;
  --st-bg: #27292e;
  --st-bg-light: #373a3f;
  --st-border-color: rgb(73, 76, 95);
  width: 100%;
  font-size: 0.875rem;
  font-family: 'Soehne Kraftig';
  line-height: 1.35;
  color: var(--st-color);
  border: 1px solid #555;
  background: var(--st-bg);
  border-radius: 8px;
  box-shadow: 0px 1px 3px 1px rgba(17, 19, 33, 0.4);
  scrollbar-color: #5a5d66 transparent;
}

#st-terminal {
  height: 450px;
  box-shadow:
    0px 4px 8px -2px rgba(15, 17, 26, 0.16),
    0px 10px 15px -4px rgba(15, 17, 26, 0.16),
    0px 30px 32px -15px rgba(15, 17, 26, 0.16),
    0px 60px 64px -25px rgba(15, 17, 26, 0.16);
}

.st-code-content kw {
  color: #e099eb;
}
.st-code-content fn {
  color: #74c2fa;
}
.st-code-content str {
  color: #4dd891;
}
.st-code-content id {
  color: #ffd569;
}
.st-code-content sp {
  color: #62e7d3;
}
.st-code-content const {
  color: #b486fd;
}
.st-code-content comment {
  color: #8f9397;
}

.st-code-content {
  padding: 0.75rem;
  overflow: auto;
  flex: 1;
}

.st-code-content .line {
  display: block;
  font-family: var(--st-monospace-font);
  margin: 0;
  white-space: pre;
}

.st-code-content .line-number {
  display: inline-block;
  font-family: var(--st-monospace-font);
  width: 2ch;
  text-align: right;
  margin-right: 1ch;
  opacity: 0.5;
  user-select: none;
}

.st-code-content .st-completion-heading {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: var(--st-bg-light);
}

.st-code-content .st-completion-items {
  padding: 0.25rem 0;
}

.st-code-content .st-completion-item {
  padding: 0.25rem 0.5rem;
  white-space: pre-wrap;
}

.st-code-content .st-completion-item.is-active {
  background-color: var(--st-bg-light);
}

.st-code-content .st-completion-icon {
  display: inline-block;
  vertical-align: middle;
  margin: -0.25rem 0;
}

.st-code-content .st-completion-description {
  padding: 0.5rem 0.5rem;
  border-top: 1px solid var(--st-border-color);
}

.st-code-content .st-cursor {
  font-family: var(--st-monospace-font);
  height: calc(1em + 2px);
  color: white;
  position: absolute;
  border-left: 1px solid;
  font-size: 1em;
  animation: st-cursor-blinker 1s step-start infinite;
}

.st-code-content span.hover {
  background-color: var(--st-bg-light);
  outline: 1px solid #aac;
}

.st-code-content span.hover.is-active {
  background-color: var(--st-bg);
}

.st-code-content .st-snippet-window {
  font-size: 0.875rem;
  font-family: var(--st-monospace-font);
  display: block;
  background-color: var(--st-bg);
  border: 1px solid var(--st-border-color);
  border-radius: 5px;
  min-width: 20ch;
  max-width: 50ch;
  overflow-wrap: break-word;
  box-shadow: 0px 1px 2px 1px rgba(17, 19, 33, 0.3);
  pointer-events: all;
  transform-origin: 2em 2em;
}

.st-code-content .st-snippet-window.is-pop {
  animation: st-snippet-window-pop-in 0.3s forwards ease;
}

@keyframes st-snippet-window-pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  75% {
    transform: scale(1.02);
    opacity: 0.75;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes st-cursor-blinker {
  50% {
    opacity: 0;
  }
}
