:root {
  --outline-color: #a0a0a0;
  --outside-background-color: #fcfff8;
  --app-background-color: #deedd5;
  --lighter-background-color: #e8f7de;
  --ladle-animation-duration: 1s;
  --ladle-fade-duration: 0.5s;
}

body {
  width: 40rem;
  margin: auto;
  background-color: var(--outside-background-color);
  line-height: 1.5;
}

#app {
  margin-top: 2rem;
  padding: 0.5rem 1rem 1rem 1rem;
  background-color: var(--app-background-color);
  border: 1px solid var(--outline-color);
}

.navbar {
  text-align: center;
}

.navbar hr {
  width: 110%;
  position: relative;
  left: -5%;
}

.navbar a {
  padding: 0.5em 1em;
  margin: 0 1em;
}

.rules, .intro {
  border: 1px solid var(--outline-color);
  padding: 0 0.5rem;
  background-color: var(--lighter-background-color);
}

.rules img {
  border: 1px solid var(--outline-color);
  max-width: 80%;
}

.keypad {
  width: 15rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.keypad .button {
  padding: 1rem;
  min-width: 4rem;
}

.keypad .button:last-child:nth-child(3n - 1) {
  grid-column-end: -1;
}

.keypad .button:nth-last-child(2):nth-child(3n + 1) {
  grid-column-end: -2;
}

.button {
  margin: 0.1rem;
}

.graph path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3px;
}

.what-is-numberdle-selector {
  float: right;
}

ul p {
  margin: 0;
}

.ladle-div {
  animation-duration: var(--ladle-animation-duration), var(--ladle-fade-duration);
  animation-delay: 0s, var(--ladle-animation-duration);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.25, 0.1, 1), linear;
  animation-name: ladle-move, fade-out;
  z-index: 1;
  position: absolute;
}

.formuladle .history .guess > :not(.ladle-div){
  opacity: 0;

  animation-duration: var(--ladle-fade-duration);
  animation-delay: var(--ladle-animation-duration);
  animation-fill-mode: forwards;
  animation-name: fade-in;
}

.formuladle .history ul {
  padding: 0;
}

@keyframes ladle-move {
  from {
    margin-top: -20%;
    margin-left: 10%;
  }

  to {
    margin-top: 0%;
    margin-left: 0%;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.ladle-div svg {
  rotate: 0.05turn;
}

.formuladle svg.ladle {
  width: 12rem;
  height: 12rem;

  left: 50px;
  position: absolute;
}

.formuladle .graph {
  margin-bottom: 1rem;
  background: var(--lighter-background-color);
  border: 1px solid var(--outline-color);
}

.guess {
  padding-left: 1rem;
  padding-right: 1rem;
}

.formuladle .history-list li {
  display: inline-block;
}
