#graph-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  letter-spacing: initial;
  font-weight: 300;
  overflow: auto;
  --sidebar-horizontal-padding: 350px;
  --sidebar-vertical-padding: calc(min(300px, 45vh) + 30px);
}


.show-top-bar #graph-container {
  height: calc(100vh - 48px);
}


#graph-container.no-sidebar {
  --sidebar-horizontal-padding: 0px !important;
  --sidebar-vertical-padding: 0px !important;
}

.rdg-cell {
  user-select: text;
}


body {
  overscroll-behavior-x: none;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

#top-bar {
  top: 0px;
  display: flex;
  align-items: center;
  right: 0px;
  left: 0px;
  height: 48px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: solid 1px #ddd;
  z-index: 10;
  position: absolute;
}

#side-bar {
  position: fixed;
  z-index: 10;
  top: 16px;
  right: 28px;
  bottom: 30px;
  width: 320px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: solid 1px #ddd;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.show-top-bar #side-bar,
.show-top-bar #find-replace,
.show-top-bar #sketch-tools {
  top: 68px;
}

#side-bar-button {
  position: fixed;
  top: 12px;
  right: 34px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


.show-top-bar #side-bar-button {
  top: 72px;
}


#sketch-tools {
  position: fixed;
  top: 16px;
  left: 10px;
  padding: 8px;
  z-index: 20;
}


#storytelling-controls {
  position: fixed;
  bottom: 24px;
  left: 12px;
  padding: 8px;
  z-index: 20;
}


#find-replace {
  z-index: 20;
  position: fixed;
  left: 32px;
  top: 16px;
  padding: 12px;
}

#simulate-button,
#add-button {
  /** so the shadow doesn't cut the top border */
  box-shadow: 0px 3px 2.5px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 3px 8px 0px rgba(0, 0, 0, 0.12);
}

#simulate-button {
  margin-left: 18px;
  margin-right: 8px;
  z-index: 12;
  position: relative;
  top: 4px;
}


/* Source: https://alvarotrigo.com/shadow-gradients/ */

#add-button:before {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(-45deg, #FFF000 0%, #ED008C 100%);
  transform: translate3d(0px, 4px, 0) scale(0.85);
  filter: blur(6px);
  opacity: var(0.7);
  transition: opacity 0.3s;
  border-radius: inherit;
}

/* 
* Prevents issues when the parent creates a 
* stacking context. (For example, using the transform
* property )
*/
#add-button::after {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  border-radius: inherit;
}


#simulate-button:before {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  transform: translate3d(0px, 4px, 0) scale(0.85);
  filter: blur(6px);
  opacity: var(0.7);
  transition: opacity 0.3s;
  border-radius: inherit;
}

/* 
* Prevents issues when the parent creates a 
* stacking context. (For example, using the transform
* property )
*/
#simulate-button::after {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  border-radius: inherit;
}





@media only screen and (max-width: 900px) {
  #side-bar {
    top: unset !important;
    width: unset;
    left: 28px;
    height: min(300px, 45%);
    bottom: 20px;
  }


  #graph-container {
    --sidebar-horizontal-padding: 0px !important;
  }
}


@media only screen and (min-width: 900px) {
  #graph-container {
    --sidebar-vertical-padding: 0px !important;
  }
}


@media only screen and (max-height: 440px) {
  .hide-short {
    display: none !important;
  }
}


@media only screen and (max-width: 640px) {
  .hide-thin {
    display: none !important;
  }
}


.window-title {
  cursor: move;
  background-color: #f5f5f5;
  touch-action: none;
}

div.mxRubberband {
  position: absolute;
  background-color: blue;
  border: 1px solid #3000af;
}


.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.show-medium {
  display: none;
}

@media only screen and (min-width: 540px) and (max-width: 900px) {
  .sidebar-description-sections {
    display: flex;
    gap: 18px;
  }

  .sidebar-description-top {
    flex: 6;
  }

  .sidebar-description-bottom {
    overflow: hidden;
    flex: 5;
    border-top: none;
    margin-top: 0px;
    padding-top: 0px;
  }

  .show-medium {
    display: block;
  }

  .no-show-medium {
    display: none;
  }
}


.simulation-settings-columns {
  display: flex;
  gap: 30px;
}


@media only screen and (max-width: 440px) {
  .simulation-settings-columns {
    flex-direction: column
  }
}

#connection-switcher .MuiToggleButton-root {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}


.color-chip {
  width: 20px;
  height: 20px;
  margin: 0px 2px;
  display: inline-block;
  cursor: pointer;
}

.color-chip:hover {
  outline: solid 1px #555;
}


.units {
  font-style: italic;
  font-size: small;
  display: inline-block;
  text-align: center;
  border: 1px solid #eaeaea;
  border-radius: 2px;
  padding: 3px;
}


.markup {
  font-size: 1px;
  margin: 0px;
  padding: 0px;
  opacity: 0.001;
}



/** CodeMirror Styling */

/* Parenthesis */
.ͼn {
  color: black !important;
}

.cm-tooltip-hover {
  display: none;
}


