@media screen and (max-width: 500px) {
  :root {
    font-size: calc(0.5vw + 0.8rem + 0.5vh);
  }
  .controls:nth-of-type(1) {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0.5rem 1rem;
  }
  .button-wrapper {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5rem 1rem;
  }
  .settings {
    width: 95%;
    --inline-padding: 1.2rem;
  }
  .settingsButtons {
    font-size: 0.8rem;
  }
  .settings input[type="range"] {
    appearance: none;
    width: 5rem;
  }
  .settings input[type="range"]::-webkit-slider-runnable-track {
    height: 0.4rem;
  }
  .settings input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 0.8rem;
    width: 0.45rem;
    margin-top: -0.2rem;
    background-color: red;
    outline: 1px solid green;
  }
  .content-wrapper {
    padding: 1rem;
  }
  .controls:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    white-space: nowrap;
  }
  .description {
    display: block;
  }
  .simAllInputs button {
    font-size: 0.6rem;
  }
  .simAllInputs input {
    width: 0.7rem;
    height: 0.7rem;
  }
  .output {
    min-width: 80vw;
  }
  .saveDist::before {
    content: "Saved!";
    position: absolute;
    inset: 0;
    transition: opacity 500ms;
    color: var(--font-clr);
    font-size: 0.7rem;
    opacity: 0;
    top: -90%;
  }
  .extraInputs {
    flex-direction: column;
    gap: 1rem;
  }
  .simAllInputs {
    width: max-content;
  }
  .boughtVars table,
  .boughtVars tr,
  .boughtVars td {
    border-collapse: collapse;
    padding: 0.3rem;
    text-align: center;
    font-size: 0.63rem;
  }
}