/*! Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(235, 222, 199);
  color: #333;
}

/*! app container */
.container {
  width: min(720px, 95%);
  background: rgb(245, 221, 177);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  border: 2px solid gray;
}

/*! form styles */
.form label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

#note-input {
  background: gainsboro;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 1rem;
}

#submit-btn {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgb(207, 174, 91);
  color: #fcfcfc;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  transition: background 0.3s;
}

#submit-btn:hover {
  background: rgb(180, 150, 80);
}

/*! Notes list */
#user-notes {
  width: 100%;
  max-width: 100%;
  height: 260px;
  margin-top: 18px;
  background: rgba(180, 150, 80, 0.4);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 10px;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.note-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9ff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  word-break: break-word;
  background: #fff3c4;
}

.note-item p {
  margin: 0;
  flex: 1 1 auto;
  color: #222;
  font-size: 0.95rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #9b1c1c;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.remove-btn:hover {
  background: rgba(155, 28, 28, 0.06);
}

/*! small screens tweak */
@media (max-width: 420px) {
  #user-notes {
    height: 200px;
  }
}
