body {
  background-color: #fff1f5;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130vh;
  transition: background-color 0.3s ease;
}

body.dark {
  background-color: #1e1e1e;
  color: #ffffff;
}

.container {
  background: #ffe4e6;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
  margin: 10px;
}

body.dark .container {
  background: #2c2c2c;
}

h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.subheading {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: left;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-size: 16px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.stats {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 10px;
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  height: 10px;
  width: 100%;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #d4e1ff;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #bdd4ff;
}

.result-box {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: #e3f2fd;
}

body.dark .result-box {
  background-color: #3a3a3a;
}

@media (max-width: 400px) {
  .stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  button {
    width: 100%;
    font-size: 14px;
  }

  .buttons {
    flex-direction: column;
    gap: 8px;
  }

  textarea {
    height: 90px;
    font-size: 14px;
  }

  h1 {
    font-size: 20px;
  }

  .subheading {
    font-size: 14px;
  }
}
