/* Emerald Valley Library - Interactive Mathematics, generated by Mathigon Studio */
x-buckets {
  display: block;
  margin: 1.5em 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #333;
}
x-buckets .inputs, x-buckets .bucket {
  position: relative;
}
x-buckets .inputs > *, x-buckets .bucket > * {
  position: absolute;
}
x-buckets .inputs {
  z-index: 1;
}
x-buckets .buckets {
  display: flex;
  margin: 0 -8px;
  flex-wrap: wrap;
  justify-content: center;
}
x-buckets .input {
  cursor: move;
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  padding: 5px 12px;
  margin: 6px 0;
  border-radius: 4px;
  width: 180px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  transition: left 0.2s, top 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
x-buckets .inputs .input {
  background: #c5c2cc;
}
x-buckets .input.error {
  background: #e9b0cb;
  color: #cd0e66;
}
x-buckets .input.active {
  z-index: 1;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  color: inherit;
}
x-buckets .bucket {
  width: 200px;
  border-radius: 8px;
  margin: 6px;
  position: relative;
  padding-bottom: 6px;
  background: #3a3645;
  transition: box-shadow 0.2s;
}
x-buckets .bucket .title {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: white;
}
x-buckets .bucket.active {
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.4);
}

article.gameshow .page-background {
  background: url("/content/probability/images/lights.jpg") no-repeat center top;
  background-size: cover;
  background-position: center;
  transform: translate3D(0, 0, 0);
}

.p-line img {
  float: left;
  display: block;
}

.probTable table {
  width: 100%;
  table-layout: fixed;
}

.probTable td {
  overflow: hidden;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.probTable tr:last-child td {
  border-bottom: none;
}

.dice {
  width: 20px;
  height: 20px;
  background: #cd0e66;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: white;
  fill: white;
  display: inline-block;
  border-radius: 4px;
  line-height: 20px;
  text-align: center;
  font-size: 80%;
}
.dice.outline {
  background: rgba(205, 14, 102, 0.2);
  border-color: #cd0e66;
  color: #cd0e66;
  font-weight: bold;
  vertical-align: 1px;
}
.dice svg {
  vertical-align: -4px;
  display: inline-block;
}

.dice-table tr:first-child td {
  border-bottom: 1px solid #c5c2cc;
}
.dice-table td {
  width: 64px;
  padding: 4px 0;
  border-right: 1px solid #c5c2cc;
}
.dice-table td:last-child {
  border-right: none;
}

.pBox {
  width: 100%;
  height: 200px;
  position: relative;
}

.diceCount {
  width: 100%;
  position: absolute;
  bottom: 0;
  background: rgba(15, 130, 242, 0.4);
}

.diceProb {
  width: 100%;
  position: absolute;
  bottom: 0;
  background: #22ab24;
  height: 3px;
}

x-buckets.independent .input {
  width: 220px;
}
x-buckets.independent .bucket {
  width: 300px;
}
x-buckets.independent .bucket:nth-child(1) {
  background: #25abb2;
}
x-buckets.independent .bucket:nth-child(2) {
  background: #8157c7;
}

.gameshow .btn {
  background: rgba(255, 255, 255, 0.8);
  color: #5f034d;
}
.gameshow .btn:hover, .gameshow .btn:focus {
  background: white;
  color: #5f034d;
}
.gameshow .btn.disabled, .gameshow .btn:disabled {
  color: #5f034d !important;
  background: white !important;
  opacity: 0.2;
}

.monty-hall {
  padding: 21% 0 2em;
  position: sticky;
  top: 40px;
  z-index: 1;
  background: url("/content/probability/images/doorframe.png") no-repeat;
  background-size: contain;
}
.monty-hall .door-box {
  float: left;
  width: 16%;
  margin: 0 4%;
  padding-bottom: 24%;
  position: relative;
  perspective: 450px;
  background: url("/content/probability/images/goat.png");
  background-size: contain;
}
.monty-hall .door-box.car {
  background-image: url("/content/probability/images/car.png");
}
.monty-hall .door-box:first-child {
  margin-left: 18%;
}
.monty-hall .door-box:before {
  content: " ";
  display: block;
  position: absolute;
  background: url("/content/probability/images/arrow.png") no-repeat;
  width: 62%;
  height: 35%;
  z-index: 10;
  background-size: contain;
  left: 20%;
  top: -24%;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.2s, transform 0.2s;
}
.monty-hall.selectable .door-box:hover:before {
  opacity: 1;
  transform: translateY(-10px);
}
.monty-hall .door-box.selected:before {
  opacity: 1;
  transform: none !important;
}
.monty-hall .door {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform 1s, box-shadow 0.3s;
  background: url("/content/probability/images/door.png");
  background-size: contain;
}
.monty-hall.selectable .door {
  cursor: pointer;
}
.monty-hall .door-box.open .door {
  transform: rotateY(-95deg);
}
.monty-hall .floor {
  clear: both;
  padding-bottom: 13%;
  background: url("/content/probability/images/floor.png");
  background-size: cover;
}

.monty-reveal {
  transition: opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}

.monty-reveal.visible {
  opacity: 1;
  pointer-events: all;
}

#monty-hall .btn {
  margin: 0 16px;
}

.galton .ball {
  fill: #cd0e66;
}

.ballCount {
  width: 120%;
  position: absolute;
  bottom: 0;
  background: rgba(15, 130, 242, 0.4);
}

.ballTable table {
  table-layout: fixed;
}

.ballProb {
  width: 120%;
  position: absolute;
  bottom: 0;
  background: #22ab24;
  height: 3px;
}

.radioactive circle {
  fill: #cd0e66;
}
.radioactive circle.off {
  fill: #0f82f2;
  transform: scale(0.7);
}