/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
@media screen and (min-width: 680px) {
  .shift-1 {
    margin-top: -70px !important;
  }
}
.space {
  display: inline-block;
  width: 20px;
}

.mountain {
  background: white;
  box-shadow: 0 0 30px 10px white;
  z-index: 100;
}
html[theme=dark] .mountain {
  background: #22212e;
}
html[theme=dark] .mountain {
  box-shadow: 0 0 30px 10px #22212e;
}

.task {
  color: #0f82f2;
  border-bottom: 2px solid #0f82f2;
  padding-bottom: 0.5em;
  margin-bottom: 0.7em;
  font-weight: 600;
}

.middle {
  width: 300px;
  height: 300px;
  top: calc(50vh - 150px);
}

.theorem .row.padded {
  margin: -1em -24px -1em;
}

.theorem svg {
  overflow: visible;
}

#pythagoras-proof x-geopad {
  background: transparent;
  position: relative;
  stroke-linejoin: round;
}
#pythagoras-proof .tri {
  fill: #82bcf4;
}
#pythagoras-proof.focus .tri:not(.focus) {
  fill: #deeaf6;
}
#pythagoras-proof .square {
  fill: #e182ae;
}
#pythagoras-proof.focus .square:not(.focus) {
  fill: #f1dee8;
}
#pythagoras-proof .label {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.4);
  color: white;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
}
#pythagoras-proof .label.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-timing-function: linear, cubic-bezier(0.33, 1.9, 0.52, 0.7);
}
#pythagoras-proof .similar-triangle .light {
  opacity: 0.2;
}

.proof-table .pill {
  border-radius: 12px;
  margin-bottom: 6px;
}
.proof-table .pill mfrac {
  margin: 0.2em 0;
}
.proof-table p {
  margin-bottom: 8px !important;
}

#pythagorean-triples-grid circle.move {
  fill: #0f82f2;
  transition: r 0.2s;
}
#pythagorean-triples-grid .thick {
  stroke: #0f82f2;
  transition: none;
}
#pythagorean-triples-grid .label {
  position: absolute;
  background: #0f82f2;
  border-radius: 4px;
  color: white;
  padding: 1px 8px;
  transform: translate(-50%, -50%);
}
#pythagorean-triples-grid .triple circle.move {
  fill: #22ab24;
}
#pythagorean-triples-grid .triple .thick {
  stroke: #22ab24;
  fill: rgba(34, 171, 36, 0.2);
}
#pythagorean-triples-grid .triple .label {
  background: #22ab24;
}

.qed {
  display: block;
  float: right;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  margin-top: 8px;
}