/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
x-solid {
  display: block;
  position: relative;
  margin: 0 auto;
}
x-solid canvas {
  max-width: 100%;
  height: auto;
}
x-solid .label3d {
  position: absolute;
  line-height: 1.2;
  font-style: italic;
  pointer-events: none;
}

x-scale-box {
  display: block;
}
x-scale-box > * {
  transform-origin: top left;
}

x-pi-scroll {
  display: block;
  overflow: scroll;
  font-family: Courier, monospace;
  -webkit-overflow-scrolling: touch;
}
x-pi-scroll .pi-wrap {
  position: relative;
}
x-pi-scroll .pi-row {
  position: absolute;
  top: 0;
}
x-pi-scroll .pi-highlight {
  border: 3px solid #cd0e66;
  border-radius: 10px;
  margin-left: -3px;
  display: none;
  position: absolute;
  height: 24px;
  box-shadow: 0 0 20px #cd0e66;
}

.similar-circles {
  background: #f5f5f6;
  border-radius: 4px;
}
html[theme=dark] .similar-circles {
  background: #2d2c38;
}
.similar-circles .handle:not(.fixed) {
  cursor: move;
  transition: r 0.2s;
  fill: #cd0e66;
}
.similar-circles .handle:not(.fixed):hover {
  r: 20;
}
.similar-circles .outline {
  fill: none;
  stroke: #cd0e66;
  stroke-width: 4px;
  pointer-events: none;
  transition: r 0.2s;
}
.similar-circles .outline-halo {
  fill: none;
  stroke: transparent;
  stroke-width: 40px;
  cursor: ew-resize;
}
.similar-circles .burst {
  fill: none;
  stroke: #22ab24;
}
@media screen and (max-width: 480px) {
  .similar-circles .handle {
    r: 20;
  }
  .similar-circles .handle:hover {
    r: 40;
  }
  .similar-circles .outline-halo {
    fill: none;
    stroke: transparent;
    stroke-width: 40px;
    cursor: ew-resize;
  }
}

.pi-spiral {
  margin: 1em auto;
  max-width: 100%;
  width: 400px;
}

#max-area x-select.segmented > * {
  width: 80px;
  font-size: 16px;
}

#max-area path {
  fill: rgba(15, 130, 242, 0.1);
  stroke: #22ab24;
  stroke-width: 8px;
  stroke-linejoin: round;
}
#max-area .var {
  color: #0f82f2;
}

.circle-area {
  overflow: visible;
}
.circle-area .circle path {
  stroke: white;
  stroke-width: 1.5px;
}
.circle-area .circle:first-child {
  opacity: 0.5;
}
.circle-area.red .circle path {
  fill: #cd0e66;
}
.circle-area.red .circle path:nth-child(2n) {
  fill: #9d0b4e;
}
.circle-area.blue .circle path {
  fill: #0f82f2;
}
.circle-area.blue .circle path:nth-child(2n) {
  fill: #0b68c3;
}
.circle-area .labels line, .circle-area marker path {
  fill: none;
  stroke: #c5c2cc;
  stroke-linecap: round;
}
.circle-area .labels line {
  stroke-width: 2px;
}
.circle-area .labels text {
  fill: #c5c2cc;
  font-size: 16px;
  font-style: italic;
}

.pi-grid {
  display: flex;
}

.pi-left {
  display: flex;
}

.pi-mid {
  display: flex;
  flex-wrap: wrap;
  width: 260px;
}

.pi-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pi-cell {
  width: 24px;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 0.2s;
}

.pi-cell.hide {
  opacity: 0.2;
}

.pi-operator {
  padding: 0 4px;
}

.pi-cell, .pi-operator {
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid white;
}

.pi-legend {
  display: flex;
  justify-content: center;
}
.pi-legend .pi-cell {
  color: white;
  margin: 20px 3px 0 3px;
}

.pi-box {
  padding: 0;
}