.formula-small .cm-activeLine {
  background-color: unset !important;
}

.formula-small .cm-gutters {
  display: none !important;
}


.cm-focused {
  outline: unset !important;
}


.ͼd {
  color: #0000cd !important;
}



.ͼb {
  color: #708;
}

.ͼc {
  color: #219;
}

.ͼd {
  color: #164;
}

.ͼe {
  color: #a11;
}

.ͼf {
  color: #e40;
}

.ͼg {
  color: #00f;
}

.ͼh {
  color: #30a;
}

.ͼi {
  color: #085;
}

.ͼj {
  color: #167;
}

.ͼk {
  color: #256;
}

.ͼl {
  color: #00c;
}

.ͼm {
  color: #940;
}

.ͼn {
  color: #f00;
}

.disabled-form {
  opacity: .5;
  pointer-events: none;
}


#storytelling-banner {
  width: min(360px, calc(100vw - 28px));
  position: fixed;
  left: 14px;
  bottom: 24px;
  z-index: 18;
  box-shadow: rgb(0 0 0 / 5%) 0px 6px 24px 0px, rgb(0 0 0 / 8%) 0px 0px 0px 1px;
}


.sidebar-primitive-description a {
  color: inherit;
}

.sidebar-primitive,
.sidebar-description {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.sidebar-description-sections {
  overflow: hidden;
}

.sidebar-description-top {
  padding: 12px;
}

.sidebar-description-bottom {
  padding: 12px;
}

.sidebar-primitive-footer {
  grid-row-start: 2;
  grid-row-end: 3;
}


.grid-editor {
  appearance: none;
  box-sizing: border-box;
  inline-size: 100%;
  block-size: 100%;
  padding-block: 0;
  padding-inline: 6px;
  border: 2px solid #ccc;
  vertical-align: top;
  font-family: inherit;
  font-size: var(--rdg-font-size);
}

.grid-editor:focus {
  outline: none;
}

.grid-editor::placeholder {
  color: #999;
  opacity: 1;
}

.sidebar-primitive-content {
  position: relative;
  overflow: hidden;
  padding: 12px;
}


.is-embed .hide-in-embed {
  display: none !important;
}


.is-viewer .hide-not-editor {
  display: none !important;
}


.simple-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.simple-progress .simple-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd33d, #ea4aaa 17%, #b34bff 34%, #01feff 51%, #ffd33d 68%, #ea4aaa 85%, #b34bff);
  background-size: 300% 100%;
  animation: simple-progress-animation 2s linear infinite;
}


@keyframes simple-progress-animation {
  0% {
    background-position: 100%
  }

  100% {
    background-position: 0
  }
}


@keyframes wave-lines {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.sidebar-description-top .sidebar-close {
  margin-top: -6px !important;
  margin-right: -6px !important;
}

.sidebar-close {
  float: right;
  margin-left: 12px !important;
  margin-bottom: 12px !important;
  margin-top: 6px !important;
  margin-right: 6px !important;
}


.shared-title {
  margin: 0px 0px 16px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.0075em;
  color: rgba(0, 0, 0, 0.87);
  word-break: break-word;
}

.shared-description {
  margin: 16px 0px 6px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  color: rgba(0, 0, 0, 0.87);
  word-break: break-word;
}

.shared-clamped-description .shared-description {
  max-height: 10.5em;
}

.shared-clamped-description:not(.no-clamp) .shared-description {
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.shared-description a {
  color: inherit;
}

.shared-author {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
}


.description-holder:not(.shared-clamped-description) .read-more-description-button,
.description-holder.no-clamp .read-more-description-button {
  opacity: 0;
  pointer-events: none;
}


body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}


/** Text Equations */


.textRowEven {
  background-color: #efefff;
}

.textRowOdd {
  background-color: #ffffff;
  padding: 0.5em;
}

.textRowEven>td,
.textRowOdd>td {
  padding: 0.5em;
  word-wrap: break-word;
}

.textDivider>td {
  padding: 0.7em;
}

.textDivider {
  text-align: center;
  font-weight: bold;
  background-color: navy;
  color: white;
}

.textName {
  font-weight: bold;
}

.textPrimitiveName {
  display: inline-flex;
  align-items: center;
}

/** Emoji Picker */

em-emoji-picker {
  --shadow: none;
  --font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

.micro-emoji-selector .micro-emoji-selector-arrow {
  opacity: 0;
}

.micro-emoji-selector:hover .micro-emoji-selector-arrow {
  opacity: .4;
}

.window-frame.minimized {
  z-index: 1100 !important;
}

.live-graph:hover {
  opacity: 1;
}

.link-tooltip {
  cursor: grab;
}

/* Container query to hide .micro-emoji-selector-arrow when .window-frame is less than 100px */
.window-frame.minimized {
  container-type: inline-size;
}

@container (max-width: 230px) {
  .micro-emoji-selector-arrow {
    display: none !important;
  }

  .window-title-text {
    padding-right: 8px !important;
    opacity: 0;
  }

  .window-menu-bar {
    margin-right: 0px !important;
  }
}