* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
}

nav a, nav button {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

nav a:hover, nav button:hover {
  text-decoration: underline;
}

/* Profile Section */
section:nth-of-type(1) {
  display: flex;
  align-items: center;
  padding: 20px 0;
}

section:nth-of-type(1) img {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 20px;
}

section:nth-of-type(1) h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

section:nth-of-type(1) p {
  margin: 3px 0;
}

/* Reviews and Saved Books */
section:nth-of-type(2) {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

section:nth-of-type(2) td {
  width: 48%;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  vertical-align: top;
}

section:nth-of-type(2) h3 {
  margin-bottom: 10px;
}

section:nth-of-type(2) img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

/* Account Settings */
section:nth-of-type(3) {
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px 0;
}

section:nth-of-type(3) h3 {
  margin-bottom: 10px;
}

section:nth-of-type(3) label,
section:nth-of-type(3) select,
section:nth-of-type(3) input[type="password"] {
  display: block;
  margin: 10px 0;
}

section:nth-of-type(3) input[type="checkbox"] {
  margin-left: 10px;
}

section:nth-of-type(3) button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  margin-top: 10px;
}

section:nth-of-type(3) button:hover {
  background-color: #444;
}

/* Footer */
footer {
  border-top: 1px solid #ccc;
  padding: 20px;
  background: #fff;
}

footer table {
  width: 100%;
  margin-bottom: 10px;
}

footer td {
  vertical-align: top;
}

footer h4 {
  margin-bottom: 10px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 5px;
}

footer ul li a {
  text-decoration: none;
  color: #333;
}

footer ul li a:hover {
  text-decoration: underline;
}

footer p {
  text-align: center;
  font-size: 14px;
  color: #777;
}
