/* styles.css */
.typingTest_container {
  max-width: 800px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.typing-test-config, #test-area, #result-area {
    text-align: center;
}
.typingTest_setup {
  text-align: left;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #007BFF;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #0056b3;
}

#testPassage {
  padding: 15px;
  border: 1px solid #ccc;
	margin-top: 10px;
  margin-bottom: 20px;
  background: #f0f8ff;
  text-align: justify; /* Justified text alignment for a cleaner look */
  font-size: 16px; /* Increased font size for better legibility */
  line-height: 1.6; /* Improved line spacing for readability */
}

#userInput {
  height: 120px;
  resize: none;
}

.typingTest_stats {
  display: flex;
	justify-content: space-between; /* Spread content across full width */
  margin-top: 15px;
  font-size: 16px;
}


.typingTest_stats span {
  display: inline-block;
  margin-right: 15px;
}

#typingProgressBarContainer {
  width: 100%;
  height: 30px;
  background: #eee;
  margin-top: 15px;
  border-radius: 5px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Typing Progress Bar */
#typingProgressBar {
  height: 70%; /* Occupies half the height */
  background: #76c7c0;
  width: 0%;
  transition: width 0.1s;
}

/* Timer Progress Bar */
#timerProgressBar {
  height: 30%; /* Occupies the other half */
  background: #ff6b6b;
  width: 100%; /* Starts fully filled */
  transition: width 1s linear; /* Smooth reduction */
}

/* Correct Typing */
.correct {
  color: #28a745; /* Green for correct typing */
  background: transparent;
}

/* Incorrect Typing */
.incorrect {
  color: #dc3545; /* Red for incorrect typing */
  background: #ffe6e6; /* Light red background */
}

/* Typing Test Result Section */
.typingTest_result {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient background */
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 1s forwards; /* Fade-in animation */
}

/* Title Styling */
.typingTest_result h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
}

/* Result Details Styling */
.typingTest_result #resultDetails {
  margin-top: 20px;
  font-size: 1.2rem;
}

/* Result Item Styling */
.result-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1); /* Light transparent background */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Result Label Styling */
.result-label {
  font-weight: bold;
}

/* Result Value Styling */
.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffeb3b; /* Yellow color to highlight the result */
}
/* Start Button Styling */
#startTestBtn {
  justify-content: center; /* Horizontally center text */
  align-items: center; /* Vertically center text */
  text-align: center; /* Ensures text is centered */
}

/* Restart Button Styling */
.typingTest_result #restartTestBtn {
  background: #28a745;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Restart Button Hover Effect */
.typingTest_result #restartTestBtn:hover {
  background: #218838;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