.pi-controls {
  margin-bottom: 1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 12px 20px 11px;
  border-bottom: 1px solid white;
}
.pi-controls:before, .pi-controls:after {
  display: table;
  content: " ";
  clear: both;
}
.pi-controls input {
  background: white;
  padding: 4px 8px;
  margin: -4px 0 -4px 8px;
  border-radius: 4px;
  width: 120px;
}
.pi-controls .pi-warning {
  color: #cd0e66;
  font-style: italic;
  float: right;
}

x-pi-scroll {
  height: 300px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 12px 20px 12px 40px;
}
x-pi-scroll .first-row {
  margin: 0 0 -29px -24px;
}

.constellations {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}
.constellations .bg, .constellations .wheel, .constellations .fg {
  background-size: cover;
}
.constellations .wheel, .constellations .fg {
  position: absolute;
  top: 24px;
  width: 100%;
}
.constellations svg line {
  stroke: #001327;
  stroke-width: 2px;
}
.constellations .bg {
  padding-bottom: 63%;
  background-image: url(/content/circles/images/star-wheel-1.svg);
}
.constellations .wheel {
  padding-bottom: 100%;
  background-image: url(/content/circles/images/star-wheel-2.svg);
  will-change: transform;
  height: 0;
}
.constellations .fg {
  padding-bottom: 63%;
  background-image: url(/content/circles/images/star-wheel-3.svg);
  pointer-events: none;
}
.constellations .label {
  background: #001327;
  position: relative;
  color: white;
  width: 160px;
  margin: 0 auto;
  border-radius: 4px;
  line-height: 24px;
  font-size: 14px;
  text-align: center;
}
.constellations .label:after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-top: 5px #001327 solid;
  border-left: 5px transparent solid;
  border-right: 5px transparent solid;
}
.constellations + x-gesture {
  fill: rgba(0, 0, 0, 0.8);
  stroke: rgba(255, 255, 255, 0.8);
}

#radians-conversion .space {
  margin: 0 4px;
}
#radians-conversion .rotate {
  display: inline-block;
  font-size: 1.5em;
  margin: -0.4em 0 0.2em 0;
}
#radians-conversion .rotate.left {
  transform: rotate(135deg);
}
#radians-conversion .rotate.right {
  transform: rotate(45deg);
}

#radians-distance .earth {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 40px;
  left: 40px;
  background: url(/content/circles/images/earth.svg);
  background-size: contain;
}
#radians-distance .iss {
  width: 57px;
  height: 33px;
  position: absolute;
  top: 0;
  /* rtl:ignore */
  left: 0;
  background: url(/content/circles/images/iss.svg);
  background-size: contain;
  margin: -17px -29px;
}
#radians-distance .time {
  position: absolute;
  top: 5px;
  left: 12px;
  color: #cd0e66;
  font-weight: 600;
}

.eqn-gap {
  display: inline-block;
  margin: 0 8px;
}

.calculator {
  background: #3a3645;
  padding: 8px;
  border-radius: 6px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.calculator:before, .calculator:after {
  display: table;
  content: " ";
  clear: both;
}
.calculator .display {
  background: #c5c2cc;
  border-radius: 4px;
  padding: 8px 14px;
  position: relative;
  margin: 6px 6px 12px 6px;
  font-size: 36px;
  line-height: 40px;
  height: 40px;
}
.calculator .display img {
  width: 40px;
  height: 40px;
  position: absolute;
  display: none;
}
.calculator .button {
  background: #5e5870;
  border-radius: 4px;
  float: left;
  width: 36px;
  height: 32px;
  padding: 8px;
  margin: 6px;
  line-height: 32px;
  font-size: 24px;
  color: white;
  text-align: center;
  box-shadow: 0 3px 0 #181824;
  cursor: pointer;
  transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
}
.calculator .button:hover {
  background: #6a637e;
}
.calculator .button:active {
  box-shadow: none;
  transform: translateY(3px);
}
.calculator .button.wide {
  width: 64px;
}
.calculator .button.num {
  background: #255c9c;
}
.calculator .button.num:hover {
  background: #2f74c5;
}
.calculator .button.mode {
  background: #9c6123;
}
.calculator .button.mode:hover {
  background: #c67b2c;
}
.calculator .setting {
  position: absolute;
  top: 4px;
  right: 13px;
  background: #3a3645;
  border-radius: 4px;
  line-height: 12px;
  font-size: 12px;
  padding: 2px 6px;
  color: white;
}

#eratosthenes-1 x-geopad {
  background: none;
}
#eratosthenes-1 .sunrays {
  display: block;
  position: absolute;
}
#eratosthenes-1 .shadow {
  fill: #ccc;
  transition: fill 0.2s;
}
#eratosthenes-1 .obelisk {
  transform-origin: center bottom;
}
#eratosthenes-1 .earth-cover.fill {
  fill: transparent;
}
#eratosthenes-1.focus .sunrays {
  opacity: 0.2;
}
#eratosthenes-1.focus .shadow {
  fill: #eee;
}
#eratosthenes-1.focus .earth-cover.fill {
  fill: rgba(255, 255, 255, 0.9);
}

