/* NES.css requires Press Start 2P font */
* {
  font-family: 'Press Start 2P', cursive;
  box-sizing: border-box;
}

body {
  background-color: #212529;
  color: #e0e0e0;
  padding: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.container {
  max-width: 680px;
  margin: 0 auto;
}

/* is-dark containers get white borders from NES.css by default.
   We just need to set the title background to match the page bg
   so the "notch" in with-title containers blends in. */
.nes-container.is-dark.with-title > .title {
  background-color: #212529;
}

.nes-container.is-dark {
  margin-bottom: 1.5rem;
}

/* Body text sizing — smaller for readability with pixel font */
p, td, th, code {
  font-size: 0.6rem;
  line-height: 1.8;
}

/* Header */
.header-section {
  text-align: center;
}

h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

/* URL example box — nested container inside is-dark parent,
   so this inner one stays default (light) for contrast */
.url-example {
  text-align: center;
  font-size: 0.55rem;
  word-break: break-all;
  padding: 0.8rem;
  background-color: #111;
  border-color: #555;
  color: #e0e0e0;
}

.url-example p {
  margin: 0.3rem 0;
  font-size: 0.55rem;
}

/* Table sizing */
.nes-table {
  font-size: 0.55rem;
}

code {
  color: #92cc41;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.55rem;
}

.footer a {
  color: #92cc41;
}

/* Responsive */
@media (max-width: 480px) {
  h1 {
    font-size: 1rem;
  }

  p, td, th, code {
    font-size: 0.5rem;
  }

  .url-example,
  .url-example p {
    font-size: 0.45rem;
  }

  .nes-table {
    font-size: 0.45rem;
  }
}
