/* Simple page font and background */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

/* Main centered container */
#app-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Spacing for paragraphs */
p {
  line-height: 1.5;
}

/* Test wrapper that holds the origin text and the textarea */
.test-wrapper {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  border: 3px solid #999999; /* default gray border */
  background-color: #fafafa;
}

/* 2.1-2.4 Dynamic Visual Feedback: different border colors for each state */
/* Neutral state before typing starts */
.border-neutral {
  border-color: #999999;
}

/* 2.2 Blue: while user is typing and text matches so far */
.border-correct {
  border-color: #2196f3;
}

/* 2.3 Orange/Red: user made a typo */
.border-error {
  border-color: #ff000088;
}

/* 2.4 Green: typing test finished with full match */
.border-complete {
  border-color: #4caf50;
}

/* Origin text styling */
#origin-text {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #eeeeee;
  border-radius: 4px;
}

/* Textarea where user types */
#test-area {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  resize: vertical;
  color: #000000; /* make sure text is visible */
  background-color: #ffffff;
}

/* Info panel for timer, WPM, and errors */
#info-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  background-color: #e0f7fa;
  padding: 8px 12px;
  border-radius: 4px;
}

.info-label {
  font-weight: bold;
  margin-right: 5px;
}

/* Reset button style */
#reset-button {
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  background-color: #673ab7;
  color: #ffffff;
  cursor: pointer;
}

#reset-button:hover {
  background-color: #5e35b1;
}

/* Scores section */
#scores-section {
  margin-top: 25px;
}

#scores-list {
  padding-left: 20px;
}