/*
  Assignment: Part A - CSS Selectors
  Name: Matteo Iacono
  Date: October 19, 2026
*/

/* The body element selector sets the font and spacing for the whole page */
body {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 800px;      /* keeps lines from getting too long to read */
  margin: 40px auto;     /* centres the page horizontally */
  padding: 0 20px;
  background-color: #2e1f27;
  color: #333333;
}

/* Every section gets a white card look so the examples are easy to tell apart */
section {
  background-color: #e7e393;
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #000000;
}

p {
  font-size: 16px;
  line-height: 1.6;      /* extra space between lines for readability */
  color: #555555;
}

.note {
  background-color: #f5e3b3;
  border-left: 5px solid #dd7230;   /* coloured bar down the left side */
  padding: 10px 14px;
  margin: 10px 0;
  font-style: italic;
}

#page-title {
  text-align: center;
  color: #ffffff;
  background-color: #dd7230;
  padding: 20px;
  border-radius: 8px;
  letter-spacing: 2px;
}

.hover-button {
  background-color: #dd7230;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;                      /* shows the hand cursor */
  transition: background-color 0.3s;    /* smooth colour change */
}

/* Applied only while the user hovers over the button */
.hover-button:hover {
  background-color: #f4c95d;
  color: #222222;
}

.striped-list {
  list-style: none;      /* removes the default bullet points */
  padding: 0;
}

/* Basic style shared by all list items */
.striped-list li {
  padding: 8px 12px;
}

/* Only the even-numbered list items get the shaded background */
.striped-list li:nth-child(even) {
  background-color: #f4c95d;
}
