/* Style for the div containing the reading lessons */
#lessonpage {
  padding: 20px;
  border-radius: 10px;
  background-color: #f5f5f5; /* Light gray background for the div */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  font-family: Arial, sans-serif;
  line-height: 1.6; /* Good line spacing for readability */
  max-width: 800px;
  margin: auto; /* Center the div */
  text-align:justify;
}

/* General styling for paragraphs */
#lessonpage p {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #333; /* Darker text for contrast */
  font-size: 16px;
}

/* Different background colors for each paragraph */
#lessonpage p:nth-child(10n+1) {
  background-color: #e3f2fd; /* Light Blue */
}

#lessonpage p:nth-child(10n+2) {
  background-color: #f3e5f5; /* Light Purple */
}

#lessonpage p:nth-child(10n+3) {
  background-color: #e8f5e9; /* Light Green */
}

#lessonpage p:nth-child(10n+4) {
  background-color: #fff3e0; /* Light Orange */
}

#lessonpage p:nth-child(10n+5) {
  background-color: #fce4ec; /* Light Pink */
}

#lessonpage p:nth-child(10n+6) {
  background-color: #e1f5fe; /* Lighter Blue */
}

#lessonpage p:nth-child(10n+7) {
  background-color: #ede7f6; /* Lavender */
}

#lessonpage p:nth-child(10n+8) {
  background-color: #f9fbe7; /* Light Yellow Green */
}

#lessonpage p:nth-child(10n+9) {
  background-color: #ffe0b2; /* Light Peach */
}
#lessonpage p:nth-child(10n+10) {
  background-color: #ffebee; /* Very Light Red */
}
#lessonpage h1,
#lessonpage h2,
#lessonpage h3,
#lessonpage h4,
#lessonpage h5 {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #333;
  font-family: 'Georgia', serif; /* Slightly different font for emphasis */
  text-align: center; /* Centered text for headings */
}

/* Background colors for each heading */
#lessonpage h1 {
  background-color: #bbdefb; /* Soft Blue for H1 */
  font-size: 32px;
}

#lessonpage h2 {
  background-color: #d1c4e9; /* Soft Lavender for H2 */
  font-size: 28px;
}

#lessonpage h3 {
  background-color: #c8e6c9; /* Light Green for H3 */
  font-size: 24px;
}

#lessonpage h4 {
  background-color: #ffe0b2; /* Light Orange for H4 */
  font-size: 20px;
}

#lessonpage h5 {
  background-color: #ffcdd2; /* Light Pink for H5 */
  font-size: 18px;
}

/*lessonlist*/
/* Style for each lesson div */
.lessonlist div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff; /* White background for contrast */
  padding: 15px;
  margin-bottom: 10px; /* Space between lessons */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
  transition: background-color 0.3s ease; /* Smooth hover transition */
}

.lessonlist div:hover {
  background-color: #f0f8ff; /* Light blue background on hover */
}

/* Icon and lesson title */
.lessonlist div span:first-child {
  font-size: 18px;
  color: #007bff; /* Light blue for icon or text */
  margin-right: 10px;
}

.lessonlist div span:nth-child(2) {
  font-size: 18px;
  font-weight: bold;
  color: #333; /* Dark text for title */
}

/* Last read date */
.lessonlist div span:nth-child(3) {
  font-size: 14px;
  color: #999; /* Gray color for last read date */
  margin-left: auto;
  text-align: right;
}

/* Close icon (hidden by default) */
.lessonlist div span:nth-child(4) {
  display: none; /* Hide the X by default */
  color: #ff6b6b; /* Pink color */
  cursor: pointer;
}

.lessonlist div:hover span:nth-child(4) {
  display: inline-block; /* Show X on hover */
}

/* General styles for spans */
.lessonlist span {
  display: flex;
  align-items: center;
}