/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
x-binary-swipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5em 0;
}
x-binary-swipe h3 {
  text-transform: uppercase;
  color: #aaa;
  font-size: 22px;
  margin-top: 0;
}
x-binary-swipe .stack {
  height: 260px;
  width: 220px;
  position: relative;
  margin: 20px auto;
  border-radius: 8px;
  background: #f5f5f6;
}
x-binary-swipe .option .stack .card-wrap {
  z-index: 10;
}
x-binary-swipe .card-wrap {
  position: absolute;
  top: 0;
  left: 0;
}
x-binary-swipe .card-wrap.active {
  cursor: grab;
}
x-binary-swipe .card-wrap.dragging {
  z-index: 20;
}
x-binary-swipe .card {
  border-radius: 8px;
  color: white;
  height: 260px;
  width: 220px;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.2s, transform 0.2s;
}
x-binary-swipe .card.c-red {
  background: #cd0e66;
}
x-binary-swipe .card.c-orange {
  background: #eb4726;
}
x-binary-swipe .card.c-yellow {
  background: #fd8c00;
}
x-binary-swipe .card.c-lime {
  background: #bfc212;
}
x-binary-swipe .card.c-green {
  background: #22ab24;
}
x-binary-swipe .card.c-teal {
  background: #009ea6;
}
x-binary-swipe .card.c-blue {
  background: #0f82f2;
}
x-binary-swipe .card.c-purple {
  background: #6d3bbf;
}
x-binary-swipe .card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  display: block;
  height: 100%;
  background: transparent;
  transition: background 1s;
  mix-blend-mode: overlay;
}
x-binary-swipe .card-wrap.committed-left .card::after {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .card-wrap.committed-right .card::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .option .card {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
x-binary-swipe .card-wrap.active .card {
  transform: scale(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
x-binary-swipe .card-wrap.dragging .card {
  transform: scale(1.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

x-relation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 1.5em auto;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
x-relation .item {
  background: #f5f5f6;
  border: 1px solid #ccc;
  padding: 3px 12px;
  margin: 6px 0;
  border-radius: 4px;
}
x-relation .item.active {
  background: #e1e1e1;
}
x-relation .item img, x-relation .item svg, x-relation .item object {
  width: 100%;
  pointer-events: none;
}
x-relation .domain, x-relation .range {
  width: 33.333%;
}
x-relation .domain .item {
  cursor: pointer;
}
x-relation svg.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
x-relation .connections line {
  stroke: #656073;
  stroke-width: 4px;
  stroke-linecap: round;
}

x-geopad svg .paths path.geopoly-helper-edge {
  visibility: hidden;
}

button.reset {
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  display: block;
}

figure svg {
  margin-left: auto;
  margin-right: auto;
}

svg path.transparent-draggable, circle.transparent-draggable {
  fill: transparent;
}

#performance-1 x-geopad .paths path.rope {
  stroke: #cd0e66;
}
#performance-1 x-geopad .paths path.performance-unit {
  stroke-width: 2px;
}
#performance-1 x-geopad .paths path.performance-unit-selected {
  fill: #22ab24;
}

.rect-placement x-img {
  position: absolute;
}
.rect-placement x-polypad .active .tile .outline {
  stroke-width: 2px;
}

.grass-placement, .strip-placement {
  width: 600px;
  height: 350px;
}
.grass-placement x-img, .grass-placement div.field, .strip-placement x-img, .strip-placement div.field {
  margin-left: 75px;
}
.grass-placement div.field, .strip-placement div.field {
  width: 525px;
  height: 350px;
}

x-geopad .paths path.fill-square {
  fill: #cd0e66;
}

#glass-area x-polypad {
  width: 600px;
  height: 400px;
}

.parallelogram-selection svg path.parallelogram.correct {
  fill: #bfc212;
}
.parallelogram-selection svg path.incorrect {
  fill: #cd0e66;
}

#world-trade-center x-polypad svg path.height {
  stroke: #bfc212;
  stroke-width: 2px;
}

x-geopad.base-height .paths path.edge {
  color: #3a3645;
  stroke-width: 4px;
}
x-geopad.base-height .paths path.edge-hover {
  color: white;
}
x-geopad.base-height .paths path.selected-edge {
  color: #cd0e66;
}
x-geopad.base-height .paths path.height {
  stroke-dasharray: 6;
}

#area-3 x-geopad.init {
  opacity: 0;
}
#area-3 x-geopad.vis {
  opacity: 1;
}
#area-3 x-polypad {
  width: 600px;
  height: 400px;
}

#triangle-selection svg path.vis {
  opacity: 1 !important;
}

x-geopad svg .paths path.angle-other {
  color: #0f82f2 !important;
}
x-geopad svg .paths path.angle-perpendicular {
  color: #cd0e66 !important;
}

