/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
x-gameplay {
  display: block;
  position: relative;
  overflow: hidden;
}
x-gameplay .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
x-gameplay .slide.done {
  pointer-events: none;
}
x-gameplay .slide-template {
  display: none;
}
x-gameplay .dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transition: transform 0.2s;
  z-index: 10;
}
x-gameplay .dot {
  float: left;
  width: 8px;
  height: 8px;
  border: 1px solid #0f82f2;
  border-radius: 100%;
  margin: 4px;
  transition: background 0.3s, color 0.3s;
}
x-gameplay .dot.green {
  background: #22ab24;
  border-color: #22ab24;
}
x-gameplay .dot.red {
  background: #cd0e66;
  border-color: #cd0e66;
}
x-gameplay x-solved {
  margin-top: 12px;
}

x-solved {
  display: none;
  position: absolute;
  width: 200px;
  left: 50%;
  margin: 20px 0 0 -100px;
  z-index: 200;
  border-radius: 12px;
  padding: 5px 15px 15px;
  box-sizing: border-box;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
x-solved x-icon.sketch {
  margin: 0 auto;
  fill: white;
  display: block;
  opacity: 0.8;
}
x-solved .message {
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
x-solved .close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 8px;
  transition: transform 0.2s;
  cursor: pointer;
  z-index: 10;
}
x-solved .close x-icon {
  fill: rgba(255, 255, 255, 0.4);
  display: block;
  transition: fill 0.2s;
}
x-solved .close:hover {
  transform: scale(1.4);
}
x-solved .close:hover .icon {
  fill: white;
}

.td-border-right {
  border-right: 1px solid #3a3645;
}

.td-border-bottom {
  border-bottom: 1px solid #3a3645;
}

.factors-quiz {
  height: 240px;
}
.factors-quiz .slide {
  margin-top: 110px;
  height: auto;
  font-size: 1.2em;
  text-align: center;
}
.factors-quiz .circled {
  margin: 0 0.4em;
}
.factors-quiz .factor-value {
  display: inline-block;
  position: relative;
  width: 6em;
  height: 2em;
  margin: 0 0.5em -0.6em;
}
.factors-quiz .factor-bubble {
  width: 6em;
  position: absolute;
  transition: transform 0.2s;
  transition-delay: 0.1s;
}
.factors-quiz .factor-bubble:first-child {
  transform: translateY(-120%);
}
.factors-quiz .factor-bubble:last-child {
  transform: translateY(120%);
}
.factors-quiz .factor-bubble .btn {
  width: 80px;
}
.factors-quiz .factor-bubble .btn-red, .factors-quiz .factor-bubble .btn-green {
  pointer-events: none;
  z-index: 10;
  box-shadow: none;
}

.number-grid {
  max-width: 560px;
  margin: 1em auto;
  display: flex;
  flex-wrap: wrap;
}
.stage .number-grid {
  margin-bottom: 32px;
}
@media (max-width: 620px) {
  .number-grid {
    max-width: 440px;
  }
}
@media (max-width: 500px) {
  .number-grid {
    max-width: 360px;
  }
}
@media (max-width: 420px) {
  .number-grid {
    max-width: 280px;
  }
}
.number-grid.ulam-grid {
  max-width: 392px;
}
@media (max-width: 620px) {
  .number-grid.ulam-grid {
    max-width: 310px;
  }
}
@media (max-width: 500px) {
  .number-grid.ulam-grid {
    max-width: 252px;
  }
}
@media (max-width: 420px) {
  .number-grid.ulam-grid {
    max-width: 198px;
  }
}

.number-cell {
  width: 44px;
  height: 44px;
  line-height: 44px;
  margin: 6px;
  background: #c5c2cc;
  text-align: center;
  font-size: 20px;
  border-radius: 100%;
  position: relative;
  transition: color 0.2s, background 0.2s, opacity 0.4s, box-shadow 0.8s;
}
@media (max-width: 620px) {
  .number-cell {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 4px;
    font-size: 18px;
  }
}
@media (max-width: 500px) {
  .number-cell {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 3px;
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  .number-cell {
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin: 2px;
    font-size: 12px;
  }
}
.number-cell.off {
  opacity: 0.05;
}
.number-cell.red {
  color: white;
  background: #cd0e66;
}
.number-cell.blue {
  color: white;
  background: #0f82f2;
}
.number-cell.green {
  color: white;
  background: #22ab24;
}
.number-cell.yellow {
  color: white;
  background: #fd8c00;
}
#divisibility6 .number-cell.blue.yellow {
  background: linear-gradient(to bottom right, #0f82f2 50%, #fd8c00 50%);
}
#divisibility6 .number-cell.blue.yellow.green {
  box-shadow: inset 0 0 0 30px #22ab24;
}

.number-badge {
  font-size: 15px;
  line-height: 22px;
  width: 22px;
  position: absolute;
  background: #3a3645;
  border-radius: 100%;
  top: -7px;
  right: -7px;
  color: white;
  display: none;
}
@media (max-width: 500px) {
  .number-badge {
    width: 18px;
    line-height: 18px;
    top: -6px;
    right: -6px;
    font-size: 12px;
  }
}

.divisor-table {
  table-layout: fixed;
}

.divisor-table td {
  position: relative;
  padding: 0.5em 0.5em;
}

.divisor-pair {
  left: 20px;
  right: 20px;
  bottom: 2px;
  position: absolute;
  border: 3px solid #c5c2cc;
  border-radius: 50% / 100%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

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

.base-10 {
  margin: 0 auto 1em;
}
.base-10 td {
  padding: 0;
  width: 1.5em;
}

.base-10-large {
  font-size: 1.8em;
  line-height: 1;
}

#primefactor .td-border-bottom td {
  padding-bottom: 0.5em;
}

#primefactor .td-border-bottom + tr td {
  padding-top: 0.5em;
}

