body {
  background-color: rgb(81, 194, 231);
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease;
}

body.dark {
  background-color: #121212;
  color: white;
}

.container {
  background-color: white;
  padding: 30px;
  border-radius: 20px;
  width: 600px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

body.dark .container {
  background-color: #1e1e1e;
}

.DisplayedText {
  font-size: 22px;
  margin: 20px 0;
  padding: 15px;
  background-color: #f3e7e7;
  border-radius: 8px;
  white-space: pre-wrap;
  font-family: Georgia, serif;
  transition: background-color 0.3s ease;
}

body.dark .DisplayedText {
  background-color: #2d2d2d;
}

#inputText {
  width: 100%;
  height: 120px;
  font-size: 19px;
  padding: 10px;
  resize: none;
  margin-top: 10px;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
  background-color: white;
  color: black;
}

body.dark #inputText {
  background-color: #333;
  color: white;
}

#Stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  font-weight: bold;
}

#restartButton {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

#restartButton:hover {
  background-color: #45a049;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

#controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.theme-toggle {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}
