body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding: 20px; /* Add some padding around the whole body */
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column; /* Arrange items vertically */
  align-items: center; /* Center horizontally */
  min-height: 100vh;
}

#notepad-controls {
  margin-bottom: 20px;
  width: 90%;
  max-width: 800px;
  text-align: right; /* Align button to the right */
}

#add-notepad-btn {
  background-color: #4CAF50; /* Green */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

#add-notepad-btn:hover {
  background-color: #45a049;
}

#notepads-container {
  display: flex;
  flex-wrap: wrap; /* Allow notepads to wrap to the next line */
  gap: 20px; /* Space between notepads */
  justify-content: center; /* Center notepads when there are multiple */
  width: 100%; /* Take full width */
  max-width: 1200px; /* Max width for the container */
}

.notepad-instance {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 90%; /* Default width */
  max-width: 400px; /* Max width for individual notepads */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow notepads to grow and fill space */
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.notepad-textarea {
  width: 100%;
  height: 400px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box; /* Ensures padding doesn't add to the width */
}
