Skip to content

Commit 7bf07ca

Browse files
committed
updated the-rules.html
mp4 now loops in background properly
1 parent 6b44fc1 commit 7bf07ca

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

dreamer/the-rules.html

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
position: relative;
2222
}
2323

24-
/* Video Background */
24+
/* VIDEO BACKGROUND - Matching gallery.html and dreamer.html approach */
2525
.video-wrapper {
2626
position: fixed;
2727
top: 0;
@@ -30,7 +30,7 @@
3030
height: 100vh;
3131
overflow: hidden;
3232
z-index: 0;
33-
opacity: 0.2;
33+
pointer-events: none;
3434
}
3535

3636
.video-bg {
@@ -39,9 +39,30 @@
3939
left: 50%;
4040
min-width: 100%;
4141
min-height: 100%;
42+
width: auto;
43+
height: auto;
4244
transform: translate(-50%, -50%);
4345
object-fit: cover;
44-
filter: brightness(1.1) contrast(0.9);
46+
filter: blur(2px) brightness(0.95) contrast(1.1);
47+
opacity: 0.99;
48+
pointer-events: none;
49+
transition: transform 0.3s ease;
50+
}
51+
/*
52+
Source - https://stackoverflow.com/a
53+
Posted by Ahmad Moghazi, modified by community. See post 'Timeline' for change history
54+
Retrieved 2025-12-09, License - CC BY-SA 4.0
55+
*/
56+
57+
.spoiler{
58+
background-color: gray;
59+
color: transparent;
60+
user-select: none;
61+
}
62+
63+
.spoiler:hover{
64+
background-color: inherit;
65+
color: inherit;
4566
}
4667

4768
/* Main Content */
@@ -220,10 +241,11 @@
220241
</style>
221242
</head>
222243
<body>
223-
<!-- Video Background -->
244+
<!-- 🔁 VIDEO BACKGROUND -->
224245
<div class="video-wrapper">
225246
<video class="video-bg" autoplay muted loop playsinline>
226-
<source src="../media/138556-769988117_medium.mp4" type="video/mp4">
247+
<source src="../media/138556-769988117_medium.mp4" type="video/mp4" />
248+
Your browser does not support the VIDEO tag.
227249
</video>
228250
</div>
229251

@@ -245,13 +267,13 @@ <h1>The Rules</h1>
245267
<div class="rules-section">
246268
<h2>Welcome, Dreamer</h2>
247269
<div class="highlight">
248-
<p><strong>PREFACE:</strong> This is an interactive narrative experience where you explore the realm of <details><summary>spoilers</summary>Anufallas</details> through choices and interactions. There are no wrong answers, only different paths to discover.</p>
270+
<p><strong>PREFACE:</strong> This is an interactive narrative experience where you explore the realm of <span class="spoiler">Anufallas</span> through choices and interactions. There are no wrong answers, only different paths to discover.</p>
249271
</div>
250272
</div>
251273

252274
<!-- How to Play -->
253275
<div class="rules-section">
254-
<h2><span class="rule-number">1</span>How to Play</h2>
276+
<h2><span class="rule-number">1</span>How To Play</h2>
255277
<h3>The Journey</h3>
256278
<p>Begin your journey at the tower: Under the prying eye of the moon, you awaken at the top of a tall tower. Trapped between walls of books, your only reprieve is the lonely table in the center of the room. Coolly lit by moonlight, several spheres lay upon the table. They beckon to you. As you grasp each orb, something strange stirs within them: objects from somewhere you can't remember. When one of them strikes a chord wihin your very soul, the glass orb shatters peacefully, and the object finds you sheepishly. The lights snuff out, and you find yourself weary, weak. As you collapse, your vision snaps to the gaping window, as the moon itself barrels toward the tower. Certain doom, if only you could keep your eyes open... <br><br>You awake once more. Ah, this place. You remember this place. The world comes into focus, and it all comes rushing back to you...<br>The realm within:</p>
257279
<ul>
@@ -418,5 +440,7 @@ <h3>Sincerely</h3>
418440
</div>
419441
</div>
420442
</div>
443+
444+
421445
</body>
422446
</html>

0 commit comments

Comments
 (0)