/* ==========================
   GENERAL STYLES
========================== */
body {
  font-family: "Permanent Marker", cursive;
  background-color: #f4f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #fff8b0; /* light yellow */
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #001f4d; /* navy */
}

/* ==========================
   INPUT AREA
========================== */
.input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
}

/* ==========================
   BUTTONS
========================== */
button {
  padding: 8px 12px;
  background-color: #4caf50; /* green for Add */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
}

button:hover {
  background-color: #45a049;
}

/* Reset button specifically */
#resetBtn {
  background-color: #f44336; /* red */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
}

#resetBtn:hover {
  background-color: #d32f2f; /* darker red on hover */
}

/* ==========================
   SHOPPING LIST
========================== */
ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between; /* checkbox to the right */
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-family: "Permanent Marker", cursive;
  color: #001f4d; /* navy text */
  font-size: 1.3rem;
  background-color: #fff8b0; /* light yellow */
  border-radius: 4px;
  margin-bottom: 4px;
}

/* Strikethrough completed items */
li.completed span.text {
  text-decoration: line-through;
  color: gray;
}

/* Checkbox styles */
li input[type="checkbox"] {
  transform: scale(2); /* double size */
  cursor: pointer;
}
