body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #444;
}

.button-container {
  text-align: center;
  margin-bottom: 20px;
}

.add-message-button,
.delete-message-button {
  padding: 12px 24px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s ease;
}

.add-message-button:hover,
.delete-message-button:hover {
  background-color: #0056b3;
}

.board {
  column-count: 3;
  column-gap: 1.5em;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .board {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .board {
    column-count: 1;
  }
}

.note {
  background-color: #ffffff;
  padding: 20px;
  margin: 0 0 20px;
  display: inline-block;
  width: calc(100% - 40px);
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  break-inside: avoid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.note strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #007bff;
  text-transform: capitalize;
}

.note p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  word-wrap: break-word;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

form h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 20px;
}

form select,
form textarea,
form input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

form select:focus,
form textarea:focus,
form input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
}

textarea#content {
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
}

.char-counter {
  margin: -10px 0 15px;
  font-size: 0.9rem;
  color: #666;
  text-align: right;
}

.form-buttons {
  text-align: right;
}

.form-buttons button {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-buttons button[type="submit"] {
  background-color: #007bff;
  color: white;
}

.form-buttons button[type="submit"]:hover {
  background-color: #0056b3;
}

.form-buttons button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.form-buttons button[type="button"]:hover {
  background-color: #5a6268;
}
