html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
}


/* Shared layout for all standalone content pages */
:root {
  --light_mode-background-color: #F8F8FF;
  --dark_mode-background-color: #222222;
  --header_light_mode-color: #222222;
  --header_dark_mode-color: rgb(120, 210, 249);
  --icon_stroke_lightmode-color: black;
  --icon_stroke_darkmode-color: #ccc;
  --icon_hover-color: rgb(120, 210, 249);
  --main_theme-color: rgb(249, 120, 205);
  --toggle_button_main_theme_shadow-color: rgba(230, 11, 168, 0.5);
  --regular_box-color: lightgrey;
  --correct_answer-color: lightgreen;
  --correct_answer_boxshadow-color: rgb(9, 255, 0);
  --variant_error-color: #DC143C;
  --variant_error_boxshadow-color: rgba(255, 0, 0, 0.5);
  --chosenLetter_error-color:rgb(236, 210, 61);
  --chosenLetter_error_boxshadow-color:rgb(236, 210, 61);
  --squaretable-color: lightgrey;
  --errorbox_message-color:black;
  --keyboard_rowbutton_lightmode-color: lightgrey;
  --keyboard_letters_lightmode-color: black;
  --statuspopup_box-color: rgba(0, 0, 0, 0.7);
  --statuspopup_message-color: white;
  --border_bottom-color: rgb(58, 58, 60);
  --font_family-style:Georgia, Times, serif;
  --win_modal-bg-lightmode: #F8F8FF;
  --share_score-border-color-lightmode: #ccc;
  --win_modal-bg-darkmode: #1c1c1c;
  --share_score-border-color-darkmode: #777;
  --close_button_share_score-color-lightmode:#555;
  --close_button_share_score-color-darkmode: #aaa;
  --side-width: 6.75rem;

  /* Main tile size (grid squares + error column row height) */
  --square-size: clamp(2rem, 10.5vw, 3.2rem);
  --square-font-size: clamp(1.1rem, 4vw, 1.8rem);

  /* Keyboard key sizes */
  --key-width: clamp(2.4rem, 7vw, 4rem);
  --key-height: clamp(2.4rem, 7vw, 3rem);
  --key-font-size: clamp(0.9rem, 2.7vw, 1rem);
}


.content-page {
  max-width: 45rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #111;
  flex: 1;
}


.page-header-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* This matches .content-page width */
.page-header-inner {
  width: 100%;
  max-width: 45rem;
  padding: 0.05rem 1.25rem;
  border-bottom: 1px solid var(--border_bottom-color);
  display: flex;
  justify-content: center;
}


.title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.3rem 0;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

/* Title + logos row */
.title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Title */
.title {
  font-family: var(--font_family-style);
  font-style: italic;
  font-weight: normal;
  font-size: 1.40rem;
  margin: 0;
  text-transform: uppercase;
  color: var(--header_light_mode-color);
}

/* Subtitle */
.subtitle {
  font-size: 0.65rem;
  font-family: var(--font_family-style);
  font-style: italic;
  font-weight: lighter;
  margin-top: -0.1rem;
  color: grey;
}

/* Logos
.variants-logo {
  height: 2em;
  width: auto;
} */


.heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Heading row */
.content-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Page heading title */
.content-page h1 {
  font-size: 2rem;
  font-family: var(--font_family-style);
  font-style: italic;
  font-weight: 300; /* 👈 pick the light you want */
  margin: 0;
  text-align: center;
}


/* Image matches heading width */
.difference-image {
  max-height: 12.5rem;   /* ~40px equivalent */
  width: auto;
  margin-bottom: 0.5rem;
}

/* Image matches heading width */
.whyibuiltthisimage {
  max-height: 12.5rem;   /* ~40px equivalent */
  width: auto;
  margin-bottom: 0.5rem;
}


/* Paragraphs */
.content-page p {
  font-size: 1rem;
  font-family: var(--font_family-style);
  margin-bottom: 18px;
}

/* Optional subtle divider spacing for long pages */
.content-page p:last-child {
  margin-bottom: 0;
}



#content-footer {
  margin-top: auto;             /* pushes footer to bottom */
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: center;
  color: #888;
}

/* text-sized border line */
#footer-message {
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0;
  display: inline-block;        /* shrink to text width */
  padding: 0.5rem 0.75rem 0;    /* makes border about 1.5x-ish wider */
  border-top: 1px solid var(--border_bottom-color);
}



/* Dark mode support if your site already toggles it
@media (prefers-color-scheme: dark) {
  .content-page {
    color: #f1f1f1;
  } 
}*/
