/* styles.css */
body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column; /* Align header, main, and footer vertically */
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0; /* Light gray background */
}

header {
  background-color: #673ab7; /* Purple header */
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

main {
  flex-grow: 1; /* Allow main content to take up available space */
  padding: 20px;
  display: flex;
  justify-content: center; /* Center the container horizontally */
  align-items: center;  /* Center the container vertically */

}


.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;  /* Set a maximum width for the container */

}

textarea {
  width: calc(100% - 40px);
  height: 200px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 16px;
}

.counters {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;     /* Allow counters to wrap on smaller screens */
}

.counter {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f8f8;
  margin-bottom: 10px; /* Add some margin between counters */
  flex: 1 0 40%; /* Make counters flexible and take at least 40% width */

}

.counter span {
  font-weight: bold;
}


#clearBtn {
  background-color: #2196F3; /* Blue button */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

footer {
  background-color: #673ab7; /* Purple footer */
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;  /* Push footer to bottom */

}
