/* ---------------------------------------------------------------------
   YouMightBe.com -- rebuilt styles.
   The 2003 site (see: web.archive.org/web/20030207145054/youmightbe.com)
   was laid out entirely with nested <table>s. This stylesheet recreates
   the same regions -- navy masthead, white title bar, gray sidebar,
   cyan-bordered footer -- with flexbox/grid instead of tables, so the
   markup can stay semantic while the page still reads like the archive.
   --------------------------------------------------------------------- */

:root {
  --navy: #000080;
  --cyan: #00ffff;
  --sidebar-gray: #c0c0c0;
  --hr-blue: #0000ff;
  --ad-bg: #ffffcc;
  --ad-border: #999966;
  --border-gray: #808080;
  --text: #000000;
  --link: #0000ee;
  --link-visited: #551a8b;
  --page-width: 960px;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  background: #d9d9d9;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 16px;
  color: var(--text);
  background: #d9d9d9;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

.heading-font,
h1, h2, h3, h4,
.site-header,
.list-header,
.sidebar,
.list-subnav {
  font-family: Arial, "Arial Narrow", Helvetica, sans-serif;
}

hr {
  border: none;
  border-top: 2px solid var(--hr-blue);
  margin: 1.25em 0;
}

.center {
  text-align: center;
}

/* ---- page shell ------------------------------------------------- */

.page-shell {
  max-width: var(--page-width);
  margin: 0 auto;
  background: #ffffff;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
  min-height: 100vh;
}

/* ---- ad placeholders ---------------------------------------------
   Real inventory (BurstNet / accompanists.org script tags) isn't wired
   up in this rebuild -- these are sized, labeled placeholders so the
   layout keeps the same rhythm the old ad units gave it. */

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  color: #665500;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 auto;
  text-align: center;
}

.ad-slot--leaderboard {
  width: 468px;
  max-width: 100%;
  height: 60px;
}

.ad-slot--sidebar {
  width: 120px;
  height: 60px;
  margin: 0 auto 8px;
}

.ad-slot--sidebar-text {
  width: 100%;
  height: 90px;
  margin-bottom: 12px;
}

.ad-slot--comic {
  width: 125px;
  height: 115px;
  margin: 12px auto;
}

.ad-slot--footer {
  width: 468px;
  max-width: 100%;
  height: 60px;
}

/* ---- masthead (home page) ----------------------------------------- */

.site-header {
  background: var(--navy);
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
}

.site-header__inner {
  padding-bottom: 12px;
}

.site-header__logo {
  display: inline-block;
}

.site-header__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9c2ff;
}

.site-header__logo h1 {
  margin: 2px 0;
  font-size: 34px;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: #ffff66;
  text-shadow: 1px 1px 0 #000040;
}

.site-header__tagline {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: #dfe4ff;
}

/* ---- title bar (list / content pages) ------------------------------ */

.list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-gray);
  border-style: outset;
  background: #ffffff;
  padding: 10px 16px;
}

.list-header__title h1 {
  margin: 0 0 4px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 26px;
}

.list-header__breadcrumbs {
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}

.list-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-left: 1px solid var(--border-gray);
  border-right: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
  padding: 6px 16px;
  font-size: 13px;
  text-align: center;
}

/* ---- two column body ------------------------------------------------ */

.page-columns {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 20px 8px;
}

.main-col {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 6px;
  line-height: 1.5;
}

.main-col h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.main-col h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

/* Fenced code blocks (colors come inline from the Markdown renderer's
   syntax highlighter) */
.main-col pre {
  margin: 0.75em 0 1.25em;
  padding: 8px 10px;
  border: 1px solid #ccc;
  overflow-x: auto;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
}

.yb-list {
  margin: 0.75em 0;
  padding-left: 1.4em;
}

.yb-list li {
  margin-bottom: 0.55em;
}

/* Room for two-digit countdown numbers ("10."). */
ol.yb-list {
  padding-left: 2em;
}

.attribution {
  background: #fffbe0;
  border: 1px solid #e0d090;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #554b1f;
  padding: 8px 12px;
  margin: 0 0 1em;
}

.attribution a {
  color: #554b1f;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  background: var(--sidebar-gray);
  border: 1px solid var(--border-gray);
  border-style: inset;
  padding: 12px;
  font-size: 13px;
}

.sidebar h4 {
  margin: 0 0 6px;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-align: center;
}

