#root header p:has(a[href*="nuevasciencias.substack.com"]) {
  display: none;
}

@media (max-width: 640px) {
  #root {
    overflow-x: hidden;
  }

  #root > div {
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.25rem;
  }

  #root header {
    margin-bottom: 1.25rem;
    order: 1;
  }

  #root main {
    display: contents;
  }

  #root main > div:first-child {
    order: 4;
    width: 100%;
  }

  #root main > div:nth-child(2) {
    order: 2;
    width: 100%;
  }

  #root main > div:nth-child(2) > div:last-child {
    border-radius: 1rem;
  }

  #root footer {
    max-width: 100%;
    margin-top: 1rem;
    order: 3;
    overflow: hidden;
    width: 100%;
  }

  #root footer > div:first-child {
    gap: 0.85rem;
    max-width: 100%;
    overflow: hidden;
    padding: 0.9rem;
  }

  #root footer > div:first-child > div:first-child {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
  }

  #root footer > div:first-child > div:first-child span {
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: nowrap;
    font-size: 0;
    line-height: 1.25;
  }

  #root footer > div:first-child > div:first-child span::before {
    color: rgb(255 255 255 / 0.48);
    font-size: 0.58rem;
  }

  #root footer > div:first-child > div:first-child span:nth-child(1)::before {
    content: "0";
  }

  #root footer > div:first-child > div:first-child span:nth-child(2)::before {
    content: "150";
  }

  #root footer > div:first-child > div:first-child span:nth-child(3)::before {
    content: "200";
  }

  #root footer > div:first-child > div:first-child span:nth-child(4)::before {
    content: "250";
  }

  #root footer > div:first-child > div:first-child span:nth-child(5)::before {
    content: "300 ms";
  }

  #root footer input[type="range"] {
    display: block;
    min-width: 0;
    width: 100%;
  }

  #root footer h3 {
    font-size: 0.72rem;
    margin-top: -0.1rem;
  }

  #root footer > div:nth-child(2) {
    display: none;
  }
}
