* {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  
}

body {
  background-image: url("images/forest.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100%;
  padding: 4rem;
  color: #253921;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  width: 100%;
}

h1 {
  font-family: "Alice", serif;
  font-weight: 400;
  font-size: 3rem;
  padding-bottom: 20px;
}

h2 {
  font-family: "Alice", serif;
  font-weight: 500;
  letter-spacing: -3%;
  padding-bottom: 10px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #fffbf2;
  color: #253921;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
  background-color: #253921;
  color: #fffbf2;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 0; 
}

.book-container {
  display: flex;
  position: relative;
  width: 1100px;
  height: 700px;
  background-color: #253921;
  border: 2px solid #253921;
  border-radius: 20px;
  box-shadow: 0 10px 25px #253921;
  padding: 16px 60px; 
  gap: 16px;
  box-sizing: border-box;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background-color: #e8e7b5;
  color: #253921;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
  background-color: #253921;
  color: #fffbf2;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 0; 
}

/* Individual Pages */
.page {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 100%;
  position: relative;
  padding: 30px;
  
  /* Inner Page Styling */
  background-color: #e8e7b5; /* Paper page color */
  border-radius: 8px;      /* Rounded corners on all 4 corners */
  overflow: hidden;         /* Ensures inner content respects rounded corners */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Make sure scrollable content area fills remaining page height */
.page-content {
  flex: 1;
  overflow-y: auto;
}

/* Vertical List Container */
.image-list {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Single Item Row */
.list-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 4px;
  border-bottom: 1px dotted #898b36;
}

/* Remove bottom border from the last item */
.list-row:last-child {
  border-bottom: none;
}

/* Small Left Icon */
.icon-img {
  width: 75px;
  height: 110px;
  border-radius: 4px; /* Square with slightly rounded corners (use 50% for circular) */
  object-fit: cover;
  flex-shrink: 0;
}

/* Caption Text */
.caption {
  font-size: 0.9rem;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

.btn {
  font-family: "Alice", serif;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  border: 2px solid #898b36;
  background-color: #e8e7b5;
  margin-top: 12px;
}

.btn:hover {
  box-shadow: 2px 2px 3px #898b36;
}

li {
  line-height: 2;
}

.btn a {
  font-family: "Alice", serif;
  text-decoration: none;
  color: #253921;
}

.end-pages {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 100%;
  width: 70%;
}

p {
  display: inline-block;
}