.large-op {
  position: absolute;
  top: 60px;
  right: -36px;
  font-size: 42px;
}

x-geopad.geo-sketch .labels text {
  stroke: none !important;
}
x-geopad.geo-sketch ellipse {
  stroke: #96969e;
  stroke-width: 2px;
  fill: rgba(253, 140, 0, 0.3);
  transition: opacity 0.2s;
}
x-geopad.geo-sketch .light.green, x-geopad.geo-sketch .light.teal {
  opacity: 0.3;
}
x-geopad.geo-sketch .light.focus {
  opacity: 0.6;
}
.focus x-geopad.geo-sketch ellipse {
  opacity: 0.3;
}

.sphere-maps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.sphere-maps .left {
  width: 240px;
  margin: 12px;
}
.sphere-maps .right {
  width: 400px;
  flex-grow: 1;
  margin: 12px;
}
.sphere-maps svg {
  width: 100%;
}
.sphere-maps .right svg {
  touch-action: none;
}
.sphere-maps .outline {
  fill: #82bcf4;
}
.sphere-maps .grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.5px;
}
.sphere-maps .land {
  fill: #8cd08d;
  stroke: #187819;
  stroke-width: 0.6px;
}
.sphere-maps .map-select {
  stroke: #cd0e66;
  stroke-width: 2px;
  fill: rgba(205, 14, 102, 0.4);
}

x-conic-section {
  display: block;
  margin: 1em auto 0;
  cursor: ew-resize;
  background: url(/content/circles/images/conics-bg.jpg);
  background-size: cover;
}

.conics {
  margin: 2em 0;
}
@media screen and (max-width: 640px) {
  .conics {
    margin: 1.5em 0;
  }
}
.conics p {
  margin: 0;
}
.conics svg {
  display: block;
  margin: 0 auto;
}
.conics .row > * {
  background: #c5c2cc;
  position: relative;
  background: #c5c2cc;
  border-radius: 6px;
  padding: 2px 16px 12px;
  text-align: center;
  box-sizing: border-box;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  width: 154px;
  margin: 12px;
}
.conics .row > *:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -73px;
  border-bottom: 14px #c5c2cc solid;
  border-left: 73px transparent solid;
  border-right: 73px transparent solid;
}
.conics .row > *.hide {
  opacity: 0;
  pointer-events: none;
}
.conics .row > *:hover {
  opacity: 0.6;
  transform: translateY(-6px);
}
.conics .row > *.active {
  opacity: 1;
  transform: translateY(-12px);
  cursor: default;
}

.newton {
  position: relative;
}
.newton.interactive {
  cursor: pointer;
}
.newton img {
  display: block;
}
.newton .over {
  position: absolute;
  top: 0;
}
.newton .apple {
  position: absolute;
  top: 38px;
  left: 144px;
}
.newton .credit {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px 8px;
  font-size: 10px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  border-bottom-left-radius: 4px;
}
.newton:hover .credit {
  opacity: 0.8;
}