<h2>CSS</h2>
<style>
@font-face {
font-family: 'NotoSerif';
src: local('NotoSerif'),
url(${await FileAttachment("NotoSerif-Regular.woff2").url()}) format('woff2'),
url(${await FileAttachment("NotoSerif-Regular.woff").url()}) format('woff'),
url(${await FileAttachment("NotoSerif-Regular.ttf").url()}) format('ttf')
}
:root {
--ffam: NotoSerif, serif;
--fsize: 2.3vw;
}
#frame {
position: relative;
background-color: ghostwhite;
padding: 1vw;
width: max-content;
}
#display {
position: relative;
background-color: floralwhite;
font-family: var(--ffam);
font-size: var(--fsize);
color: slate;
cursor: none;
overflow: hidden;
width: 54.9163179916318vw;
height: 44.8744769874477vw;
}
#verse {
margin: 0;
font-family: var(--ffam);
font-size: var(--fsize);
}
.text {
position: absolute;
opacity: 0;
transition: opacity 1.5s ease-in-out;
}
.text.visible {
opacity: 1;
}
</style>