<style>
.chat { position: absolute; left: 120px; top: 300px; width: 1680px; display: flex; flex-direction: column; gap: 32px; }
.bubble { max-width: 1100px; padding: 28px 40px; border-radius: 24px; font: 450 36px/1.4 var(--sans); }
.bubble p { margin: 0 0 12px; }
.ask { align-self: flex-end; background: var(--accent); color: var(--ground); }
.reply { align-self: flex-start; background: var(--block); color: var(--ink); }
</style>
<script>
DeckTalk.scene(9, { name: "Before and after", steps: [
{ id: "9.1", hold: 12, cues: { "9.1ask": 1, "9.1r1": 5, "9.1r2": 7 }, render: () => `
<div class="slide">
<p class="eyebrow">Before</p>
<div class="chat">
<div class="bubble ask" data-cue="9.1ask" data-type="40" data-fx="fade">Write about photosynthesis.</div>
<div class="bubble reply" data-cue="9.1r1" data-fx="fade">
<p data-cue="9.1r1" data-fx="fade">Photosynthesis is the process by which plants convert light into energy.</p>
<p data-cue="9.1r2" data-fx="fade">It takes place in the chloroplasts.</p>
</div>
</div>
</div>` },
{ id: "9.2", hold: 12, cues: { "9.2ask": 1, "9.2reply": 6 }, render: () => `
<div class="slide">
<p class="eyebrow">After</p>
<div class="chat">
<div class="bubble ask" data-cue="9.2ask" data-type="30" data-fx="fade">Explain photosynthesis to a ninth grader in three sentences.</div>
<div class="bubble reply" data-cue="9.2reply" data-fx="pop">
<p>Plants catch sunlight and use it to turn water and air into sugar.</p>
</div>
</div>
</div>` },
]});
</script>