* {
  box-sizing: border-box;
}
html {
  height: 100%;
}
@font-face {
  font-family: zalgo;
  src: url(./fonts/zalgo/zalgo.otf);
  size-adjust: 175%;
}
@font-face {
  font-family: sho;
  src: url(./fonts/sho/sho.otf);
  size-adjust: 175%;
}
@font-face {
  font-family: tic80;
  src: url(./fonts/tic80/tic-80-wide-font.otf);
  size-adjust: 75%;
}
@font-face {
  font-family: opendyslexic;
  src: url(./fonts/opendyslexic/OpenDyslexic-Regular.otf);
  size-adjust: 75%;
}
dialog {
  font-family: monospace;
}
body {
  background-color: #000;
  color: #fff;
  margin: 0;
  font-family: var(--font-family);
  height: 100%;
  overscroll-behavior-x: contain;
  display: flex;
  flex-direction: column;
}
h1 {
  color: #fff;
}
dialog h1 {
  color: #000;
}
.slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  gap: 4px 8px;
  padding: 4px;
}
.hidden {
  display: none !important;
}
.target {
  width: 90px;
  text-overflow: ellipsis;
}
@media screen and (max-width: 750px) {
  .slots {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-scoller {
    overflow: hidden;
  }
}
.tabs {
  display: none;
}
@media screen and (min-width: 751px) {
  body.tabbed-mode {
    overflow: hidden;
  }
  body.tabbed-mode .tabs {
    display: grid;
    grid-template-areas: "left right";
    border-bottom: 0;
    grid-template-columns: 50% 50%;
    height: 24px;
    gap: 0;
  }
  body.tabbed-mode .tabs .left {
    grid-area: left;
  }
  body.tabbed-mode .tabs .right {
    grid-area: right;
  }
  body.tabbed-mode .tabs .tab.active {
    background-color: #ffffffa8;
    color: #000;
  }
  body.tabbed-mode .slots {
    display: grid;
    grid-template-areas: "left right";
    grid-template-columns: 50% 50%;
    height: calc(100vh - 24px);
    gap: 0;
  }
  body.tabbed-mode .slot.left {
    grid-area: left;
  }
  body.tabbed-mode .slot.right {
    grid-area: right;
  }
  body.tabbed-mode .slot {
    opacity: 0.5;
    transform: scale(0.95);
    filter: blur(1.5px);
    z-index: 10;
    pointer-events: none;
    overflow: scroll;
  }
  body.tabbed-mode .slot.active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    z-index: 20;
    pointer-events: initial;
  }
  body.boxed-mode {
    overflow: hidden;
  }
  body.boxed-mode .cm-scoller {
    overflow: auto !important;
  }
  body.boxed-mode .slots {
    flex: 1 1 auto;
    flex-grow: 0;
    overflow: hidden;
  }
  body.boxed-mode .slot {
    overflow: hidden;
    position: relative;
    min-width: 0;
  }
  body.boxed-mode .slot .editor {
    height: 100%;
    overflow: hidden;
  }
  body:not(.boxed-mode) .cm-scoller {
    overflow: hidden;
  }
}
.slot {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}
.slot header {
  padding: 0 4px;
  align-self: flex-start;
  flex: 0 1 auto;
  z-index: 998;
  width: 100%;
  display: flex;
  gap: 4px;
}
.slot header .slot-id {
  display: flex;
  align-items: center;
  background: #000000b3;
  padding: 0 4px;
}
.slot .error {
  background-color: #000;
  font-family: var(--font-family);
  padding: 8px;
  margin: 0;
  border: 2px solid white;
  color: tomato;
  position: sticky;
  bottom: 0;
}
.slot .error-inline {
  background-color: #000;
  font-family: var(--font-family);
  margin: 0;
  border-top: 2px dotted tomato;
  color: tomato;
  position: relative;
}
.slot.inactive {
  opacity: 75%;
  filter: grayscale(1);
}
#global-error {
  background-color: #000;
  font-family: var(--font-family);
  padding: 8px;
  margin: 0;
  text-align: center;
  color: tomato;
  position: fixed;
  bottom: 0;
}
:root {
  --foreground: white;
}
.editor {
  flex-grow: 1;
  background: transparent;
}
.cm-editor {
  height: 100%;
  background: transparent;
}
.cm-scroller {
  padding: 0 4px;
  cursor: text;
  font-family: var(--font-family) !important;
}
.cm-content {
  padding-bottom: 16px !important;
}
.cm-gutters {
  background: transparent !important;
  margin-right: 8px;
}
.cm-focused {
  outline: none !important;
}
.cm-line {
  font-size: 105%;
  background: #000000b3;
  max-width: fit-content;
  padding: 0 !important;
}
.cm-activeLine {
  background-color: #000100 !important;
}
select {
  background-color: #111;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: 2px solid white;
  outline-offset: -2px;
  padding: 4px;
  cursor: pointer;
  height: 30px;
  border-right: 5px solid #111;
}
select:hover {
  background-color: #333;
  border-right: 5px solid #333;
}
select:focus,
button:focus,
a.button:focus {
  outline: 3px solid rgb(0, 100, 255);
  border-radius: 4px;
}
a.button,
button {
  background-color: #111;
  border: none;
  color: #fff;
  font-size: 16px;
  border: 2px solid white;
  padding: 4px 6px;
  cursor: pointer;
  height: 30px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  font-family: sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover,
a.button:hover {
  background-color: #333;
  color: #fff;
}
a {
  color: #ccc;
}
dialog a {
  color: #222;
}
a:hover {
  background-color: #ccc;
  color: #000;
}
body > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 8px 0;
}
nav {
  padding: 3px;
  display: flex;
  gap: 4px;
  margin-right: -7px;
}
.dialog-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000000;
  pointer-events: none;
}
dialog {
  pointer-events: all;
  position: fixed;
  min-width: min(100%, 400px);
  max-width: 600px;
  max-height: 85%;
  overflow: scroll;
  border: 3px solid black;
  outline: 1px solid white;
}
dialog::backdrop {
  pointer-events: none;
}
dialog section {
  margin: 40px 0;
}
dialog button,
dialog a.button {
  border: none;
}
label {
  display: flex;
  gap: 6px;
  align-items: center;
}
iframe#strudel {
  border: 0;
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
iframe#strydra,
iframe#hydra,
iframe#basil,
iframe#hydro {
  border: 0;
  z-index: -3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
