/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
figure .row x-img {
  margin: 8px;
}

.n {
  display: inline-block;
  width: 44px;
  text-align: center;
  color: white;
  height: 26px;
  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;
}

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