/* ROOT SECTION BEGIN */

:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #172033;
  --muted: #526070;
  --nav-bg: #070222;
  --nav-text: #ffffff;
  --accent: #d946ed;
  --border: rgba(23, 32, 51, 0.12);
  --footer-bg: #0f0f14;
  --footer-text: #ffffff;
}

html[data-theme="dark"] {
  --bg: #242424;
  --card: #282828; /* was #151b2e */
  --text: #f8fafc;
  --muted: #cbd5e1;
  --nav-bg: #0f0f14; /* #070b14 black original */
  --nav-text: #ffffff;
  --accent: #e879f9;
  --footer-bg: #0f0f14;
  --footer-text: #ffffff;
  /* border for oval paragraph boxes */
  --border: #282828; /* was rgba(255, 255, 255, 0.14) */
}

html[data-theme="light"] {
  --bg: #F2F2F2;
  --card: #FFFAFA; /* #FFFAFA snow */
  --text: #111827;
  --muted: #1f2937;
  --nav-bg: #0f0f14; /* #353839 onyx; #6A89A7 gray-blue */
  --nav-text: #ffffff;
  --accent: #d946ed;
  --border: rgba(23, 32, 51, 0.12);
}

/* BASE SECTION BEGIN */

* {
  box-sizing: border-box;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* NAVBAR SECTION BEGIN */

#site-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header {
  width: 100%;
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid #2b2b36;
  position: relative;
  z-index: 1000;
}

.header .container {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  max-height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-button,
.theme-toggle.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #3d3d50;
  background: #20202b;
  color: #f5f5ff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-button:hover,
.theme-toggle.nav-button:hover {
  background: #2d2d3b;
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-links a.nav-button[href="creator-pack.html"] {
  background: linear-gradient(135deg, #ff4fd8, #8b5cf6, #38bdf8);
  color: #ffffff;
  border: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(255, 79, 216, 0.28);
}

.nav-links a.nav-button[href="creator-pack.html"]:hover {
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.38);
}

.hamburger-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(199, 21, 133, 0.25);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.hamburger-icon span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #c71585;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-menu.is-open .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SMALL COPY TAB BEGIN */

.copy-paste-tab {
  position: fixed;
  /* controls up/down position */
  top: 64px;
  /* controls left/right position; higher LASTpx is more left */
  right: max(16px, calc((100vw - 1180px) / 2 + 14px));
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 5px;
  width: min(235px, 82vw);
  height: 42px;
  padding: 5px;
  background: #20202b;
  border: 1px solid #3d3d50;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

.copy-paste-field {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 1px solid #3d3d50;
  border-radius: 999px;
  padding: 4px 9px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  line-height: 1;
  outline: none;
}

.copy-paste-copy,
.copy-paste-clear {
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.copy-paste-copy {
  background: #16a34a;
}

.copy-paste-clear {
  background: #6366f1;
}

/* SMALL COPY TAB END */

/* WIDTH OF SECTIONS BEGIN */
/* Text-heavy page: 900px-1050px;
Mixed content/tool page: 1100px-1220px;
Big symbol grid page: 1220px-1400px;
Full visual/game page: 1400px-1600px;
So 1220px is good default for a normal tcs-style page. */

.page-shell {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
  padding: 28px 0 20px;
  flex: 1;
}

/* hero: H1 entire block; content: H2 entire block */
.hero-section,
.content-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  margin: 0.8px 0 7px 0;
}

h1 {
  margin: 2px 0 10px;
  padding: 2px 8px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  text-align: center;
}

h2 {
  margin: 2px 0 20px 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  /* 1.8rem = smallest allowed size; 3vw = preferred flexible size based on screen width; 2.2rem = largest allowed size */
  line-height: 1.2;
  color: #6366f0;
  font-weight: 800;
  /* text-align: center; */
}

h3 {
  margin: 2px 0;
  padding: 2px 0;
  font-size: 22.8px;
  line-height: 1.2;
  text-align: left;
}

p {
  font-size: 20px;
  margin: 25px 0;
  line-height: 1.7;
  max-width: 1300px;
  color: var(--muted);
}

.lined {
  font-size: calc(1em + 2px);
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: #16a34a;
  text-decoration-thickness: 4px;
  text-underline-offset: 2.4px;
  font-weight: 700;
}

.lined:hover {
  text-decoration-color: #22c55e;
}


/* GRID OF FEATURED BEGIN */

/* GRID OF FEATURED END */

/* GRID OF TOP BOXES BEGIN */


.quick-box-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0 0 10px 0;
}

.quick-box-grid a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.quick-box-grid a:hover {
  transform: translateY(-0.8px);
}


/* GRID OF TOP BOXES END */

/* CHRISTMAS SYMBOL GRID BEGIN */


.symbol-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  margin: 0 0 12px 0;
}

/* GREEN FOR CHRISTMAS/OTHERS TITLE */
.category-title {
  text-align: center;
  margin: 0 0 16px 0;
  color: #16a34a;
  font-size: clamp(28px, 4vw, 42px);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 10px;
}

.symbol-grid .copy-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.symbol-grid .copy-symbol:hover {
  transform: translateY(-2px);
  background: rgba(22, 163, 74, 0.18);
}

/* Add .copy-wd-symbol larger box to fit words; CSS change after the regular .copy-symbol;
also HTML will need both classes for these since inheritance doesn't occur easily with CSS here;
so the html will read class="one two" before these grid symbols. */
.symbol-grid .copy-wd-symbol {
  grid-column: span 2;
  width: 88%;
  min-height: 90px;
  font-size: 18px;
  line-height: 1.2;
  padding: 4px;
  text-align: center;
}

/* CHRISTMAS SYMBOL GRID END */

/* FOOTER SECTION BEGIN */

.site-footer {
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 22px 16px;
  margin-top: auto;
}

.site-footer p {
  color: var(--footer-text);
  margin: 0 auto;
  max-width: none;
  text-align: center;
}

/* COPY SYMBOL SECTION BEGIN */

.copy-symbol,
.copy-wd-symbol {
  cursor: pointer;
  user-select: none;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #16a34a;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ARROW or 3-BAR MENU for NAV DISAPPEAR WHEN SCROLL DESKTOP VERSION */

@media (min-width: 769px) {
  #site-navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .desktop-float-menu {
    display: none;
    position: fixed;
	right: 40px;
	bottom: 80px;
    z-index: 10000;
    background: #353839; /* onyx #353839 */
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 13px;
    cursor: pointer;
    font-size: 22px;
  }

  .desktop-float-menu.show {
    display: block;
  }

  .mobile-float-menu {
  display: none !important;
}
/* Hide mobile arrow by default on desktop/tablet */
}

/* HIGHLIGHTED WORDS BEGIN */

.highlight-word {
  background: #fff3a3;
  color: #111827;
  padding: 0 0.8px;
  border-radius: 5px;
  font-weight: 700;
}

html[data-theme="dark"] .highlight-word {
  background: #4c1d95;
  color: #ffffff;
}

/* HIGHLIGHTED WORDS END */

/* TEXT SELECTION COLOR BEGIN */

::selection {
  background: #fff3a3;
  color: #111827;
}

html[data-theme="dark"] ::selection {
  background: #4c1d95;
  color: #ffffff;
}
/* TEXT SELECTION COLOR END */