.sidebar ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.sidebar ul li {
  margin-bottom: 4px;
}

.sidebar hr {
  margin: 12px 0;
}

/* ---- home page lists ------------------------------------------------ */

.toc-grid {
  columns: 2;
  column-gap: 24px;
  padding-left: 1.2em;
  margin: 0.75em 0;
}

.toc-grid li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.outside-pages li,
.more-humor li,
.utilities-list li {
  margin-bottom: 4px;
}

/* ---- search + webring bars -------------------------------------- */

.search-box {
  text-align: center;
  padding: 10px 20px 4px;
}

.search-box form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-box input[type="text"] {
  padding: 3px 5px;
  border: 1px solid var(--border-gray);
}

.webring-bar {
  text-align: center;
  padding: 10px 20px 20px;
}

.webring-bar__box {
  display: inline-block;
  border: 2px solid red;
  background: #ffffff;
  padding: 8px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

/* ---- footer ------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 16px 20px 26px;
}

.site-footer__box {
  display: inline-block;
  border: 3px double var(--cyan);
  background: var(--cyan);
  padding: 8px 12px 12px;
}

.site-footer .ad-slot--footer {
  margin-bottom: 10px;
}

.visits-counter {
  margin: 0;
}

.visits-counter img {
  vertical-align: middle;
}

.top-bar {
  background: #000040;
  color: #ffff99;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  padding: 4px 10px;
}

.top-bar a {
  color: #ffff99;
  font-weight: bold;
}

/* ---- responsive stacking ------------------------------------------ */

@media (max-width: 680px) {
  .page-columns {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .toc-grid {
    columns: 1;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- games (/games/) ------------------------------------------------
   Word Whomp and Word Whomp Whackdown. Navy boards and cyan highlights
   borrowed from the masthead so they read as part of the same site. */

.game {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  border: 2px solid var(--navy);
  background: #f4f4ff;
  padding: 12px;
  margin: 1em 0;
}

.game__bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: var(--navy);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 15px;
}

.game__bar b {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.game__time--low {
  color: #ff6666 !important;
}

.game__controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
}

.game button {
  font: bold 15px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.game__controls button,
.game__panel button {
  background: #e0e0e0;
  border: 2px outset #ffffff;
  padding: 6px 14px;
  color: #000000;
}

.game__controls button:active,
.game__panel button:active {
  border-style: inset;
}

.game__message {
  min-height: 1.5em;
  text-align: center;
  margin: 6px 0;
  font-weight: bold;
}

.game__message--good { color: #006600; }
.game__message--bad { color: #aa0000; }

.game__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(244, 244, 255, 0.94);
  font-size: 17px;
}

.game__panel--inline {
  position: static;
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--navy);
}

.game__panel[hidden] {
  display: none;
}

.game__panel p {
  max-width: 28em;
  margin: 0;
}

.game__panel button {
  font-size: 18px;
  padding: 8px 24px;
}

/* found / missed word columns */

.word-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 8px;
  min-height: 12em;
}

.word-col h4 {
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--navy);
}

.word-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font: 15px/1.5 "Courier New", Courier, monospace;
}

.word-col__blank { color: #888888; letter-spacing: 0.05em; }
.word-col__found { color: #000000; font-weight: bold; }
.word-col__missed { color: #aa0000; }

/* Word Whomp */

.whomp__guess,
.whomp__tiles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.whomp__box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.whomp__tile {
  width: 52px;
  height: 52px;
  font-size: 26px !important;
  background: var(--navy);
  color: #ffffff;
  border: 3px outset #6666cc;
  border-radius: 50%;
}

.whomp__tile:disabled {
  background: #b8b8d0;
  color: #eeeeee;
  border-style: solid;
  cursor: default;
}

/* Word Whomp Whackdown: pointy-top hexes in offset rows. A hex W wide
   is W / cos(30deg) tall, and rows sit 0.75 of that apart. */

.whack__modes {
  border: 1px solid var(--navy);
  background: #ffffff;
  margin: 0;
  padding: 6px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 15px;
}

.whack__modes[hidden] {
  display: none;
}

.whack__modes legend {
  font-weight: bold;
  padding: 0 4px;
}

.whack__word {
  min-height: 1.6em;
  margin-top: 10px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: var(--navy);
}

.whack__word--bad {
  color: #aa0000;
  text-decoration: line-through;
}

.whack__board {
  --w: min(76px, calc((100vw - 72px) / var(--cols)));
  position: relative;
  width: calc(var(--cols) * var(--w));
  height: calc((var(--rows) - 1) * var(--w) * 0.866 + var(--w) * 1.1547);
  margin: 10px auto 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.whack__tile {
  position: absolute;
  left: calc(var(--x) * var(--w) + 2px);
  top: calc(var(--row) * var(--w) * 0.866 + 2px);
  width: calc(var(--w) - 4px);
  height: calc(var(--w) * 1.1547 - 4px);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--navy);
  color: #ffffff;
  border: none;
  padding: 0;
}

.whack__tile:focus-visible {
  background: #3333aa;
  outline: none;
}

.whack__letter {
  font-size: calc(var(--w) * 0.42);
  font-weight: bold;
  pointer-events: none;
}

.whack__order {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  font-size: 11px;
  pointer-events: none;
}

.whack__tile--on {
  background: var(--cyan);
  color: var(--navy);
}

.whack__tile--last {
  background: #99ffff;
}

.whack__tile:disabled {
  background: #b8b8d0;
  cursor: default;
}

.games-list li {
  margin-bottom: 0.6em;
}

@media (max-width: 680px) {
  .whomp__box { width: 38px; height: 38px; font-size: 20px; }
  .whomp__tile { width: 44px; height: 44px; font-size: 22px !important; }
  .game__bar { font-size: 13px; }
}

/* Word search: a 10x10 grid of square letter buttons. */

.ws__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ws__top button {
  background: #e0e0e0;
  border: 2px outset #ffffff;
  padding: 4px 12px;
}

.ws__grid {
  --cell: min(38px, calc((100vw - 76px) / 10));
  display: grid;
  grid-template-columns: repeat(10, var(--cell));
  width: max-content;
  margin: 12px auto 0;
  border: 2px solid var(--navy);
  background: #ffffff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ws__cell {
  width: var(--cell);
  height: var(--cell);
  padding: 0;
  border: none;
  background: transparent;
  color: #000000;
  font: bold calc(var(--cell) * 0.5) "Courier New", Courier, monospace !important;
}

.ws__cell:disabled { cursor: default; color: #000000; }
.ws__cell--found { color: #000000; }
.ws__c0 { background: #ffff66; }
.ws__c1 { background: #99ff99; }
.ws__c2 { background: #99ccff; }
.ws__c3 { background: #ffcc99; }
.ws__c4 { background: #ff99cc; }
.ws__c5 { background: #cc99ff; }
.ws__cell--revealed { color: #aa0000 !important; font-style: italic !important; }
.ws__cell--sel,
.ws__cell--pending { background: var(--cyan); color: var(--navy); }
.ws__cell:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

.ws__words {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 8px 0;
  padding: 0;
  font: bold 15px/1.6 "Courier New", Courier, monospace;
}

.ws__word--found { text-decoration: line-through; color: #888888; }
.ws__word--missed { color: #aa0000; }

.ws__source {
  text-align: center;
  font-size: 14px;
  margin: 4px 0 0;
}

/* ---- /popular.php ---------------------------------------------------- */

.popular-link {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  margin: 12px 0;
}

.popular-table {
  border-collapse: collapse;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.popular-table th {
  background: var(--navy);
  color: #ffffff;
  text-align: left;
  padding: 5px 8px;
}

.popular-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #dddddd;
}

.popular-table tbody tr:nth-child(even) td {
  background: #f4f4ff;
}

.popular-table td:first-child,
.popular-table th:first-child {
  width: 3em;
  text-align: right;
}

.popular-table td:last-child,
.popular-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 6em;
}

/* ---- submission form (/submit_page.html) ----------------------------- */

.submit-form input[type="text"],
.submit-form textarea {
  width: 100%;
  max-width: 36em;
  font: 15px Arial, Helvetica, sans-serif;
  padding: 4px;
  border: 1px solid var(--border-gray);
}

.submit-form input[type="submit"] {
  font: bold 15px Arial, Helvetica, sans-serif;
  background: #e0e0e0;
  border: 2px outset #ffffff;
  padding: 6px 16px;
  cursor: pointer;
}

/* Honeypot field: off-screen for people, still there for form bots. */
.submit-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The default "egg" avatar on the Twitter spammer list */
.avatar-egg {
  vertical-align: -4px;
  margin-right: 6px;
  border-radius: 3px;
}
