/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=IM+Fell+English+SC&display=swap');

/* CSS Variables - Color Theme */
:root {
  --font-size: 16px;
  --background: #e8d4b8;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

/* Dark mode support */
.dark {
  --background: #e8d4b8;
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

/* Base styles */
* {
  box-sizing: border-box;
}

header {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4e8d0;
    box-shadow: 0 4px 2px 0 oklab(47.467% 0.09603 0.09593 / 0.3);
    flex-shrink: 0;
}

footer {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f4e8d0;
    box-shadow: 0 -4px 2px 0 oklab(47.467% 0.09603 0.09593 / 0.3);
    flex-shrink: 0;
    font-size: 14px;
}

footer p {
    margin: 0.25rem 0;
}

header h1 {
    margin: 0;
}

html {
  font-size: var(--font-size);
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: var(--font-weight-normal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: 'IM Fell English SC', 'Crimson Text', serif;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

button {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select, input {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  background-color: var(--input-background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
}

select:focus, input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.container-fluid {
  margin-top: 2rem;
}

#how-to-play {
  background-color: #f4e8d0;
}

/* .wordle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    margin: 5px auto;
} */

/* .guess-cell {
    width: 100px;
    height: 50px;
    line-height: 50px;
    border: 2px solid #ccc;
    display: inline-block;
    vertical-align: top;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background-color: white;
    text-align: center;
}

.guess-cell.correct {
    background-color: #6aaa64;
    border-color: #000000;
    color: white;
}

.guess-cell.close {
    background-color: #c9b458;
    border-color: #000000;
    color: white;
}

.guess-cell.wrong {
    background-color: #787c7e;
    border-color: #000000;
    color: white;
} */

/* .country-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    margin: 5px auto;
} */