/* Web Development Cheatsheet - Fun & friendly styles for kids */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter Tight", sans-serif;
  background: #9ca3af;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.5rem;
  color: #5b21b6;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.tagline {
  font-size: 1.2rem;
  color: #6b7280;
  margin: 0;
}

main {
  max-width: 800px;
  margin: 0 auto;
}

.cheat-card {
  background: white;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-left: 6px solid #8b5cf6;
}

.cheat-card.highlight {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.cheat-card h2 {
  font-size: 1.5rem;
  color: #4c1d95;
  margin: 0 0 16px 0;
}

.cheat-card h2 .emoji {
  margin-right: 8px;
}

.code-box {
  background: #1e1b4b;
  color: #e0e7ff;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  overflow-x: auto;
  border: 3px solid #6366f1;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.code-box pre {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.code-box code {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  white-space: pre;
}

.cheat-card h3 {
  font-size: 1.25rem;
  color: #6d28d9;
  margin: 20px 0 8px 0;
}

.explanation {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.explanation.big {
  font-size: 1.2rem;
  line-height: 1.7;
}

footer {
  text-align: center;
  padding: 36px 20px;
  margin-top: 20px;
}

.closing {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Make code boxes easy to select for copying */
.code-box {
  user-select: all;
  cursor: text;
}

.code-box:focus {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

@media (min-width: 600px) {
  header h1 {
    font-size: 3rem;
  }

  .cheat-card h2 {
    font-size: 1.65rem;
  }

  .code-box pre {
    font-size: 1.05rem;
  }
}
