:root {
  /* --bg-color: #ffffff;
  --bg-color-2: #f5f5f5; 
  --bg-color: #121213;
  --bg-color-2: #1f1f21;
  --fg-color: #222;
  --splash-color: #f8f9ff;
  --hr-color: #e5e5e5;
  --accent: #4b6fff; */
  --bg-color: #121213;
  --bg-color-2: #1f1f21;
  --fg-color: #f8f8f8;
  --splash-color: #1c1c24;
  --hr-color: #2c2c2c;
  --accent: #7aa2ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121213;
    --bg-color-2: #1f1f21;
    --fg-color: #f8f8f8;
    --splash-color: #1c1c24;
    --hr-color: #2c2c2c;
    --accent: #7aa2ff;
  }
}

/* Button container */
.city-nav {
  display: flex;
  gap: 1rem;
}

/* Stylish buttons */
.city-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px; /* pill shape */
  cursor: pointer;

  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  backdrop-filter: blur(6px); 

  /* From https://css.glass */
   /* background: rgba(199, 199, 199, 0.8); */
  /* border: 2px solid rgba(0, 0, 0, 0.3);  */

  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover & focus states */
.city-btn:hover,
.city-btn:focus {
  background: rgba(0, 255, 128, 0.2); /* soft green glow */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 128, 0.3);
}

/* Active (clicked) state */
.city-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html {
  box-sizing: border-box;
  margin: 0;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

#top-box {
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0;
  /*background: #0a0a0a;  base dark background */
  color: #f5f5f5;
  min-height: 17vh;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.5); /* dark translucent */
  backdrop-filter: blur(8px);
  flex-direction: column;
}

/* Circle blur background */
#top-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(48, 224, 87, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0, 195, 255, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 11, 0.1), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

#bot-box {
  /* top: 0; */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  position: fixed;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;   /* stack rows */
  gap: 2rem;                /* spacing between rows */
  padding: 1rem 2rem;
  /* bottom: 0;
  left: 0;
  width: 100%; */
  margin: 0;
  color: #f5f5f5;
  /* min-height: 34vh;          */
  overflow: hidden;
  /* position: relative; */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

/* One big gradient background */
#bot-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124, 48, 224, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(187, 255, 0, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(219, 219, 219, 0.781), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

.row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


/* #bot-box {
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0;
  color: #f5f5f5;
  min-height: 17vh;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  flex-direction: column;
}

#bot-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124, 48, 224, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(187, 255, 0, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(219, 219, 219, 0.781), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

#bot-box-2 {
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0;
  color: #f5f5f5;
  min-height: 17vh;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  flex-direction: column;
}

#bot-box-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124, 48, 224, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(187, 255, 0, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(219, 219, 219, 0.781), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

#bot-container {
  position: relative;
  overflow: hidden;
}

#bot-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124, 48, 224, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(187, 255, 0, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(219, 219, 219, 0.781), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

#bot-box,
#bot-box-2 {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  min-height: 17vh;
  margin: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} */


body {
  font-family: system-ui, sans-serif;
  color: var(--fg-color);
  background: var(--bg-color);
  line-height: 1.5;
  margin: 0;
}

h1, h2 {
  text-align: center;
  margin: 1rem 0;
}

p {
  margin: 0 0 0.5rem;
}

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

/* hr {
  width: 90%;
  height: 2px;
  border: none;
  background: var(--hr-color);
  margin: 1rem auto;
} */

hr {
  width: 100%;
  height: 40px; /* make it taller so the blur can show */
  border: none;
  margin: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),  /* top dark */
    rgba(0, 0, 0, 0.0)   /* fade into transparent */
  );
  filter: blur(1px);
}

/* Chart */
#chart {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Game board & feels */
#feels-div,
#game-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
  padding: 0 5%;
}

/* Letter boxes */
.letter-row {
  display: flex;
}

.letter-box {
  width: 4rem;
  height: 4rem;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #bbb;
  border-radius: 6px;
  background: var(--bg-color-2);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.letter-box:hover {
  background: var(--splash-color);
  border-color: var(--accent);
}

.filled-box {
  border: 2px solid var(--fg-color);
}

/* Buttons */
#readMoreButt,
#startButton,
.keyboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.25s ease;
}

#readMoreButt:hover,
#startButton:hover,
.keyboard-button:hover {
  background: #364fcc;
}

/* Keyboard */
#keyboard-cont {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#keyboard-cont div {
  display: flex;
  margin: 4px 0;
}

.keyboard-button {
  flex: 1;
  min-width: 2rem;
}

/* Splash screen */
#splash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(30rem, 90%);
  max-height: 80%;
  padding: 1.5rem;
  overflow-y: auto;
  text-align: center;
  background: var(--splash-color);
  border: 1px solid var(--bg-color-2);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Fade animation */
@keyframes fadeIn {
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 800px) {
  .keyboard-button {
    font-size: 0.9rem;
    height: 3rem;
    padding: 0.2rem;
    margin: 0 2px;
  }

  #keyboard-cont {
    margin: 0.3rem 0;
  }
}

#more-box {
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;   /* stack rows */
  gap: 2rem;                /* spacing between rows */
  padding: 1rem 2rem;
  margin: 0;
  color: #f5f5f5;
  min-height: 34vh;         /* twice your 17vh */
  overflow: hidden;
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  bottom: 0;
  left: 0;
  width: 100%;
}

/* One big gradient background */
#more-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124, 48, 224, 0.712), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(187, 255, 0, 0.911), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 42, 149, 0.829), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(219, 219, 219, 0.781), transparent 40%);
  filter: blur(80px);
  z-index: -1;
}
