
:root {
  --primary: #005dab;
  --accent: #c8102e;
  --background: #f8f9fa;
  --foreground: #111;
  --card: #ffffff;
  --shade: rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-intro {
  background: #ffffff;
  border-left: 5px solid var(--primary);
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-intro h1 {
  margin-top: 0;
  font-size: 1.5em;
  color: var(--primary);
}

.site-intro ul {
  margin: 1em 0 0 1.5em;
  padding: 0;
}

.board-selector {
  margin-bottom: 1.5em;
  background: var(--card);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
}

textarea,
input[type="text"],
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5em;
  resize: vertical;
}

button,
.reply-btn,
.flag-btn {
  font-size: 1em;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.post {
  background: var(--card);
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.reply-btn, .flag-btn {
  color: var(--accent);
  background: none;
  font-size: 0.9em;
  margin-right: 1em;
}

.reply-btn:hover, .flag-btn:hover {
  text-decoration: underline;
}

body::after {
  content: "🔒 This page is protected. Screenshots and printing are discouraged.";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 0.5em;
  text-align: center;
  font-size: 0.85em;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
}

@media (max-width: 600px) {
  .site-intro,
  .post {
    font-size: 0.95em;
    padding: 0.75em;
  }

  .reply-btn, .flag-btn {
    display: inline-block;
    margin-top: 0.5em;
    font-size: 0.9em;
  }

  footer {
    font-size: 0.8em;
  }

  body::after {
    font-size: 0.75em;
  }
}


@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7cb0ff;
    --accent: #ff6363;
    --background: #1e1e1e;
    --foreground: #e0e0e0;
    --card: #2a2a2a;
    --shade: rgba(255, 255, 255, 0.05);
  }

  body {
    background: var(--background);
    color: var(--foreground);
  }

  .site-intro,
  .board-selector,
  .post {
    background: var(--card);
    box-shadow: 0 2px 4px rgba(255,255,255,0.05);
  }

  .site-intro h1 {
    color: var(--primary);
  }

  textarea,
  input[type="text"],
  select {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
  }

  button,
  .reply-btn,
  .flag-btn {
    background-color: #444;
    color: var(--accent);
  }

  .reply-btn:hover,
  .flag-btn:hover {
    color: #fff;
    background-color: var(--accent);
  }

  body::after {
    background: var(--accent);
    color: #fff;
  }
  
#banner {
  background-color: #cfe3cf;
  color: #2d4d2d;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #aaa;
  font-weight: bold;
}
.word-list {
  list-style-type: none;
  padding-left: 0;
}
.word-list li {
  background: var(--shade);
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.word-list a {
  color: red;
  text-decoration: none;
  font-weight: bold;
}
}


/* Enhanced mobile experience */
@media (max-width: 600px) {
  body {
    font-size: 1.1em;
    padding: 1.5em;
    line-height: 1.6;
  }

  .site-intro h1 {
    font-size: 1.8em;
  }

  .post,
  .site-intro,
  .board-selector {
    font-size: 1.1em;
    padding: 1em;
    border-radius: 12px;
  }

  textarea,
  input[type="text"],
  select {
    font-size: 1.1em;
    padding: 0.75em;
  }

  button,
  .reply-btn,
  .flag-btn {
    font-size: 1.05em;
    padding: 0.8em 1.5em;
  }
}
