body {
  font-family: "Times New Roman", serif;
  font-size: 14px;
  margin: 40px;
  color: #222;
  max-width: 320px;
}

.title {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 30px;
}

.entry {
  margin-bottom: 4px;
}

.date {
  cursor: pointer;
  color: #777; /* lighter grey */
  transition: color 0.3s;
}
.date:hover,
.date.active {
  color: #000;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s ease-in-out;
  margin-left: 20px;
  max-width: 280px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
}

.content.open {
  max-height: 1500px;
}

img {
  max-width: 100%;     /* ensures images don’t overflow */
  height: auto;
  display: block;
  margin: 10px 0;

  aspect-ratio: auto 4 / 3; /* auto if browser knows intrinsic size, fallback 4:3 */
  object-fit: contain;      /* scale nicely inside reserved space */
  background: #f8f8f8;      /* faint placeholder box */
}

em {
  font-style: italic;
}

blockquote {
  margin: -25px 15px;
  font-style: italic;
  white-space: pre-line;
  line-height: 1.3;
}

strong {
  font-weight: bold;
}

a {
  color: #555;
  text-decoration: underline;
}
a:hover {
  color: #000;
}

audio {
  width: 100%;
  max-width: 100%;
  margin: 8px 0;
  display: block; 
}
.poem {
  margin: 10px 0;              /* aligns with regular text spacing */
  padding-left: 10px;           /* small gap between line and words */
  border-left: 1px solid #ddd;  /* faint, subtle grey line */
  font-style: italic;
  line-height: 1.4;
}

.content ul,
.content ol {
  margin-left: 20px;   /* gives the list its indentation */
  padding-left: 10px;    /* optional — keeps it neat */
}

.content li {
  margin-bottom: -6px;  /* tighter vertical spacing between list items */
  line-height: 1.2;    /* matches your text line height */
}


.poem.tight {
  line-height: 2; /* tighter spacing specifically for short poems */
  margin-top: 6px;
  margin-bottom: 6px;
}
.secret-box input {
  width: 74.5%;        /* make input wider */
  margin-bottom: 5px;
  margin-right: 5px; /* slight spacing between input and button */
  font-style: italic;  /* user types in italics */
}

.secret-box p {
  color: #555;
  font-style: italic;
  margin: 0 0 15px 0;  /* slightly bigger margin underneath */
}
/* --- Quiz Styling --- */
.quiz-container {
  margin-top: 10px;
}

.quiz-container p {
  margin: 8px 0;
}

.quiz-container label {
  display: block; /* makes each option appear on a new line */
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 14px; 
}

.quiz-container input[type="radio"] {
  margin-right: 5px;
}

.quiz-container button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 14px;
  font-family: "Times New Roman", serif;
  font-weight: normal; /* ensures no bolding */
}

.quiz-container button:hover {
  background-color: #ddd;
}

.quiz-result {
  margin: 5px 0 10px 0;
  /* Removed font-style: italic; */
  font-size: 14px;
}

#quiz-score {
  margin-top: 15px;
  font-weight: normal; /* ensures no bolding */
}