/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
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;
}

.svg-block {
  margin: 0 0 1em 0;
}

x-parallax.full-width {
  position: relative;
  left: calc(520px - 50vw);
  height: 480px;
  margin: 1.5em 0;
  width: calc(100vw - 280px);
}
@media screen and (max-width: 1120px) {
  x-parallax.full-width {
    left: -40px;
  }
}
@media screen and (max-width: 840px) {
  x-parallax.full-width {
    width: 100vw;
  }
}
@media screen and (max-width: 540px) {
  x-parallax.full-width {
    left: -24px;
  }
}
x-parallax.full-width .credit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 11px;
  padding: 1px 8px;
}

@keyframes effects-pulse-down {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.9);
  }
  65% {
    transform: scale(1.04);
  }
  85% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}
.effects-pulse-down {
  animation: effects-pulse-down 0.5s;
}

.drawing-path {
  fill: none;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
html[theme=dark] .drawing-path {
  stroke: rgba(255, 255, 255, 0.8);
}

.node {
  stroke: #f5f5f6;
  fill: #cd0e66;
  stroke-width: 2px;
  cursor: move;
}
html[theme=dark] .node {
  stroke: #2d2c38;
}

.link {
  stroke: #c5c2cc;
  stroke-width: 2px;
  fill: transparent;
}

.arrow {
  fill: #c5c2cc;
}

.graph {
  background: #f5f5f6;
  border-radius: 4px;
}
html[theme=dark] .graph {
  background: #2d2c38;
}

#graph0 .node {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1);
  transform-origin: center;
}

#graph0.novertices .node {
  transform: scale(0);
  cursor: default;
}

#graph0 .link {
  stroke-dasharray: 70px;
  stroke-dashoffset: 140px;
  transition: stroke-dashoffset 1.6s;
}

#graph0.noedges .link {
  stroke-dashoffset: 70px;
}

.person {
  display: inline-block;
  width: 24px;
  height: 24px;
  text-align: center;
  color: #FFF;
  border-radius: 20px;
  line-height: 24px;
  font-weight: 600;
}

.handshakes .duplicate {
  opacity: 1;
  transition: opacity 0.5s;
}

.complete .handshakes .duplicate {
  opacity: 0.1;
}

.handshakes td {
  text-align: center;
  color: #666;
}

@media screen and (max-width: 1100px) {
  .handshakes {
    width: 100%;
    max-width: 500px;
    line-height: 1.4;
  }
  .handshakes .person {
    margin-left: calc(50% - 12px);
    margin-right: calc(50% - 12px);
  }
}
.house {
  fill: #eee;
}
html[theme=dark] .house {
  fill: #383742;
}

.bridge {
  fill: #fd8c00;
  stroke: transparent;
  stroke-width: 16px;
  transition: fill 0.2s;
}

.bridge.green {
  fill: #22ab24;
}

.bridge.red {
  fill: #cd0e66;
}

.water {
  fill: #57a8f6;
}

#planarity {
  margin-top: -20px;
}

#planarity circle {
  fill: #0f82f2;
  cursor: move;
  stroke: #cfe6fc;
  stroke-width: 2.5px;
}

#planarity circle.intersect {
  fill: #cd0e66;
}

#planarity line {
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2.5px;
}

#planarity line.intersect {
  stroke: #cd0e66;
}

#konigsberg-proof text {
  font-weight: 600;
  text-anchor: middle;
  fill: white;
  font-size: 32px;
}

.utility {
  z-index: 10;
}

.utility1, .utility2, .utility3 {
  opacity: 0;
  transition: opacity 0.3s;
}

#planar-1 .link, #planar-2 .link, #planar-3 .link {
  stroke-width: 3px;
}

.box > .btn, .tab .btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.tab .btn.right {
  left: auto;
  right: 10px;
}

.four-colour-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.four-colour-icon {
  width: 40px;
  height: 40px;
  border: 5px solid transparent;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 100%;
  opacity: 0.6;
}

.four-colour-icon.on {
  border-color: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.four-colours .solve {
  left: auto;
  right: 10px;
}

.four-colours path {
  transition: 0.2s;
  cursor: pointer;
}
.four-colours path:hover {
  opacity: 0.8;
}

.colour-count {
  color: #181824;
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 -12px;
  text-align: center;
}

#dominoes {
  cursor: pointer;
}

#dominoes g rect {
  fill: #999;
}

#dominoes g text {
  fill: #F2F2F2;
  font-size: 18px;
  letter-spacing: -1px;
}

#dominoes g { /* rtl:ignore */
  transform-origin: bottom right;
  transition: transform 0.1s linear;
}

.tsm {
  background: url(/content/graph-theory/images/map.jpg);
  background-size: cover;
  border-radius: 6px;
}
.tsm rect {
  fill: transparent;
  cursor: pointer;
}
.tsm circle {
  fill: #cd0e66;
  cursor: move;
}
.tsm path {
  fill: none;
  stroke: #0f82f2;
  stroke-width: 6;
}

.vertex-orders text {
  font-size: 18px;
  fill: white;
}

.vertex-orders circle {
  transition: fill 0.5s;
}

.euler-sum {
  opacity: 0;
  margin: 0.4em 0 0;
  padding-top: 0.4em;
  border-top: 1px solid #ddd;
}

#euler-2 .node {
  stroke: white;
}

.euler-table {
  position: absolute;
  background: #e2e1e6;
  top: 20px;
  right: 0;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.2;
}
.euler-table p {
  margin: 0;
}