* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdfdfd;
  font-family: 'Comic Sans MS', cursive, sans-serif;
}
.container.kid-mode {
  background: #fffbea;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #333;
}
.container.prof-mode {
  background: #1e1e2f;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #e0e0e0;
}
.container {
  width: 95%;
  max-width: 700px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: background-color 0.4s, color 0.4s, font-family 0.4s;
}
#main-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
#mode-buttons {
  margin-bottom: 20px;
}
#mode-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
}
#kid-mode-btn {
  background-color: #444444;
  color: white;
}
#kid-mode-btn:hover {
  background-color: #ff9f1a;
}
#prof-mode-btn {
  background-color: #444444;
  color: white;
}
#prof-mode-btn:hover {
  background-color: #ea3232;
}
.stats {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  padding: 10px 0;
  margin-bottom: 15px;
}
.word-display {
  font-size: 2.5rem;
  margin: 30px auto 20px;
  min-height: 3rem;
  font-weight: bold;
}
.input-field {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 15px;
  padding: 12px;
  font-size: 1.3rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  outline: none;
}
.kid-mode .input-field {
  border-color: #ffb347;
}
.prof-mode .input-field {
  background-color: #23293f;
  border-color: #00fff7;
  color: #fff;
}
#start-btn, #restart-btn {
  margin: 8px;
  padding: 10px 20px;
  font-size: larger;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
}
#start-btn {
  background: #1a47e9;
  color: #fff;
}
#start-btn:disabled {
  background: #a0c8e9;
  color: #e9ecef;
  cursor: not-allowed;
}
#restart-btn {
  background: #1a47e9;
  color: white;
}
#restart-btn:disabled {
  background: #a0c8e9;
  color: #e9ecef;
  cursor: not-allowed;
}
.game-over {
  font-size: 1.5rem;
  margin-top: 20px;
  display: none;
}
