/* Minimal Christmas Puzzle Stylesheet */

:root {
  --bg: #1a1a1a;
  --fg: #e0e0e0;
  --accent: #c41e3a; /* Christmas red */
  --accent2: #228b22; /* Christmas green */
  --link: #6eb5ff;
  --link-visited: #b088f9;
  --code-bg: #2a2a2a;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1, h2, h3 {
  line-height: 1.2;
  color: #fff;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code, pre {
  font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  background: var(--code-bg);
  border-radius: 3px;
}

code {
  padding: 0.1em 0.3em;
  font-size: 0.9rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

pre code {
  padding: 0;
  background: none;
}

/* Puzzle input styling */
input[type="text"], input[type="password"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--code-bg);
  color: var(--fg);
  border: 1px solid #444;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}

button:hover {
  filter: brightness(1.1);
}

/* Utility classes */
.hint {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

.success {
  color: var(--accent2);
  font-weight: bold;
}

.error {
  color: var(--accent);
}

.hidden {
  display: none;
}

.monospace {
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.05em;
}

.center {
  text-align: center;
}

/* For interactive puzzles (e.g., game boards) */
.puzzle-container {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--code-bg);
  border-radius: 4px;
}

/* Canvas for visual puzzles */
canvas {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  image-rendering: pixelated; /* For Game of Life style puzzles */
}

/* Audio player styling */
audio {
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.85rem;
}

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