body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
  background-color: #ffffff; /* Added background for visibility */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.header-container {
  text-align: center;
  width: 100%; /* Full width of the container */
  margin-bottom: 20px; /* Space between header-container and main content */
}

.heading {
  margin-bottom: 5px; /* Reduced gap between heading and summary */
  color: #333;
  font-weight: 500;
}

.summary {
  color: #666;
  font-size: 16px;
}

.main-content {
  display: flex;
  flex-direction: row;
  width: 100%; /* Full width of the container */
  align-items: stretch; /* Ensure equal height for left and right sides */
}

.left-side,
.right-side {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.left-side {
  flex: 2; /* More space for the input area */
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between textarea and buttons */
  align-items: center; /* Center content horizontally */
}

.right-side {
  flex: 1; /* Less space for the results area */
}

textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'Roboto Mono', monospace; /* Apply the custom font */
  box-sizing: border-box;
  resize: none; /* Disable resizing for a cleaner look */
  overflow: auto; /* Ensure scrollbars appear only when needed */
  line-height: 1.5; /* Improve readability with line height */
  height: 100%; /* Full height of the parent element */
  background-color: #f9f9f9; /* Lighter background color for the textarea */
  cursor: text; /* Text cursor for textarea */
  outline: none;
}

/* Adjust textarea height for mobile view */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .left-side {
    margin-right: 0;
    margin-bottom: 20px;
  }

  textarea {
    height: 300px; /* Increased height for better mobile view */
  }
}

.button-container {
  display: flex;
  gap: 10px; /* Space between buttons */
  justify-content: center; /* Center buttons horizontally */
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer; /* Pointer cursor for buttons */
  color: #fff;
  background-color: #0056b3; /* Slightly darker shade for the button */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 150px; /* Fixed width to prevent movement */
  text-align: center; /* Center text horizontally */
}

button:hover {
  background-color: #004494; /* Even darker shade on hover */
}

button:active {
  background-color: #003366; /* Darker shade on click */
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus outline */
}

/* Add specific styles for the Clear and Copy buttons if needed */
#clearButton {
  background-color: #c82333; /* Danger color for the clear button */
}

#clearButton:hover {
  background-color: #bd2130; /* Darker red on hover */
}

#copyButton {
  background-color: #167b2c; /* Success color for the copy button */
}

#copyButton:hover {
  background-color: #1e7e34; /* Darker green on hover */
}

.count-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Gap between boxes */
  height: 100%; /* Ensure count-container fills the right-side height */
  box-sizing: border-box; /* Include padding in height calculation */
}

.count-box {
  background-color: #f0f2f5;
  padding: 15px;
  border-radius: 5px;
  flex: 1 1 calc(50% - 10px); /* Equal width for each box, accounting for gap */
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.count-box .count {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.count-box .label {
  font-size: 16px;
  color: #333;
}

/* Optional: Improve the appearance of the scrollbar */
textarea::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

textarea::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Rounded corners for the scrollbar thumb */
}

textarea::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker color when hovering over the scrollbar thumb */
}

textarea::-webkit-resizer {
  cursor: vertical-text; /* Cursor for resizing textarea */
}

