* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto Mono', monospace;
}

body {
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 800px;
  width: 100%;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stat-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  margin: 0 10px;
}

.stat-box span:first-child {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.stat-label {
  font-size: 14px;
  color: #7f8c8d;
}

.text-display {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  min-height: 150px;
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

#text-input {
  width: 100%;
  height: 150px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 16px;
  margin-bottom: 20px;
  outline: none;
}

#text-input:focus {
  border-color: #3498db;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

button {
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.correct {
  color: #27ae60;
}

.incorrect {
  color: #e74c3c;
  text-decoration: underline;
}

.current {
  background-color: #fffde7;
  border-radius: 2px;
}
