@font-face {
  font-family: "ABC Whyte Plus Variable";
  src: url("fonts/ABCWhytePlusVariable-Trial.ttf") format("truetype-variations");
  font-weight: 200 1000;
  font-style: oblique -12deg 0deg;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgb(223,223,223) 100%);
}

#editor-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#flow-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#flow-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  transition: height 0.25s ease-out, background 0.5s ease-out;
}

#toolbar{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

#toolbar button{
  font-family: system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
}

#toolbar button:active{
  transform: translateY(1px);
}

#editor {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  padding: 40px;
  box-sizing: border-box;

  font-family: "ABC Whyte Plus Variable", system-ui, sans-serif;

  font-size: 32px;
  line-height: 1.6;
  color: #000;
  background: transparent;
  outline: none;

  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

  text-rendering: optimizeLegibility;
}

#editor span{
  display: inline;
}

#speed-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  background: rgba(0,0,0,0.45);
  padding: 12px 28px;
  border-radius: 14px;
  font-family: system-ui, sans-serif;
  font-size: 22px;
  color: white;
  backdrop-filter: blur(10px);
  z-index: 9999;
}
#editor span.heat {
  padding: 0 2px;
  border-radius: 6px;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
#toolbar button.is-off{
  opacity: 0.65;
}