db69 commited on
Commit
a64145e
·
verified ·
1 Parent(s): 6e684cb

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +15 -6
index.html CHANGED
@@ -24,20 +24,29 @@
24
 
25
  #ui-overlay {
26
  position: fixed;
27
- top: 0; /* Align to top of the page */
28
- left: 50%; /* Start from horizontal center */
29
- transform: translateX(-50%); /* Center horizontally */
30
- width: auto; /* Adjust width as needed */
31
  pointer-events: none;
32
  z-index: 100;
33
  color: white;
34
- padding: 2rem;
35
  box-sizing: border-box;
36
  display: flex;
37
  flex-direction: column;
38
  align-items: center; /* Center items horizontally */
39
- justify-content: flex-start; /* Align items to the top */
 
40
  }
 
 
 
 
 
 
 
 
 
41
 
42
 
43
  .title {
 
24
 
25
  #ui-overlay {
26
  position: fixed;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%; /* Take full width of the screen */
 
30
  pointer-events: none;
31
  z-index: 100;
32
  color: white;
33
+ padding: 1rem;
34
  box-sizing: border-box;
35
  display: flex;
36
  flex-direction: column;
37
  align-items: center; /* Center items horizontally */
38
+ justify-content: flex-start;
39
+ text-align: center; /* For better alignment on mobile */
40
  }
41
+
42
+ /* Optional: make text size and padding adjust on smaller screens */
43
+ @media (max-width: 600px) {
44
+ #ui-overlay {
45
+ padding: 0.5rem;
46
+ font-size: 0.9rem;
47
+ }
48
+ }
49
+
50
 
51
 
52
  .title {