x-geopad .paths path.voronoi {
  /* each($voronoi-colors, {
    &-index {
      fill: $value;
      stroke: $grey;
      stroke-width: 2px;
    }
  }); */
}

#voronoi-2 x-geopad svg .paths path.edge {
  stroke-width: 4px;
  color: #3a3645;
}
#voronoi-2 x-geopad svg .paths path.edge-hover {
  color: white;
}
#voronoi-2 x-geopad svg .paths path.selected-edge {
  color: #cd0e66;
}
#voronoi-2 x-geopad svg .paths path.height {
  stroke-dasharray: 6;
}

#populations x-geopad svg .paths path.population-pentagon {
  stroke: white;
  stroke-width: 3px;
}

#simple-tangram figure {
  border-radius: 6px 6px 0 0;
  background: #f5f5f6;
}
#simple-tangram figure .simple-tangram-bg {
  background: url("images/square.svg") center no-repeat;
  background-size: contain;
  opacity: 0.2;
}

#currys-paradox-1 svg.solution-outline {
  stroke: #3a3645;
  stroke-width: 1px;
  fill: none;
}

#simple-tangram .simple-tangram-bg, #simple-tangram .solution-outline, #currys-paradox-1 .simple-tangram-bg, #currys-paradox-1 .solution-outline {
  width: 100%;
  position: absolute;
}
#simple-tangram .simple-tangram-bg, #simple-tangram .solution-outline, #simple-tangram x-polypad, #currys-paradox-1 .simple-tangram-bg, #currys-paradox-1 .solution-outline, #currys-paradox-1 x-polypad {
  height: 450px;
}

#currys-paradox-2 x-polypad {
  height: 225px;
}

#currys-paradox-3 x-polypad, #currys-paradox-4 x-polypad, #currys-paradox-5 x-polypad {
  height: 225px;
}

#currys-paradox-3 x-slider button.play, #currys-paradox-5 x-slider button.play {
  display: none;
}

#currys-paradox-6 x-polypad {
  height: 475px;
}

#currys-paradox-3 x-polypad svg g.tiles g.tile path.curry-outline, #currys-paradox-5 x-polypad svg g.tiles g.tile path.curry-outline, #currys-paradox-6 x-polypad svg g.tiles g.tile path.curry-outline {
  stroke: #bfc212;
  stroke-width: 4px;
  fill: none;
}

.wheel-distances svg path.distline, .wheel-distances svg path.wheel-outline {
  stroke: #cd0e66;
  stroke-width: 3px;
}
.wheel-distances svg path.wheel-outline {
  fill: none;
}

.tire-circumference {
  width: 600px;
  margin: auto;
  position: relative;
}
.tire-circumference svg {
  position: absolute;
  top: 0;
  width: 600px;
  height: 300px;
}
.tire-circumference svg path.shape-display {
  fill: none;
  stroke: #bfc212;
  stroke-width: 3px;
}
.tire-circumference img {
  width: 300px;
  height: 250px;
  margin-left: 150px;
  margin-top: 25px;
}

svg path.resize-edge {
  stroke: #3a3645;
  stroke-width: 3px;
}
svg path.resize-edge.resize-on-target {
  stroke: #bfc212;
}
svg path.nesw-corner:hover {
  cursor: nesw-resize;
}
svg path.nwse-corner:hover {
  cursor: nwse-resize;
}

x-geopad svg path[class=diameter-progress] {
  stroke: none;
}

.map {
  width: 400px;
  height: 400px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}
.map > svg {
  width: 400px;
  height: 400px;
  position: absolute;
}

x-geopad svg path.large-slice, x-geopad svg path.medium-slice {
  transition-property: transform, opacity;
  transition-duration: 1.5s;
}
x-geopad svg path.large-slice.background-slice, x-geopad svg path.medium-slice.background-slice {
  opacity: 0.5;
}
x-geopad svg path[class=slice-guide], x-geopad svg path[class=slice-outline] {
  stroke: #3a3645;
}
x-geopad svg path.slice-guide {
  stroke-dasharray: 10;
  stroke-linecap: unset;
}
x-geopad svg path.pizza-outline {
  stroke: white;
}
x-geopad svg path.slice-dimension {
  stroke: #bfc212;
}
x-geopad svg path.slice-guide, x-geopad svg path.pizza-outline, x-geopad svg path.slice-outline, x-geopad svg path.slice-dimension {
  stroke-width: 4px;
}

svg path.slice-guide-2 {
  stroke: #3a3645;
  stroke-width: 1px;
  stroke-dasharray: 3;
}
svg path.slice-radius {
  stroke: #3a3645;
  stroke-width: 1px;
}
svg path.slicing-progress {
  stroke: #009ea6;
  stroke-width: 1px;
}

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