summaryrefslogtreecommitdiffhomepage
path: root/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'style.css')
-rw-r--r--style.css55
1 files changed, 55 insertions, 0 deletions
diff --git a/style.css b/style.css
index 60015e8..29c55b9 100644
--- a/style.css
+++ b/style.css
@@ -4,4 +4,59 @@ html, body {
padding: 0;
margin: 0;
text-align: center;
+ font-size: 42px;
+}
+
+.center {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+
+/* blink text */
+.blink {
+ animation: blink .2s infinite;
+}
+
+@keyframes blink {
+ 0% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+
+.bg {
+ z-index: 1;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.reduced {
+ z-index: 2;
+ display: none;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+/* prefers reduced motion */
+@media (prefers-reduced-motion: reduce) {
+ .blink {
+ animation: none;
+ }
+
+ .reduced {
+ display: unset;
+ }
}