:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;

  --alt-bg-color: #151414;
  --alt-fg-color: #fafafa;
}

body {
  margin: 0;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;

    --alt-bg-color: #fafafa;
  }
  a:hover {
    color: #747bff;
  }
}

.tiptap-editor {
  padding: 0.5rem;
}

.ProseMirror {
  background-color: var(--alt-bg-color);
  padding: 8px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.tiptap-math.latex {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.tiptap-math.latex.ProseMirror-selectednode {
  outline: 1px solid black;
}

.tiptap-math.result {
  background-color: #78e65618;
  border-bottom: rgb(68, 194, 68) 2px solid;
  padding-left: 4px;
  padding-right: 2px;
  height: fit-content;
}
