/* (c) Innings2, generated by Mathigon Studio */
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;
  }
}
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;
}

.number-ball {
  display: inline-block;
  text-align: center;
  line-height: 30px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: #cd0e66;
  color: white;
  position: relative;
}
.number-ball.blue {
  background: #0f82f2;
}
.number-ball.green {
  background: #22ab24;
}
.number-ball.yellow {
  background: #fd8c00;
}
.number-ball.red {
  background: #cd0e66;
}
.number-ball.l-blue {
  background: rgba(15, 130, 242, 0.4);
}
.number-ball.l-green {
  background: rgba(34, 171, 36, 0.4);
}
.number-ball.l-yellow {
  background: rgba(253, 140, 0, 0.4);
}
.number-ball.l-blue-green {
  background: linear-gradient(to bottom right, rgba(15, 130, 242, 0.4) 50%, rgba(34, 171, 36, 0.4) 50%);
}
.number-ball.small {
  padding: 0;
  width: 24px;
  line-height: 24px;
  font-size: 1em;
  margin: -6px 1px;
}
.number-ball.blue.cross {
  position: relative;
  background: rgba(15, 130, 242, 0.3);
}
.number-ball.cross:after {
  content: "";
  width: 150%;
  height: 2px;
  background: #c00;
  position: absolute;
  left: -25%;
  top: 50%;
  transform: rotate(-45deg);
  margin-top: -1px;
}
.number-ball.legs:before, .number-ball.legs:after {
  content: " ";
  display: block;
  position: absolute;
  width: 40px;
  height: 2px;
  background: #c5c2cc;
}
.number-ball.legs:before {
  transform: rotate(-45deg);
  top: 37px;
  right: 21px;
}
.number-ball.legs:after {
  transform: rotate(45deg);
  top: 37px;
  left: 21px;
}
.number-ball.legs.b:before {
  transform: rotate(-30deg);
  top: 33px;
  right: 24px;
}
.number-ball.legs.a:after {
  transform: rotate(30deg);
  top: 33px;
  left: 24px;
}

.overline {
  text-decoration: overline;
}

.n {
  display: inline-block;
  width: 44px;
  text-align: center;
  color: white;
  height: 40px;
  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;
}
.n x-blank.done, .n x-blank.done .target {
  display: inline;
  line-height: inherit;
  box-shadow: none;
  color: #87c1f9;
}
.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: #0f82f2;
}
.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;
}

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

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