body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  padding: 10px 20px;
}

.navbar .menu-btn {
  font-size: 28px;
  background-color: #004480;
  color: #ffffff;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 10px 15px;
}

.navbar .bookname {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.navbar .spacer {
  width: 24px;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Hidden state */
  width: 250px;
  height: calc(100vh - 0px); /* Adjust if a fixed navbar height exists */
  background-color: #004480;
  color: white;
  transition: transform 0.3s ease;
  overflow-y: auto; /* Makes it scrollable */
  z-index: 999;
}

.sidebar.open {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 18px 0;
}

.sidebar ul li a {
  color: black;
  text-decoration: none;
}

.activity-btn {
  display: inline-block;
  padding: 10px 15px;
  margin: 0;
  /* width: 90%; */
  background-color: #d8e6ff;
  color: black;
  text-decoration: none;
  font-size: 16px;
  font-family: Arial, sans-serif;
  border-radius: 14px;
  transition: background-color 0.3s, transform 0.2s;
}

.close-btn {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background-color: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 50%;
  line-height: 20px;
  position: fixed; /* Ensures placement inside the sidebar */
  top: 10px; /* Adjust based on sidebar padding */
  left: 5px; /* Adjust based on sidebar padding */
}

.close-btn:hover {
  /* background-color: #555; Highlight effect on hover */
  transform: scale(1.1); /* Slight enlargement */
}

.close-btn:active {
  /* background-color: #777; Pressed effect */
  transform: scale(0.95); /* Simulates a click */
}

.activity-btn:hover {
  background-color: #87b3ff;
  transform: translateY(-2px);
  cursor: pointer;
}

.activity-btn:active {
  transform: translateY(1px);
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
  background-color: #858585;
  border-radius: 4px;
  text-decoration: none;
}

.back-btn:hover {
  text-decoration: underline;
}

.back-button {
  background-color: #004480;
  color: white;
  border: none;
  padding: 14px 36px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 14px;

  font-size: 16px;
  font-weight: bold;

  transition: background 0.3s ease;
  /* margin-right: 20px; */
}

.back-button:hover {
  background-color: #0056b3;
  /* Slightly darker shade for hover effect */
}

#sidebar {
  margin-top: 74px;
}
