/* This makes sure all elements use a simple, predictable sizing model */
* {
  box-sizing: border-box;
}

/* Basic page styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #222;
  margin: 0;
  padding: 0;
}

/* The header bar at the top */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 20px;
  text-align: center;
}

/* The main content area, centered with some max width */
main {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 15px;
}

/* The box where the user types a new note */
#note-input {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

/* The "Add Note" button */
#add-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Slightly darker green when hovering over the button */
#add-button:hover {
  background-color: #256428;
}

/* The section title "Saved Notes" */
#notes-list-section h2 {
  margin-top: 40px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* Each individual note box */
.note-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

/* The timestamp shown above each note */
.note-timestamp {
  font-size: 12px;
  color: #777;
  margin-bottom: 5px;
}

/* The actual text of the note */
.note-text {
  white-space: pre-wrap; /* keeps line breaks the user typed */
}

/* The small delete button on each note */
.delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 14px;
}
