:root {
  --font-sans: ui-sans-serif, -apple-system, system-ui, Segoe UI, "Geist Sans",
    Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Helvetica,
    Apple Color Emoji, Arial, Segoe UI Emoji, Segoe UI Symbol;
  --font-serif: ui-serif, Charter, "Bitstream Charter", "Sitka Text", Cambria,
    serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
    Menlo, Consolas, "DejaVu Sans Mono", "Consolas Mono", monospace;

  --foreground: 13, 13, 14;
  --background: 255, 255, 255;

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: rgb(var(--foreground));
  background-color: rgb(var(--background));
      background-size: 100% 500px;
    background-position-x: center;
    background-position-y: top;
    background-repeat: no-repeat;
    background-image: radial-gradient(127.13% 100% at 50% 0%, #C7EBFF 0%, #FFFFE6 54%, #FFF 100%);
}

main {
  max-width: 650px;
  padding: 10px;
  margin: 4em auto;
  line-height: 1.75;
  font: 400 1rem/1.5 var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
textarea {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1 {
  font-weight: 500;
  font-size: 2.4em;
}

code {
  padding: 0.15rem 0.35rem;
  background: rgba(var(--foreground), 0.04);
  border-radius: 0.25rem;
  font: 400 0.875rem/1.6 var(--font-mono);
}

pre {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

pre > code {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--foreground), 0.04);
  overflow-x: auto;
}

code input {
  font-family: var(--font-mono);
  background-color: transparent;
  border: none;
  padding: 0px;
  min-width: 1px;
  max-width: 300px;
  box-sizing: content-box;
  margin: 0;
  outline: none;
  font-size: inherit;
}

em,
i:not(pre i) {
  font-family: var(--font-serif);
}

a {
  text-decoration: underline;
  text-decoration-color: rgba(var(--foreground), 15%);
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
  transition: text-decoration-color 0.25s;
  color: var(--foreground);
}

a:hover {
  text-decoration-color: var(--foreground);
}

hr {
  width: 100%;
  border: none;
  border-top: 1px dashed rgba(var(--foreground), 0.14);
}

li::marker {
  color: rgba(var(--foreground), 0.45);
}

a:not(.no-newtab-arrow)[target*="blank"]::after {
  content: "↗";
  position: relative;
  margin-right: 0.2em;
  top: -0.2em;
  left: 0.2em;
  font-size: 0.9em;
  font-weight: 400;
  transition: color 0.2s;
  text-decoration-color: rgb(var(--background)) !important;
  text-decoration: underline;
}

a:not(.no-newtab-arrow)[target*="blank"]:hover::after {
  color: rgba(var(--foreground));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 {
  font: 400 1.5rem/1.25 var(--font-serif);
}

h2 {
  font: 400 1.25rem/1.35 var(--font-serif);
}

h3 {
  font: 400 1.125rem/1.4 var(--font-serif);
}

bloquote {
  font-family: var(--font-serif);
  font-style: italic;
  margin-left: 0px;
  border-left: 3px solid rgba(var(--foreground), 0.3);
  padding-left: 10px;
  font-size: 1.1rem;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
}

td,
th {
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: start;
  padding: 0.5rem;
}

th {
  background-color: rgba(var(--foreground), 0.1);
  font-weight: bold;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #00000003;
}

table caption {
  opacity: 0.9;
  max-width: 500px;
  margin: 1em auto;
}

.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(var(--foreground), 0.1);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.preview h3 {
  margin: 0px;
  margin-top: -23px;
  width: fit-content;
  background-color: rgb(var(--background));
  padding: 0px 10px;
  font-family: var(--sans);
  font-size: 15px;
}

#bot {
  display: inline-block;
  user-select: none;
  vertical-align: top;
}
#bot > span {
  position: relative;
  top: auto;
  bottom: auto;
}
#bot > span > span {
  position: relative;
  display: inline-block;
  width: 0.6em;
  text-align: center;
}
#bot > span > span.eye::before {
  content: "•";
}
#bot > span > span#mouth::before {
  position: relative;
  content: "_";
  display: inline-block;
}

#bot.laugh2 > span > span.eye::before {
  content: "^" !important;
}
#bot.laugh2 > span > span#mouth::before {
  transform: none !important;
  bottom: 0px !imporant;
  right: 0px !imporant;
}
#bot.laugh1 > span > span#mouth::before {
  content: "‿" !important;
  transform: none !important;
  bottom: 0px !imporant;
  right: 0px !imporant;
  top: 0.1em;
}
#bot.blink > span > span.eye::before {
  content: "-";
}
#bot.wink > span > span#lefteye::before {
  content: "-";
}
#bot.meh > span > span#mouth::before {
  transform: rotate(-7deg);
  bottom: 0.1em;
  right: 0.05rem;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--background));
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--foreground), 0.3);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--foreground), 0.6);
}
