* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f4eee4;
  color: #30261f;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

header {
  padding: 35px 20px;
  color: white;
  background-color: #6b3f2d;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 8px 0 0;
}

main {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 15px;
}

h2 {
  color: #6b3f2d;
}

.instructions {
  max-width: 750px;
}

.table-container {
  overflow-x: auto;
  background-color: white;
  border: 1px solid #bda995;
}

table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border: 1px solid #cdbdad;
  text-align: left;
  vertical-align: top;
}

th {
  color: white;
  background-color: #7f503b;
}

tr[class="read"] {
  background-image: linear-gradient(#edf7ed, #e3f0e3);
}

tr[class="to-read"] {
  background-image: linear-gradient(#eef4fb, #e2edf8);
}

tr[class="in-progress"] {
  background-image: linear-gradient(#fff7df, #f7ebc6);
}

span {
  display: inline-block;
}

span[class="status"] {
  padding: 5px 9px;
  border: 1px solid #777;
  border-radius: 12px;
  white-space: nowrap;
}

tr[class="read"] span[class="status"] {
  background-image: linear-gradient(#d6ead7, #c6dfc8);
}

tr[class="to-read"] span[class="status"] {
  background-image: linear-gradient(#d8e8f7, #c8dff2);
}

tr[class="in-progress"] span[class="status"] {
  background-image: linear-gradient(#f8df9c, #f0ce76);
}

span[class^="rate"] {
  width: 72px;
  height: 24px;
  padding: 2px;
}

span[class^="rate"] > span {
  width: 16px;
  height: 16px;
  margin: 1px;
  background-color: white;
  border: 1px solid #8b6e55;
  border-radius: 50%;
}

span[class~="one"] > span:first-child,
span[class~="two"] > span:nth-child(-n+2),
span[class~="three"] > span {
  background-image: linear-gradient(#d6a84f, #b77a22);
}

.reflection {
  margin-top: 30px;
  padding: 22px;
  background-color: white;
  border: 1px solid #bda995;
}

.reflection p {
  max-width: 850px;
}

footer {
  padding: 20px;
  color: #5d5148;
  text-align: center;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  main {
    margin-top: 20px;
  }
}
