/* (c) Innings2, generated by Mathigon Studio */
x-quiz {
  display: block;
}
x-quiz .quizcard {
  width: 100%;
}
x-quiz .question {
  display: none;
  font-size: 1.2em;
}
x-quiz .question .correct_answer {
  display: none;
}
x-quiz .question .answers {
  margin-top: 40px;
  list-style: none;
}
x-quiz .question .answers li {
  padding: 0;
  margin: 0px;
  border: 1px solid rgba(33, 36, 44, 0.64);
  border-right: 0px;
  border-left: 0px;
  padding: 5px;
}
x-quiz .question .answers li:hover {
  background-color: #e5e5e5;
}
x-quiz .question .answers li.active {
  background-color: #e5e5e5;
}
x-quiz .question .hint {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}
x-quiz .nav {
  height: 40px;
  position: relative;
}
x-quiz .dots {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
x-quiz .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(24, 24, 36, 0.2);
  float: left;
  margin: 4px;
  transition: background 0.2s;
}
html[theme=dark] x-quiz .dot {
  background: rgba(255, 255, 255, 0.4);
}
x-quiz .dot.on {
  background: rgba(0, 0, 0, 0.8);
}
html[theme=dark] x-quiz .dot.on {
  background: white;
}

x-buckets {
  display: block;
  margin: 1.5em 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #333;
  width: 100%;
}
x-buckets .inputs, x-buckets .bucket {
  position: relative;
}
x-buckets .inputs > *, x-buckets .bucket > * {
  position: absolute;
}
x-buckets .inputs {
  z-index: 1;
  width: 100%;
  min-height: 50px;
}
x-buckets .buckets {
  display: flex;
  margin: 0 -8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
x-buckets .input {
  cursor: move;
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  padding: 5px 12px;
  margin: 6px 0;
  border-radius: 4px;
  width: 180px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  transition: left 0.2s, top 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
x-buckets .input.touch-device {
  /* Increase tap target size on touch devices */
  padding: 8px 12px;
}
x-buckets .inputs .input {
  background: #c5c2cc;
}
x-buckets .input.error {
  background: #e9b0cb;
  color: #cd0e66;
}
x-buckets .input.correct {
  background: #b6dfb7;
  color: #22ab24;
}
x-buckets .input.active {
  z-index: 10; /* Ensure active items appear on top */
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  color: inherit;
}
x-buckets .bucket {
  width: 200px;
  border-radius: 8px;
  margin: 6px;
  position: relative;
  padding-bottom: 6px;
  background: #3a3645;
  transition: box-shadow 0.2s;
}
x-buckets .bucket .title {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: white;
}
x-buckets .bucket.active {
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.4);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  x-buckets .bucket {
    width: 180px; /* Slightly smaller buckets on tablets */
    margin: 4px;
  }
  x-buckets .input {
    width: 160px; /* Slightly smaller input items */
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  x-buckets .buckets {
    margin: 0 -4px;
  }
  x-buckets .bucket {
    width: calc(50% - 8px); /* Half width minus margins on mobile */
    min-width: 140px; /* Ensure minimum readable width */
    margin: 4px;
  }
  x-buckets .bucket .title {
    font-size: 14px;
    margin-top: 6px;
  }
  x-buckets .input {
    width: 140px; /* Smaller input items on mobile */
    font-size: 14px;
    padding: 6px 8px;
    margin: 4px 0;
  }
  x-buckets .input.active {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); /* Smaller shadow on mobile */
  }
}
/* Extra small devices */
@media (max-width: 360px) {
  x-buckets .bucket {
    width: 100%; /* Full width on very small devices */
    max-width: 260px;
    margin: 4px auto;
  }
  x-buckets .input {
    width: 130px;
    font-size: 13px;
  }
}
/* Responsive Binary Swipe Component */
x-binary-swipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
  /* Very small screens adjustments */
}
x-binary-swipe h3 {
  text-transform: uppercase;
  color: #aaa;
  font-size: clamp(14px, 3vw, 22px);
  margin-top: 0;
  text-align: center;
  overflow-wrap: break-word;
}
x-binary-swipe .stack {
  height: min(260px, 20vw);
  width: min(220px, 28vw);
  position: relative;
  margin: 10px auto;
  border-radius: 8px;
  background: var(--grey-background, #f5f5f5);
}
x-binary-swipe .option .stack .card-wrap {
  z-index: 10;
}
x-binary-swipe .card-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
x-binary-swipe .card-wrap.active {
  cursor: grab;
}
x-binary-swipe .card-wrap.dragging {
  z-index: 20;
}
x-binary-swipe .card {
  border-radius: 8px;
  color: white;
  height: min(220px, 20vw - 10px);
  width: min(200px, 28vw - 10px);
  padding: clamp(6px, 2vw, 16px);
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  font-size: clamp(10px, 1.5vw, 16px);
}
x-binary-swipe .card.c-red {
  background: var(--red, #f44336);
}
x-binary-swipe .card.c-orange {
  background: var(--orange, #ff9800);
}
x-binary-swipe .card.c-yellow {
  background: var(--yellow, #ffeb3b);
}
x-binary-swipe .card.c-lime {
  background: var(--lime, #cddc39);
}
x-binary-swipe .card.c-green {
  background: var(--green, #4caf50);
}
x-binary-swipe .card.c-teal {
  background: var(--teal, #009688);
}
x-binary-swipe .card.c-blue {
  background: var(--blue, #2196f3);
}
x-binary-swipe .card.c-purple {
  background: var(--purple, #9c27b0);
}
x-binary-swipe .card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  display: block;
  height: 100%;
  background: transparent;
  transition: background 1s;
  mix-blend-mode: overlay;
  border-radius: 8px;
}
x-binary-swipe .card-wrap.committed-left .card::after {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .card-wrap.committed-right .card::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .option .card {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
x-binary-swipe .card-wrap.active .card {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  x-binary-swipe .card-wrap.active .card {
    transform: scale(1.1);
  }
}
x-binary-swipe .card-wrap.dragging .card {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
  x-binary-swipe .card-wrap.dragging .card {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  }
}
@media (max-width: 480px) {
  x-binary-swipe {
    gap: 0.5rem;
  }
  x-binary-swipe .stack {
    height: min(260px, 28vw);
    width: min(220px, 30vw);
    margin: 5px auto;
  }
  x-binary-swipe .card {
    height: min(220px, 28vw - 10px);
    width: min(200px, 30vw - 10px);
    padding: 4px;
  }
}

x-quill {
  display: block;
  position: relative;
  margin: 1.5em 0;
}
x-quill .ql-toolbar.ql-snow {
  padding: 4px 12px;
  border-radius: 4px 4px 0 0;
  background: #eee;
}
x-quill .ql-container.ql-snow {
  font-family: inherit;
  font-size: 16px;
  border-radius: 0 0 4px 4px;
}
x-quill .ql-editor {
  padding: 16px 16px 44px 16px;
}
x-quill .btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 16px;
}

marker#axis-arrow {
  fill: #3a3645;
}
html[theme=dark] marker#axis-arrow {
  fill: white;
}

x-chart {
  display: block;
  position: relative;
  margin: 2em auto;
  touch-action: pan-y;
  color: #cd0e66;
}
x-chart svg.canvas {
  display: block;
  width: 100%;
  height: 100% !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
x-chart .grid {
  opacity: 0.1;
}
html[theme=dark] x-chart .grid {
  opacity: 0.25;
}
x-chart .grid line {
  stroke: black;
  stroke-width: 2px;
}
html[theme=dark] x-chart .grid line {
  stroke: white;
}
x-chart .axes line {
  stroke: #3a3645;
  stroke-width: 2px;
}
html[theme=dark] x-chart .axes line {
  stroke: white;
}
x-chart .grid, x-chart .axes {
  stroke-linecap: round;
  transition: opacity 0.2s;
}
x-chart .axes line:not(.tick) {
  marker-end: url(#axis-arrow);
}
x-chart .labels text {
  fill: #3a3645;
  font-size: 14px;
  stroke: white;
  stroke-width: 4px;
  paint-order: stroke;
  stroke-linejoin: round;
}
html.is-safari x-chart .labels text {
  stroke: none;
}
x-chart .plot path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3px;
}
x-chart .plot circle {
  fill: currentColor;
}
x-chart.blue, x-chart g.blue {
  color: #0f82f2;
}
x-chart.green, x-chart g.green {
  color: #22ab24;
}
x-chart.yellow, x-chart g.yellow {
  color: #fd8c00;
}
x-chart x-gesture {
  position: absolute;
  top: 0;
  left: 0;
}

.juniper-cell, code, pre, x-step code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.exercise, .example, .definition {
  padding: 0.6em 1em;
  color: rgba(0, 0, 0, 0.75);
  margin: 1.5em 0;
  border-radius: 2px 4px 4px 2px;
}
.exercise p:last-child, .exercise ul:last-child, .example p:last-child, .example ul:last-child, .definition p:last-child, .definition ul:last-child {
  margin-bottom: 0;
}
.exercise:first-child, .example:first-child, .definition:first-child {
  margin-top: 0;
}
.exercise .caption, .example .caption, .definition .caption {
  color: rgba(0, 0, 0, 0.4);
}

.theorem {
  background: #fbedf6;
  border: 1px solid #b30469;
  border-left: 6px solid #b30469;
}

.exercise {
  background: #f5fefa;
  border: 1px solid #2a9659;
  border-left: 6px solid #2a9659;
}

.example {
  background: #f7ece1;
  border: 1px solid #d8954b;
  border-left: 6px solid #d8954b;
}

.definition {
  background: #c0d6f9;
  border: 1px solid #2667cc;
  border-left: 6px solid #2667cc;
}

x-picker .item {
  display: block;
}

p {
  hanging-punctuation: none;
}

.choice strong {
  color: white;
}

.pill code {
  color: white;
}

.popup code {
  color: white;
}

x-picker .item.pill.bblue {
  background: #0f82f2;
}
x-picker .item.pill.bblue:not(.correct):not(.incorrect):hover {
  background: #095bab;
}
x-picker .item.pill.bblue:after {
  border-width: 2px;
  margin: 2px;
}

x-step code {
  background: transparent;
  border: none;
}

.video-wrap {
  background: black;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.CodeMirror pre {
  margin: 0;
}

.juniper-cell {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 1.5em 0;
  line-height: 1.8;
  overflow: hidden;
  font-size: 15px;
}
.juniper-cell .CodeMirror {
  padding: 0.6em 1em;
}
.juniper-cell pre {
  color: #555;
}

.juniper-output {
  background: #eee;
  padding: 0.6em 1em;
  white-space: pre-wrap;
  border-top: 1px solid #ccc;
  min-height: 27px;
  color: inherit;
}

.juniper-button {
  display: inline-block;
  width: auto;
  text-align: center;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  z-index: 10;
  padding: 0 1.1em;
  height: 2em;
  line-height: 2em;
  font-weight: 600;
  letter-spacing: 0.2px;
  background-color: #22ab24;
  transition: transform 0.4s cubic-bezier(0.33, 1.9, 0.52, 0.7), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.juniper-button:hover, .juniper-button.on {
  z-index: 10;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.juniper-button.disabled, .juniper-button[disabled] {
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.juniper-button:active {
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  transform: scale(0.9);
}
.juniper-button:hover, .juniper-button:focus, .juniper-button:active {
  background-color: #29cd2b;
}

code[class*=language-],
pre[class*=language-] {
  color: #393A34;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  font-size: 0.9em;
  line-height: 1.2em;
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
  -webkit-hyphens: none;
          hyphens: none;
}

pre[class*=language-]::-moz-selection, pre[class*=language-] ::-moz-selection, code[class*=language-]::-moz-selection, code[class*=language-] ::-moz-selection {
  background: #C1DEF1;
}

pre[class*=language-]::selection, pre[class*=language-] ::selection,
code[class*=language-]::selection, code[class*=language-] ::selection {
  background: #C1DEF1;
}

pre[class*=language-] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border: 1px solid #ccc;
  background-color: #eee;
  border-radius: 4px;
}

:not(pre) > code[class*=language-] {
  padding: 0.2em;
  padding-top: 1px;
  padding-bottom: 1px;
}

pre > code[class*=language-] {
  padding: 0;
  border: 0;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #008000;
  font-style: italic;
}

.token.namespace {
  opacity: 0.7;
}

.token.string {
  color: #A31515;
}

.token.punctuation,
.token.operator {
  color: #393A34; /* no highlight */
}

.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.inserted {
  color: #36acaa;
}

.token.atrule,
.token.keyword,
.token.attr-value,
.language-autohotkey .token.selector,
.language-json .token.boolean,
.language-json .token.number,
code[class*=language-css] {
  color: #0000ff;
}

.token.function {
  color: #393A34;
}

.token.deleted,
.language-autohotkey .token.tag {
  color: #9a050f;
}

.token.selector,
.language-autohotkey .token.keyword {
  color: #00009f;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.class-name,
.language-json .token.property {
  color: #2B91AF;
}

.token.tag,
.token.selector {
  color: #800000;
}

.token.attr-name,
.token.property,
.token.regex,
.token.entity {
  color: #ff0000;
}

.token.directive.tag .tag {
  background: #ffff00;
  color: #393A34;
}

.line-numbers .line-numbers-rows {
  border-right-color: #a5a5a5;
}

.line-numbers-rows > span:before {
  color: #2B91AF;
}

.line-highlight {
  background: rgba(193, 222, 241, 0.2);
  background: linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));
}

x-step pre code {
  overflow: scroll;
}

x-binary-swipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5em 0;
}
x-binary-swipe h3 {
  text-transform: uppercase;
  text-align: center;
  color: #aaa;
  font-size: 22px;
  margin-top: 0;
}
x-binary-swipe .stack {
  width: 100%;
  height: 220px;
  position: relative;
  margin: 20px auto;
  border-radius: 8px;
  background: #f5f5f6;
}
x-binary-swipe .option .stack .card-wrap {
  z-index: 10;
}
x-binary-swipe .card-wrap {
  position: absolute;
  top: 0;
  left: 0;
}
x-binary-swipe .card-wrap.active {
  cursor: grab;
}
x-binary-swipe .card-wrap.dragging {
  z-index: 20;
}
x-binary-swipe .card {
  border-radius: 8px;
  color: white;
  height: 220px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.2s, transform 0.2s;
}
x-binary-swipe .card.c-red {
  background: #cd0e66;
}
x-binary-swipe .card.c-orange {
  background: #eb4726;
}
x-binary-swipe .card.c-yellow {
  background: #fd8c00;
}
x-binary-swipe .card.c-lime {
  background: #bfc212;
}
x-binary-swipe .card.c-green {
  background: #22ab24;
}
x-binary-swipe .card.c-teal {
  background: #009ea6;
}
x-binary-swipe .card.c-blue {
  background: #0f82f2;
}
x-binary-swipe .card.c-purple {
  background: #6d3bbf;
}
x-binary-swipe .card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  display: block;
  height: 100%;
  background: transparent;
  transition: background 1s;
  mix-blend-mode: overlay;
}
x-binary-swipe .card-wrap.committed-left .card::after {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .card-wrap.committed-right .card::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .option .card {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
x-binary-swipe .card-wrap.active .card {
  transform: scale(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
x-binary-swipe .card-wrap.dragging .card {
  transform: scale(1.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

x-picker .item {
  border: 4px solid #ecd1ff;
  border-radius: 8px;
  cursor: pointer;
  margin: 4px;
  position: relative;
  transition: border 0.2s, opacity 0.2s;
  width: 150px;
}

x-picker .item.correct {
  border-color: #22ab24;
  cursor: default;
}

figure .row x-img {
  margin: 8px;
}

.n {
  display: inline-block;
  width: 44px;
  text-align: center;
  color: white;
  height: 25px;
  line-height: 26px;
  position: relative;
  margin: 16px 2px;
  font-style: normal;
  white-space: nowrap;
}
.n:before, .n:after {
  content: "";
  display: block;
  position: absolute;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 13px solid;
}
.n:before {
  top: -13px;
}
.n:after {
  transform: rotate(180deg);
  bottom: -13px;
}
.s-grey .n {
  background: #3a3645;
}
.s-grey .n:before, .s-grey .n:after {
  border-bottom-color: #3a3645;
}
.s-orange .n {
  background: #eb4726;
}
.s-orange .n:before, .s-orange .n:after {
  border-bottom-color: #eb4726;
}
.s-purple .n {
  background: #6d3bbf;
}
.s-purple .n:before, .s-purple .n:after {
  border-bottom-color: #6d3bbf;
}
.s-teal .n {
  background: #009ea6;
}
.s-teal .n:before, .s-teal .n:after {
  border-bottom-color: #009ea6;
}
.s-lime .n {
  background: #bfc212;
}
.s-lime .n:before, .s-lime .n:after {
  border-bottom-color: #bfc212;
}
.s-red .n {
  background: #cd0e66;
}
.s-red .n:before, .s-red .n:after {
  border-bottom-color: #cd0e66;
}
.s-blue .n {
  background: #0f82f2;
}
.s-blue .n:before, .s-blue .n:after {
  border-bottom-color: #0f82f2;
}
.s-green .n {
  background: #22ab24;
}
.s-green .n:before, .s-green .n:after {
  border-bottom-color: #22ab24;
}
.s-yellow .n {
  background: #fd8c00;
}
.s-yellow .n:before, .s-yellow .n:after {
  border-bottom-color: #fd8c00;
}
.s-vertical .n {
  width: auto;
  padding: 3px 8px;
  margin: 5px 8px;
}
.s-vertical .n:before, .s-vertical .n:after {
  border-width: 0 16px 8px 16px;
  transform-origin: top left;
}
.s-vertical .n:before {
  top: 32px;
  left: -8px;
  transform: rotate(-90deg);
}
.s-vertical .n:after {
  top: 0;
  right: -77px;
  transform: rotate(90deg);
}
.s-large .n {
  width: 50px;
  height: 30px;
  margin: 18px 3px;
  line-height: 30px;
}
.s-large .n:before, .s-large .n:after {
  border-width: 0 25px 15px 25px;
}
.s-large .n:before {
  top: -15px;
}
.s-large .n:after {
  bottom: -15px;
}
.s-small .n {
  width: 36px;
  height: 22px;
  margin: 12px 1px;
  line-height: 22px;
}
.s-small .n:before, .s-small .n:after {
  border-width: 0 18px 11px 18px;
}
.s-small .n:before {
  top: -11px;
}
.s-small .n:after {
  bottom: -11px;
}
.with-arrows .n {
  margin-top: 32px;
}
.s-large.with-arrows .n {
  margin-top: 40px;
}
.n x-blank {
  display: block;
  margin: 1px 3px;
  max-width: 120px;
}
.n x-blank .target {
  display: block;
  margin: 0;
  height: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}
.n x-blank input {
  min-width: 0;
  display: block;
  width: 100%;
  height: 24px;
  color: white;
}
.n x-blank.done, .n x-blank.done .target {
  display: inline;
  line-height: inherit;
  box-shadow: none;
  color: white;
}
.s-large .n x-blank-input {
  margin: 3px;
}
.s-yellow .n x-blank.done .target, .s-green .n x-blank.done .target, .s-lime .n x-blank.done .target {
  color: white;
}
.n .var {
  color: white;
}
.n .arrow {
  background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2042%2042%22%3E%3Cpath%20fill%3D%22%23aaa%22%20d%3D%22M41%2C41%2C33%2C30.86l0%2C4.49A32.45%2C32.45%2C0%2C0%2C0%2C21%2C33%2C33.71%2C33.71%2C0%2C0%2C0%2C1.77%2C39.2l1.14%2C1.65A31.65%2C31.65%2C0%2C0%2C1%2C21%2C35a30.53%2C30.53%2C0%2C0%2C1%2C11.06%2C2.09l-3.85%2C2.25Z%22%2F%3E%3C%2Fsvg%3E");
  position: absolute;
  font-size: 14px;
  color: #aaa;
  top: -40px;
  width: 32px;
  height: 32px;
  text-align: center;
  left: -23px;
}
.n input {
  color: black;
}

.pattern {
  display: block;
  font-size: 80%;
  color: #999;
}

.squares rect {
  transform-origin: center;
  transform-box: fill-box;
}

.tennis-ball {
  width: 30px;
  height: 30px;
  border-radius: 30px;
  border: 1px solid white;
  background: url(/content/sequences/images/tennis.svg);
  position: absolute;
  margin: -15px;
  pointer-events: none;
}

.text-wrap {
  display: block;
  float: right;
  shape-margin: 24px;
  margin: 0 0 24px 24px;
}
@media (max-width: 560px) {
  .text-wrap {
    float: none !important;
    margin: 0 auto 1em;
  }
}

.row.padded.ag-select {
  align-items: baseline;
  margin: 2em 0 0;
}
.row.padded.ag-select > * {
  margin: 0;
  text-align: left;
  margin-bottom: 12px;
}
.row.padded.ag-select > *:nth-child(2n) {
  margin-bottom: 2em;
}

.row .ag-chart h3 {
  text-align: center;
  margin-bottom: 0.4em;
}
.row .ag-chart p {
  margin: 0;
}
.row .ag-chart .var {
  color: inherit;
  font-size: 16px;
}
.row .ag-chart x-coordinate-system {
  margin: 0.5em 0 0 0;
}
.row .ag-chart hr {
  margin: 0.5em 0;
}
.row .ag-chart.s-green x-var, .row .ag-chart.s-green .bubble-box {
  background: #22ab24;
}
.row .ag-chart.s-green .bubble-arrow {
  border-top-color: #22ab24;
}

.ag-equation {
  max-width: 220px;
  margin: 0 auto 0.5em;
}

.money-grid td {
  width: 100px;
  padding: 2px 10px;
}

x-step .triangle-sum.padded {
  margin: 2em 0;
}
.triangle-sum.padded > * {
  margin: 0;
  text-align: center;
}
.triangle-sum .red circle, .triangle-sum circle.red {
  fill: #fd8c00;
}
.triangle-sum .blue circle, .triangle-sum circle.blue {
  fill: #0f82f2;
}
.triangle-sum .green circle, .triangle-sum circle.green {
  fill: #22ab24;
}

x-tetrahedron {
  display: block;
}

x-tetrahedron canvas {
  width: 100%;
  height: auto;
}

.eratosthenes {
  width: 320px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.eratosthenes div {
  width: 30px;
  height: 30px;
  margin: 1px;
  border-radius: 15px;
  text-align: center;
  line-height: 30px;
  background: #3a3645;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.4s, background 0.3s, transform 0.2s;
  transition-delay: 0.2s, 0s, 0s;
}
.eratosthenes div.l-red {
  background: #cd0e66;
}
.eratosthenes div.l-blue {
  background: #0f82f2;
}
.eratosthenes div.l-green {
  background: #22ab24;
}
.eratosthenes div.l-yellow {
  background: #fd8c00;
}
.eratosthenes div.deleted {
  opacity: 0.12;
}
.eratosthenes div:active {
  transform: scale(0.9);
}
.eratosthenes + x-gesture {
  fill: rgba(0, 0, 0, 0.8);
  stroke: rgba(255, 255, 255, 0.8);
}

x-coordinate-system + .caption {
  margin-top: -1em;
}

.perfect-table {
  line-height: 1.4;
}
.perfect-table td {
  padding: 3px 12px;
}
.perfect-table tr:nth-child(2n) td {
  background: #f4f4f4;
}
.perfect-table .c {
  text-align: center;
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  background: #cd0e66;
  color: white;
}
.perfect-table .c.small {
  text-align: center;
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 11px;
  font-size: 15px;
  background: #eb4726;
  margin: 2px;
}

.perfect-list {
  max-width: 660px;
  margin: 0 auto 1em;
}

.hailstone-slider {
  position: absolute;
  top: 20px;
  right: 20px;
}
.hailstone-slider span:first-child {
  display: inline-block;
  background: #cd0e66;
  line-height: 28px;
  height: 28px;
  border-radius: 14px 0 0 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 8px 0 12px;
}
.hailstone-slider x-var {
  border-radius: 0 14px 14px 0;
}

.rabbits {
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
  transition: padding-bottom 0.8s;
  padding-bottom: 10%;
}
.rabbits .rabbits-wrap {
  position: absolute;
  width: 100%;
  padding-bottom: 60%;
}
.rabbits svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.rabbits line {
  stroke: #c5c2cc;
  stroke-width: 2px;
}
.rabbits path {
  stroke: #181824;
  stroke-width: 2px;
  fill: none;
}
html[theme=dark] .rabbits path {
  stroke: white;
}
.rabbits polygon {
  fill: #181824;
}
html[theme=dark] .rabbits polygon {
  fill: white;
}
.rabbits img.rabbit {
  position: absolute;
  width: 10%;
  height: auto;
}
.rabbits .n {
  position: absolute;
  right: 0;
  margin: 0;
  z-index: 1;
  margin-top: 13px;
}

.golden-spiral .stage {
  overflow: hidden;
}

.golden-spiral svg {
  margin: 0 auto 32px;
  transition: transform 0.4s linear;
}

.spirals {
  padding-bottom: 100%;
  position: relative;
  background-size: cover;
  margin-bottom: 1em;
}
.spirals .clockwise, .spirals .anticlockwise {
  width: 100%;
  height: 100%;
  top: 0;
  position: absolute;
  background-size: cover;
  transition: opacity 0.5s;
  opacity: 0;
}
.spirals .clockwise.active, .spirals .anticlockwise.active {
  opacity: 1;
}

.golden-rect svg {
  margin: 0 auto 8px;
}

.golden-rect x-blank.done .target {
  line-height: inherit;
}

.golden-art {
  position: relative;
  cursor: pointer;
}

.golden-art > img {
  position: absolute;
  top: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.golden-art:hover > img {
  opacity: 0.5;
}

.golden-art.active > img {
  opacity: 1;
}

.petals circle {
  fill: #0d410e;
  transition: transform 0.3s;
}

.petals path {
  transition: transform 0.3s;
  transform-origin: 0 center;
  fill: #22ab24;
  stroke: #1a801b;
}

.sunflower-spiral {
  padding: 10px 0 60px;
  background: url(/content/sequences/images/sunflower-bg.jpg) center no-repeat;
  background-size: 760px 560px;
}
.sunflower-spiral .value {
  height: 34px;
  text-align: center;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 600;
}
.sunflower-spiral svg {
  margin: 0 auto;
  fill: #fec680;
}
.sunflower-spiral x-slider {
  margin: 12px auto 40px;
}
.sunflower-spiral x-slider .bar {
  background: rgba(58, 54, 69, 0.6);
}
@media screen and (max-width: 440px) {
  .sunflower-spiral {
    background-size: 170vw 125vw;
  }
}

.pascal-grid {
  margin: 1.5em auto;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: inherit;
}
html[theme=dark] .pascal-grid {
  color: #333;
}
.pascal-grid .r {
  display: flex;
  justify-content: center;
}
.pascal-grid .c {
  width: 40px;
  font-size: 16px;
  background-color: #ddd;
  margin: 1px;
  text-align: center;
  position: relative;
  line-height: 24px;
  border-radius: 3px;
  transition: color 0.4s, background 0.4s, box-shadow 0.4s, opacity 0.4s;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
}
.pascal-grid .c:after {
  content: "+";
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  left: -8px;
  top: 5px;
  z-index: 1;
  background: #3a3645;
  color: white;
  line-height: 14px;
  text-align: center;
  border-radius: 7px;
  transform: scale(0);
  transition: transform 0.2s;
}
.pascal-grid .c.plus:after {
  transform: none;
}
.pascal-grid.sums .c:last-child {
  transform: scale(0);
  transition: transform 0.2s;
}
.pascal-grid.sums .c:last-child.visible {
  transform: none;
}
.pascal-grid.sums .c:last-child:after {
  content: "=";
}
.pascal-grid x-blank {
  display: block;
}
.pascal-grid x-blank .target {
  display: block;
  margin: 0 0 -2px 0;
  height: 26px;
  border-radius: 3px;
}
.pascal-grid x-blank input {
  min-width: 0;
  display: block;
  width: 100%;
  height: 24px;
}
.pascal-grid x-blank.done, .pascal-grid x-blank.done label {
  display: inline;
  line-height: inherit;
}
.pascal-grid.small .c {
  width: 28px;
  font-size: 10px;
  line-height: 16px;
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
  padding-bottom: 1px;
  margin: 1px;
}
.pascal-grid.small .c .small {
  font-size: 8px;
  line-height: 8px;
}
.pascal-grid .c.light {
  opacity: 0.5;
}
.pascal-grid .c.yellow, .pascal-grid .c.orange, .pascal-grid .c.red, .pascal-grid .c.purple, .pascal-grid .c.blue, .pascal-grid .c.teal, .pascal-grid .c.green, .pascal-grid .c.lime {
  color: white;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.4);
}
.pascal-grid .c.yellow {
  background-color: #fd8c00;
}
.pascal-grid .c.orange {
  background-color: #eb4726;
}
.pascal-grid .c.red {
  background-color: #cd0e66;
}
.pascal-grid .c.purple {
  background-color: #6d3bbf;
}
.pascal-grid .c.blue {
  background-color: #0f82f2;
}
.pascal-grid .c.teal {
  background-color: #009ea6;
}
.pascal-grid .c.green {
  background-color: #22ab24;
}
.pascal-grid .c.lime {
  background-color: #bfc212;
}

#pascal-select .c:not(.red) {
  cursor: pointer;
}

.pascal-buttons {
  position: absolute;
  top: 10px;
}
.pascal-buttons .btn {
  display: block;
  width: 120px;
  margin-bottom: 8px;
  font-size: 18px;
}

.pascal-tabs {
  margin-top: 0;
}
.pascal-tabs .titles {
  margin: 0 auto;
}
.pascal-tabs h3 {
  border-radius: 6px !important;
  padding: 0;
  width: 40px;
  height: 44px;
  margin: 8px 4px;
  position: relative;
  background: currentColor !important;
  opacity: 0.5;
  min-width: 0;
}
.pascal-tabs h3:hover {
  background: currentColor;
  opacity: 0.7;
}
.pascal-tabs h3.active {
  background: currentColor;
  opacity: 1;
}
.pascal-tabs h3 .check {
  margin: 0;
  background-color: transparent;
  background-size: contain;
}
.pascal-tabs h3:after {
  content: "";
  border-bottom: 6px currentColor solid;
  border-left: 15px transparent solid;
  border-right: 15px transparent solid;
  position: absolute;
  left: 5px;
  top: -6px;
}
.pascal-tabs .yellow {
  color: #fd8c00;
}
.pascal-tabs .orange {
  color: #eb4726;
}
.pascal-tabs .red {
  color: #cd0e66;
}
.pascal-tabs .purple {
  color: #6d3bbf;
}
.pascal-tabs .blue {
  color: #0f82f2;
}
.pascal-tabs .teal {
  color: #009ea6;
}
.pascal-tabs .green {
  color: #22ab24;
}
.pascal-tabs .body {
  padding: 0;
  transition: background 0.6s;
  text-align: center;
}
.pascal-tabs .body.s-yellow {
  background: rgba(253, 140, 0, 0.2);
}
.pascal-tabs .body.s-orange {
  background: rgba(235, 71, 38, 0.2);
}
.pascal-tabs .body.s-red {
  background: rgba(205, 14, 102, 0.2);
}
.pascal-tabs .body.s-purple {
  background: rgba(109, 59, 191, 0.2);
}
.pascal-tabs .body.s-blue {
  background: rgba(15, 130, 242, 0.2);
}
.pascal-tabs .body.s-teal {
  background: rgba(0, 158, 166, 0.2);
}
.pascal-tabs .body.s-green {
  background: rgba(34, 171, 36, 0.2);
}

.hover-image {
  transition: transform 0.2s ease-in-out;
}

.hover-image:hover {
  transform: scale(1.1);
}