/* (c) Innings2, generated by Mathigon Studio */
x-wallpaper {
  display: block;
  position: relative;
}
x-wallpaper canvas {
  width: 100%;
  height: auto;
  background: #f5f5f6;
  border-radius: 6px;
}
@media screen and (max-width: 540px) {
  x-wallpaper canvas {
    border-radius: 0;
  }
}
x-wallpaper x-select.tabs {
  position: relative;
  z-index: 1;
}
x-wallpaper x-select.tabs .group {
  width: 36px;
  text-align: center;
  padding: 0;
}
@media screen and (max-width: 740px) {
  x-wallpaper x-select.tabs .group {
    width: 30px;
  }
}
@media screen and (max-width: 1020px) and (min-width: 840px) {
  x-wallpaper x-select.tabs .group {
    width: 30px;
  }
}
x-wallpaper .colours {
  display: block;
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: rgba(245, 245, 246, 0.9);
  border-top-left-radius: 12px;
  padding: 4px 0;
}
x-wallpaper .colour {
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 30px;
  margin: 4px 8px;
  opacity: 0.4;
  border: 2px solid #3a3645;
  box-sizing: border-box;
}
x-wallpaper .colour.active {
  border-width: 4px;
  opacity: 1;
}
@media screen and (max-width: 640px) {
  x-wallpaper .colour {
    width: 24px;
    height: 24px;
    margin: 2px 4px;
  }
}
x-wallpaper .colour:nth-child(1) {
  background: #cd0e66;
}
x-wallpaper .colour:nth-child(2) {
  background: #eb4726;
}
x-wallpaper .colour:nth-child(3) {
  background: #fd8c00;
}
x-wallpaper .colour:nth-child(4) {
  background: #bfc212;
}
x-wallpaper .colour:nth-child(5) {
  background: #22ab24;
}
x-wallpaper .colour:nth-child(6) {
  background: #009ea6;
}
x-wallpaper .colour:nth-child(7) {
  background: #0f82f2;
}
x-wallpaper .colour:nth-child(8) {
  background: #6d3bbf;
}
x-wallpaper .btn-row {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

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;
  }
}
.animation, .symmetry {
  position: relative;
  margin: 0 auto;
}

.animation {
  width: 200px;
}

.symmetry {
  width: 320px;
  overflow: hidden;
}

.symmetry img:nth-child(2) {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.5;
}

.footsteps {
  width: 600px;
  max-width: 100%;
  height: 120px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(to right, #f2994a, #f2c94c);
}
.footsteps img {
  max-width: none;
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: -50px;
}

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;
}