iframe#shader {
  border: 0;
  z-index: -2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
iframe#kabelsalat,
iframe#weft {
  display: none;
}
#mantra {
  position: fixed;
  top: 0;
  pointer-events: none;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black,
    -1px 1px 0px black;
}
footer p {
  text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black,
    -1px 1px 0px black;
  text-align: right;
  margin: 2px;
}
footer h3 {
  text-align: center;
  z-index: 1000;
  pointer-events: all;
}
.fade-out {
  animation: fade-out 1s forwards;
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.fade-in {
  animation: fade-in 1s forwards;
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.zen-mode button,
.zen-mode a.button,
.zen-mode .error {
  border: 0;
}
.zen-mode select {
  border: none;
  outline: none;
  background: #000000a8;
}
.zen-mode .title {
  display: none;
}
.zen-mode .slot {
  position: relative;
}
.zen-mode .slot header .run {
  font-size: 0.95em;
  font-family: var(--font-family);
  border: 0;
}
.zen-mode .slot header select {
  font-size: 0.95em;
  font-family: var(--font-family);
  text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black,
    -1px 1px 0px black;
}
#menu-container {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  padding: 0.25em;
  display: flex;
  align-items: flex-end;
  align-items: center;
  gap: 12px;
}
#menu-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  z-index: 1;
  flex-direction: column;
}
#menu-content button,
#menu-content a.button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-family: var(--font-family) !important;
}
#menu-container.open #menu-content {
  display: flex;
}
#sidebar-container {
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  width: 20%;
  min-width: 350px;
  visibility: hidden;
}
#sidebar-toolbox {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
}
#docs-selector {
  width: 100%;
}
#docs-in-new-tab {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  visibility: hidden;
}
#docs-in-new-tab.visible {
  visibility: unset;
}
#docs-frame {
  border: none;
}
.sidebarOpen #sidebar-container {
  visibility: visible;
}
.sidebarOpen .slots,
.sidebarOpen .tabs {
  padding-left: max(20%, 350px);
}
.development {
  display: none;
}
#toast {
  inset: unset;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 1px;
  overflow: visible;
  background-color: unset;
  border: none;
}
#toast span {
  flex-shrink: 0;
  max-width: 300px;
  background-color: #fff;
  border: 1px solid black;
  padding: 4px;
  pointer-events: none;
}
th {
  text-align: left;
}
#toast:popover-open {
  display: flex;
}
#toast {
  animation: move-up 0.5s forwards;
}
@keyframes move-up {
  0% {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}
.cm-ySelectionCaret {
  pointer-events: none;
}
.cm-ySelectionInfo {
  /* opacity: 0.6 !important; */
  transform-origin: 0 0;
  /* transform: rotate(15deg) scale(1); */
}
* {
  scrollbar-color: #00000096 transparent;
}
dialog {
  scrollbar-width: thin;
  scrollbar-color: #78716c white;
}
.chat-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.message-container {
  position: fixed;
  background-color: #3339;
  opacity: 1;
  z-index: 1000;
  font-size: 16.8px;
}
@keyframes rise-and-fade {
  0% {
    opacity: 1;
  }
  to {
    top: -20px;
    opacity: 0;
  }
}
.rising-animation {
  animation: rise-and-fade 6s ease-out forwards;
}
fieldset {
  border: 1px solid #333;
  padding: 16px 8px;
}
hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 8px 0;
}
input:disabled {
  cursor: not-allowed;
  color: #aaa;
}
#username-preview {
  padding: 2px;
}
.greyscale {
  filter: grayscale(1);
}
.inverted-colors {
  filter: invert(1);
}
.sealegs
  > .slot
  > .editor
  > .cm-editor
  > .cm-scroller
  > .cm-content
  > .cm-line {
  animation: wimdy 3s infinite alternate ease-in-out;
}
@keyframes wimdy {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(20px);
  }
}
.msn-replacement {
  max-height: 3em;
}
#slots.foggy {
  mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    black 100px,
    transparent 200px
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    black 100px,
    transparent 200px
  );
}
.spooky .run {
  font-weight: bolder;
  position: relative;
  text-shadow: 1px 1px crimson, 1px -1px crimson, -1px 1px crimson,
    -1px -1px crimson;
}
.spooky .run:before {
  position: absolute;
  display: inline-block;
  content: "👻";
  rotate: calc(0.1turn * calc(0.5 - var(--fft)));
  left: 0;
}
.spooky .run:after {
  content: "!!!!";
}
.zalgo * {
  font-family: zalgo !important;
  --font-family: zalgo;
}
@keyframes pastagang-names-anonymous-color-cycling {
  0% {
    filter: hue-rotate(0turn);
  }
  to {
    filter: hue-rotate(1turn);
  }
}
body.pastagang-names {
  counter-reset: pastagang-names -1;
}
body.pastagang-names #username-preview + p {
  visibility: hidden;
  font-size: 0;
}
body.pastagang-names #username-preview + p * {
  display: none;
}
body.pastagang-names #username-preview + p:before {
  visibility: visible;
  font-size: 0.8rem;
  content: "You are pastagang";
}
body.pastagang-names .cm-ySelectionCaret {
  animation: pastagang-names-anonymous-color-cycling 15s infinite;
}
body.pastagang-names .cm-ySelectionCaret .cm-ySelectionInfo:after {
  counter-increment: pastagang-names;
  content: " " counter(pastagang-names);
}
body.rainbowy-notes .cm-line > span {
  color: inherit;
}
body.rainbowy-notes .cm-line:nth-child(18n + 1) {
  color: #db5757;
}
body.rainbowy-notes .cm-line:nth-child(18n + 2) {
  color: #db8357;
}
body.rainbowy-notes .cm-line:nth-child(18n + 3) {
  color: #dbaf57;
}
body.rainbowy-notes .cm-line:nth-child(18n + 4) {
  color: #dbdb57;
}
body.rainbowy-notes .cm-line:nth-child(18n + 5) {
  color: #afdb57;
}
body.rainbowy-notes .cm-line:nth-child(18n + 6) {
  color: #83db57;
}
body.rainbowy-notes .cm-line:nth-child(18n + 7) {
  color: #57db57;
}
body.rainbowy-notes .cm-line:nth-child(18n + 8) {
  color: #57db83;
}
body.rainbowy-notes .cm-line:nth-child(18n + 9) {
  color: #57dbaf;
}
body.rainbowy-notes .cm-line:nth-child(18n + 10) {
  color: #57dbdb;
}
body.rainbowy-notes .cm-line:nth-child(18n + 11) {
  color: #57afdb;
}
body.rainbowy-notes .cm-line:nth-child(18n + 12) {
  color: #5783db;
}
body.rainbowy-notes .cm-line:nth-child(18n + 13) {
  color: #5757db;
}
body.rainbowy-notes .cm-line:nth-child(18n + 14) {
  color: #8357db;
}
body.rainbowy-notes .cm-line:nth-child(18n + 15) {
  color: #af57db;
}
body.rainbowy-notes .cm-line:nth-child(18n + 16) {
  color: #db57db;
}
body.rainbowy-notes .cm-line:nth-child(18n + 17) {
  color: #db57af;
}
body.rainbowy-notes .cm-line:nth-child(18n + 18) {
  color: #db5783;
}
#doom {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  pointer-events: none;
  opacity: 0.5;
}
#doom h1 {
  font-size: 12rem;
}
#header {
  text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black,
    -1px 1px 0px black;
  display: inline-block;
  font-size: 20px;
  height: 100%;
}
#header {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  height: fit-content;
  padding: 10px;
  font-size: 20px;
  font-weight: 700;
}
