/* ============================
   SereneType Theme
   ============================ */

:root {
  --bg: #0d0d0f;
  --panel: #1a1a1d;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --accent: #4da3ff;
  --radius: 10px;
  --font: 'Inter', Arial, sans-serif;
}

body {
  background: radial-gradient(circle at top, #121214, #0d0d0f);
  color: var(--text);
  font-family: var(--font);
  display: flex;
  justify-content: center;
  padding: 40px;
}

.container {
  width: 100%;
  max-width: 750px;
}

/* ============================
   Logo + Tagline
   ============================ */

.st-logo {
  text-align: center;
  margin-bottom: 25px;
  opacity: 0;
  animation: logoFadeIn 1.4s ease-out forwards, logoGlow 3s ease-in-out infinite;
}

.st-logo-icon {
  font-size: 32px;
  margin-right: 8px;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
}

.st-logo-text {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 0 12px var(--accent);
}

.st-logo-text span {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent);
}

@keyframes logoGlow {
  0% { text-shadow: 0 0 8px var(--accent); }
  50% { text-shadow: 0 0 18px var(--accent); }
  100% { text-shadow: 0 0 8px var(--accent); }
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  60% { opacity: 1; transform: translateY(0px); }
  100% { opacity: 1; }
}

.st-tagline {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 30px;
  opacity: 0;
  animation: taglineFadeIn 2s ease-out forwards;
}

@keyframes taglineFadeIn {
  0% { opacity: 0; transform: translateY(-6px); }
  70% { opacity: 1; transform: translateY(0px); }
  100% { opacity: 1; }
}

/* ============================
   Test Box
   ============================ */

#test-box {
  background: linear-gradient(180deg, #1a1a1d, #141416);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid #2a2a2d;
  box-shadow: 0 0 25px rgba(0,0,0,0.55);
}

#test-box.typing-active {
  box-shadow: 0 0 20px rgba(77,163,255,0.25);
  border-color: var(--accent);
}

/* ============================
   Text Display
   ============================ */

#text-display {
  background: #111;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #222;
  margin-bottom: 10px;
  min-height: 80px;
  line-height: 1.4;
}

/* Active word highlight */
.active-word {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(77,163,255,0.6);
}

/* ============================
   Input Box
   ============================ */

#input-box {
  width: 100%;
  height: 80px;
  padding: 10px;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  border: 1px solid #333;
  margin-bottom: 10px;
  caret-color: var(--accent);
}

/* ============================
   Stats
   ============================ */

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-top: 1px solid #222;
  padding-top: 8px;
}

.stats div {
  transition: color 0.3s ease, transform 0.2s ease;
}

.stats div.updated {
  color: var(--accent);
  transform: scale(1.05);
}

/* ============================
   Progress Bar
   ============================ */

#progress-bar {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* ============================
   Restart Button
   ============================ */

#restart-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  transition: 0.25s ease;
}

#restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(77,163,255,0.4);
}
/* ============================
   Navigation Bar
   ============================ */

.st-nav {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 15px 20px;
  background: #141416;
  border-radius: var(--radius);
  border: 1px solid #2a2a2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.45);
}

.st-nav-logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

.st-nav-links a {
  margin-left: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  transition: 0.25s ease;
}

.st-nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
