/* Base Theme */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #fdfbfb, #ebedee);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.container {
  background: white;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#word {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: inherit;
}

input[type="text"] {
  padding: 12px 18px;
  font-size: 1.2rem;
  width: 100%;
  max-width: 400px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.correct {
  background-color: #dfffe0;
  border-color: #28a745 !important;
}

/* Stats Panel */
.stats-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  width: 220px;
}

.stats-panel h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Settings Button */
.settings-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #eee;
  border: none;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Settings Panel */
.settings-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
  z-index: 999;
}
.settings-panel.open {
  display: block;
}
.settings-panel button {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f2f2f2;
}
.settings-panel button:hover {
  background-color: #ddd;
}

/* THEME: Purple on Yellow */
body.purple-yellow {
  background: #fff200;
  color: #5e00c7;
}
body.purple-yellow .container,
body.purple-yellow .stats-panel,
body.purple-yellow .settings-panel {
  background: #fff;
}

/* THEME: Blue on Green */
body.blue-green {
  background: #44bd32;
  color: #0066cc;
}
body.blue-green .container,
body.blue-green .stats-panel,
body.blue-green .settings-panel {
  background: #e9fef2;
}

/* THEME: White on White (Stealth Mode) */
body.white-white {
  background: #ffffff;
  color: #ffffff;
}
body.white-white .container,
body.white-white .stats-panel,
body.white-white .settings-panel {
  background: #ffffff;
  color: #ffffff;
}
