-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
82 lines (73 loc) · 1.91 KB
/
Copy pathstyles.css
File metadata and controls
82 lines (73 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');
* {
-webkit-tap-highlight-color: transparent; /* Fixes gray flash on tap */
}
/* Shared styles for the entire app */
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100dvh;
margin: 0;
background-color: #FFF9E6; /* Soft yellow background */
font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
overscroll-behavior: none; /* Prevents "pull-to-refresh" bounce */
-webkit-user-select: none; /* Prevents text selection popups */
user-select: none;
}
#wheel-container {
position: relative;
width: 90vw; /* Matches the JS resize logic */
max-width: 500px;
height: auto;
aspect-ratio: 1 / 1;
}
canvas {
border-radius: 50%;
border: 10px solid #FFD700; /* Gold border */
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* The pointer at the top */
#pointer {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 40px solid #FF4500;
z-index: 10;
}
button {
padding: 20px 50px;
font-size: 28px;
font-weight: bold;
background-color: #FF6B6B;
color: white;
border: none;
border-radius: 50px;
cursor: pointer;
box-shadow: none;
transition: transform 0.1s;
touch-action: manipulation;
}
button:active {
transform: translateY(4px);
}
/* Allow selection only in inputs */
input, select, textarea {
-webkit-user-select: text;
user-select: text;
font-size: 16px !important; /* iOS specific: prevents auto-zoom on focus */
}
#wheel-container {
position: relative;
width: 90vw; /* Matches the JS resize logic */
max-width: 500px;
height: auto;
aspect-ratio: 1 / 1;
margin-bottom: 30px;
}