* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: #bbf7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#container {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 700px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

#status-card {
  background-color: #0288d1;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

#status-card div {
  font-size: 18px;
}

#timer {
  font-size: 48px;
  font-weight: bold;
}

#input-field {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #0288d1;
  border-radius: 8px;
  outline: none;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

#input-field:focus {
  border-color: #0288d1;
  box-shadow: 0 0 8px rgba(2, 136, 209, 0.5);
}

#text-to-type {
  font-size: 22px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 30px;
  margin-top: 20px;
  letter-spacing: 1px;
}

#typed-text {
  font-size: 22px;
  color: #333;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 20px;
}

.correct {
  color: #61ff69;
}

.incorrect {
  color: #ff523f;
}

#container {
  background: #6a99ff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

button {
  padding: 12px 30px;
  background-color: #0288d1;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0277bd;
}

button:focus {
  outline: none;
}

#results {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-card {
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  background-color: #01579b;
  transition: background-color 0.3s ease;
}

.result-card:hover {
  background-color: #0277bd;
}

.result-card .result-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.result-card .result-value {
  font-size: 24px;
  font-weight: bold;
}

.result-card.mistakes {
  background-color: #cc4f4f;
}

.result-card.accuracy {
  background-color: #388e3c;
}

.result-card.wpm {
  background-color: #1976d2;
}

.result-card.cpm {
  background-color: #0288d1;
}

button {
  width: 50%;
  padding: 12px 20px;
  border: none;
  background-color: #0318ff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