.twin {
  display: inline-block;
}
.twin .number-ball {
  margin: 2px 0 2px 8px;
}
.twin .number-ball:nth-child(odd):after {
  content: "";
  display: block;
  width: 10px;
  height: 4px;
  position: absolute;
  right: -9px;
  top: 13px;
  background: #cd0e66;
}
.twin .number-ball.blue:nth-child(odd):after {
  background: #0f82f2;
}
.twin .number-ball.green:nth-child(odd):after {
  background: #22ab24;
}
.twin .number-ball.yellow:nth-child(odd):after {
  background: #fd8c00;
}

.bubble-pop {
  height: 300px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.bubble-number {
  position: absolute;
  width: 160px;
  height: 160px;
  line-height: 160px;
  font-size: 40px;
  text-align: center;
  color: white;
  border-radius: 100px;
  left: 40px;
  top: 100%;
  background: radial-gradient(circle farthest-corner at 60% 60%, #0b68c3, #3f9bf5);
  animation: bubble 5s infinite linear;
}

.bubble-number:before, .bubble-number:after {
  content: " ";
  width: 60px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(-30deg);
  position: absolute;
  border-radius: 30px/10px;
}

.bubble-number:before {
  top: 16px;
  left: 18px;
}

.bubble-number:after {
  bottom: 16px;
  right: 18px;
}

@keyframes bubble {
  0% {
    transform: translate(0, 0) scale(0.97, 1.03);
  }
  25% {
    transform: translate(40px, -125px) scale(1.03, 0.97);
  }
  50% {
    transform: translate(0, -230px) scale(0.97, 1.03);
  }
  75% {
    transform: translate(40px, -345px) scale(1.03, 0.97);
  }
  to {
    transform: translate(0, -460px) scale(0.97, 1.03);
  }
}
.lap-button {
  cursor: pointer;
}

.factor-game {
  align-items: center;
}

.factor-game-text {
  text-align: center;
  width: 200px;
}
.factor-game-text .column {
  margin: -70px 0;
  display: inline-block;
  width: 117px;
}
.factor-game-text .btn {
  width: 100px;
}

.factor-game-number {
  width: 140px !important;
  height: 140px;
  line-height: 140px;
  text-align: center;
  background: #cd0e66;
  border-radius: 100%;
  color: white;
  font-size: 36px;
}

.calculator {
  max-width: 400px;
  background: #3a3645;
  border-radius: 8px;
  margin: 2em auto;
  padding: 20px;
  text-align: center;
}
.calculator h3 {
  margin: 0 0 1em;
  color: white;
}
.calculator p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}
.calculator .result {
  font-size: 1.2em;
  color: white;
  margin: 0;
  height: 30px;
  line-height: 1.2;
}
.calculator input {
  display: block;
  margin: 10px auto;
  background: #c5c2cc;
  text-align: center;
  padding: 6px 12px;
  border-radius: 4px;
  color: black;
}
.calculator .loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("/images/loading-white.gif");
  background-size: 20px 20px;
}

#riemann svg {
  stroke-width: 2px;
}
#riemann line, #riemann path {
  vector-effect: non-scaling-stroke;
}
#riemann .axis {
  stroke: #c5c2cc;
}
#riemann .chart {
  transform-origin: bottom left;
  transition: transform 2s cubic-bezier(0.95, 0.05, 0.795, 0.035);
}
#riemann .small-primes {
  stroke: #0f82f2;
  opacity: 0.3;
  transition: opacity 0.5s;
}
#riemann text {
  fill: #999;
  text-anchor: middle;
  transition: opacity 0.5s;
  font-size: 14px;
}
#riemann text.prime {
  fill: black;
  font-weight: bold;
}
#riemann .zoom .chart {
  transform: scale(0.029, 0.06);
  transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
}
#riemann .zoom .small-primes, #riemann .zoom text {
  opacity: 0;
}
#riemann .zoom-icon {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}
#riemann .zoom-icon:hover {
  opacity: 0.9;
}
#riemann .zoom-icon .icon {
  fill: #FFF;
  margin: 2px;
}

.divides {
  display: inline-block;
  width: 1px;
  background: currentColor;
  margin: -10px 5px;
  height: 2em;
}