JSFiddle - React, Tailwind, and code Playground
HTML
<h1>あいだ</h1>
<h3>1. Noun のあいだ</h3>
<h4>a. Noun のあいだ (space)</h4>
<ul>
<li>(1) ステレオと本棚の<b>間</b>にテレビを置いた。</li>
<li>I placed the television between the stereo and the bookshelf.</li>
<br>
<li>(2) 古本を買ったら、ページの<b>間</b>に1万円札がはさまっていた。</li>
<li>When I bought a secondhard book, I found a 10,000 yen bill between the pages.</li>
<br>
<li>(3) 大阪までの<b>間</b>のこどかで駅弁を買って食べよう。</li>
<li>I'll buy lunch (a lunch box) at a station somewhere before Osaka and eat it.</li>
</ul>
<p>あいだ indicates a space between two places/things. When both things or places are indicated, Noun と Noun のあいだ is used, as in (1).</p>
<h4>b. Nounのあいだ(relationship)</h4>
<ul>
<li>(1) 最近二人の<b>間</b>はうまくいっていないようだ。</li>
<li>It seems that the relationship between the two hasn't gone well recently.</li>
<br>
<li>(2) そのホテルは安くて清潔なので、旅行者たちの<b>間</b>で人気がある。</li>
<li>Since the hotel is cheap and clean, it is popular among travelers.</li>
<br>
<li>(3) 二つの事件の<b>間</b>にはなにか関係があるらしい。</li>
<li>It seems that there is some relationship between the two incidents.</li>
</ul>
<p>In these cases, あいだ indicated "the relationship among several people or matters," and it is used to express a state or an action or an event that happens in it.</p>
<h3>2. あいだ(time)</h3>
<h4>a. ...あいだ</h4>
<h4>[Noun のあいだ]</h4>
<h4>[い Adjective Stem いあいだ]</h4>
<h4>[Verb ている / Verb Dictionary Form あいだ]</h4>
<ul>
<li>(1) 彼は会議の<b>間</b>ずっといねむりをしていた。</li>
<li>He was dozing all through the meeting.</li>
<br>
<li>(2) 彼女が戻ってくるまでの<b>間</b>、喫茶店で本を読むことにした。</li>
<li>I decided to read a book at the coffee shop until she returned.</li>
<br>
<li>(3) 一所懸命泳いでいる<b>間</b>はいやなことも忘れてしまう。</li>
<li>I can forget about an unpleasant thing while swimming hard.</li>
<br>
<li>(4) 子供が小さい<b>間</b>は、なかなか夫婦での外出ができなかった。</li>
<li>When my child was small, I could hardly ever go with just by husband.</li>
<br>
<li>(5) 友子は、大阪にいる<b>間</b>は元気だったが、東京に引っ越したとたんに体をこわしてしまった。</li>
<li>Tomoko was fine when she was in Osaka, but fell sick just after she moved to Tokyo.</li>
<br>
<li>(6)...
CSS
.green {
color: green;
}
.red {
color: red;
}