body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #212529;
}

.container {
  width: 100%;
  max-width: 800px;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

#text-display {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  min-height: 100px;
}

#text-input {
  width: 97%;
  font-size: 1.1rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

#text-input:focus {
  outline: none;
  border-color: #4dabf7;
}
#text-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

#stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

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

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#start-btn {
  background-color: #40c057;
  color: white;
}

#start-btn:hover {
  background-color: #37b24d;
}

#reset-btn {
  background-color: #adb5bd;
  color: white;
}

#reset-btn:hover {
  background-color: #868296;
}

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

.correct {
  color: #40c057;
}

.incorrect {
  color: #fa5252;
  background-color: #ffe3e3;
}
