body {
  margin: 0 auto;
}



.poem-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: flex-start;  
}


/* Each column */
.poem-column {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  box-sizing:border-box;
}



/* Paragraph spacing inside columns */
.poem-column p {
  font-size: 1.125rem;
  min-width: 0;
  line-height: 1.4;
  margin: 0 0 0 0em;
  white-space: nowrap;
}


/* Right column (last child) gets right border */
.poem-column:last-child{
  text-align: right;
}



/* --- Mobile layout fixes: stack columns and fix borders --- */
@media (max-width: 750px) {
  .poem-container {
    flex-direction: column;
    row-gap: 1rem;
    column-gap: 0;
  }
  .poem-column {
    max-width: 100%;
  }

  .poem-column:last-child{
    max-width: 95%;      /* or any width < 100% */
    margin-left: auto;   /* pushes the block to the right */
    text-align: right;
  }
  
}

@media (max-width: 400px) {
  .poem-column p{
    font-size: .9375rem;
  }
}


