body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 5%;
}

h1 {
  color: #333;
  text-align: center;
}

p {
  color: #666;
  line-height: 1.6;
  text-align: center;
}

#paragraph-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 20px;
}

.letter {
  padding: 2px;
}

.correct {
  background-color: #b7ffb0;
}

.incorrect {
  background-color: #ffb0b0;
}

.current {
  background-color: #d0d0ff;
  border-bottom: 2px solid blue;
}


#timer {
  text-align: center;
  font-size: 18px;
  margin: 10px;
}

#restart {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#restart:hover {
  background-color: #444;
}

#restart:active {
  background-color: #888;
}

#stats {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#wpm-display {
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
