.mathlimbo-container {
  width: 1000px;
  height: 600px;
  margin: auto;
  border: 1px solid #808080;
  display: flex;
  position: relative;
  user-select: none;
}

.mathlimbo-control {
  display: none;
}

.mathlimbo-question-pane {
  flex: 1;
  background-color: var(--theme-color);
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mathlimbo-info {
  background: #fff;
  width: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mathlimbo-info > :first-child {
  font-size: 3em;
}

.mathlimbo-info > :last-child {
  font-size: 2em;
}

.mathlimbo-question-container {
  color: var(--theme-color);
  background: #fff;
  height: 300px;
  width: 300px;
}

.mathlimbo-question-container-expression {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
}

.mathlimbo-question-container-frame-vertical {
  flex-direction: column;
}

.mathlimbo-question-container-frame-horizontal,
.mathlimbo-question-container-frame-vertical {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mathlimbo-question-frame-horizontal {
  display: flex;
  flex-wrap: wrap;
  width: 250px;
}

.mathlimbo-question-frame-vertical {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  height: 250px;
  width: 100px;
}

.mathlimbo-question-frame-cell {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #eee;
  box-shadow:
    0px 0px 0px 1px gray inset,
    0px 0px 0px 1px gray;
}

.mathlimbo-question-frame-cell-picture {
  width: 45px;
  height: 45px;
  position: relative;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mathlimbo-question-frame-cell-ten,
.mathlimbo-question-frame-cell-one {
  width: 38px;
  height: 38px;
  border: 2px solid #000;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.mathlimbo-question-frame-cell-ten {
  background-color: #f1a9a0;
}

.mathlimbo-question-frame-cell-one {
  background-color: #81cfe0;
}

.mathlimbo-question-container-disks {
  color: #fff;
  display: flex;
  gap: 10px;
  padding: 40px 30px;
  height: 100%;
  width: 100%;
}

.mathlimbo-question-rod {
  background: #fff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  flex: 1;
  gap: 2px;
}

.mathlimbo-question-rod-disk {
  width: 3ch;
  font-size: 2em;
  border-radius: 5px;
  background: var(--theme-color);
  text-align: center;
}

.mathlimbo-answers-pane {
  width: 600px;
  border-left: 1px solid #808080;
  background-color: #eee;
  /* display: flex; */
  /* flex-wrap: wrap; */
  position: relative;
  gap: 5px;
  align-content: center;
  justify-content: center;
  overflow: hidden;
}

.mathlimbo-answers-string-container {
  position: absolute;
  top: 0%;
  left: 50%;
  height: 50%;
  width: 350px;
  transform: translateX(-50%);
  /* background-color: #fff; */
  display: flex;
  justify-content: space-around;
}

.mathlimbo-answers-string {
  /* width: 8px; */
  width: 4px;
  height: 70%;
  background-color: #808080;
}

.mathlimbo-answers-container {
  width: 350px;
  height: 300px;
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  background-color: #808080;
  display: flex;
  justify-content: center;
  flex-direction: column-reverse;
}

.mathlimbo-answer-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.mathlimbo-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;

  width: 5em;
  height: 2em;
  border-radius: 5px;
  background: var(--theme-color);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 2em;
  font-family: inherit;
  cursor: pointer;
}

.mathlimbo-start:hover {
  opacity: 0.75;
}

.mathlimbo-answer {
  width: 60px;
  height: 60px;
  font-size: 25px;
  border-radius: 50%;
  background-color: var(--theme-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mathlimbo-answer:hover {
  opacity: 0.75;
}

.mathlimbo-answer-select-type .mathlimbo-answer:not(.mathlimbo-picked):hover {
  border: 5px dotted #fff;
}

.mathlimbo-picked {
  border: 5px solid #fff;
}

.mathlimbo-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6em;
  font-weight: bold;
  font-style: italic;
  white-space: nowrap;
  text-shadow:
    #fff 3px 0px,
    #fff -3px 0px,
    #fff 0px 3px,
    #fff 0px -3px;
  box-shadow:
    #fff 0px 0px 5px,
    #fff 0px 0px 10px,
    #fff 0px 0px 15px,
    #fff 0px 0px 20px,
    #fff 0px 0px 25px,
    #fff 0px 0px 30px;
  background: #fff;
  padding: 0 1ch;
}

@keyframes shake {
  0% {
    transform: translateX(5px);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.mathlimbo-shake {
  animation: shake 0.25s;
}
