body {
    font-family: Arial, sans-serif; /* Changes the font */
    background-color: #f4f4f4; /* Light grey background */
    color: #333; /* Dark grey text color */
    margin: 20px; /* Space around the content */
}

h1 {
    color: #0056b3; /* Darker blue for headings */
    text-align: center; /* Centers the heading */
}

p {
    line-height: 1.6; /* Makes paragraphs easier to read */
    max-width: 800px; /* Limits paragraph width for readability */
    margin: 0 auto 15px auto; /* Centers paragraphs and adds space below */
    padding: 0 10px; /* Adds a little padding inside paragraphs */
}
/* General Lesson Page Styles */
header {
    background-color: #0056b3;
    color: white;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    color: white; /* Override default h1 color */
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1000px; /* Limits overall content width */
    margin: 20px auto; /* Centers the main content */
    padding: 0 20px;
}

.lesson-section {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lesson-section h2 {
    color: #0056b3;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Section 1.A: Picture Activity Grid */
.picture-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between items */
    justify-content: center;
}

.picture-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack image, paragraph, textarea */
    align-items: center; /* Center items horizontally */
}

.picture-item img {
    max-width: 100%; /* Ensure image fits container */
    height: 180px; /* Fixed height for consistency */
    object-fit: cover; /* Crop if necessary to fit fixed height */
    border-radius: 4px;
    margin-bottom: 10px;
}

.picture-item p {
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    max-width: 100%; /* Override main p style */
}

textarea {
    width: 100%; /* Take full width of parent */
    min-height: 80px; /* Minimum height */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical; /* Allow vertical resizing by user */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #eee;
    color: #666;
    font-size: 14px;
}
/* Section 1.B: Poem Activity */
.poem-activity {
    text-align: justify;
}

.poem-image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.poem-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    max-width: 100%; /* Override main p style */
}

.poem-text {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    border: 1px dashed #ddd;
    padding: 20px;
    background-color: #0b95b1; /* Light cream background for poem */
    border-radius: 8px;
}

.poem-text p {
    margin: 5px 0; /* Adjust line spacing for poem */
    max-width: 100%; /* Override main p style */
}

.difficult-word {
    color: rgb(4, 0, 255); /* Make the word red */
    font-weight: bold;
    cursor: help; /* Change cursor on hover to indicate interactivity */
    border-bottom: 1px dotted red; /* Underline for better visibility */
}

.definition-box {
    background-color: #e0f2f7; /* Light blue background for definition */
    border: 1px solid #b3e5fc;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px; /* Limit width */
    min-height: 60px; /* Give it some space */
    display: flex; /* Use flexbox to center content */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    color: #01579b;
    font-size: 1.1em;
    font-style: italic;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05); /* Subtle inner shadow */
}