-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
185 lines (162 loc) · 2.88 KB
/
style.css
File metadata and controls
185 lines (162 loc) · 2.88 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
body {
font-family: system-ui, sans-serif;
background: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
color: #1f2937;
}
.container {
background: white;
padding: 2.5rem;
border-radius: 12px;
width: 90vw;
max-width: 600px;
height: 85vh;
max-height: 85vh;
text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
overflow-y: auto;
}
@media (max-width: 768px) {
.container {
height: 85vh;
max-height: 85vh;
}
}
h1 {
margin-bottom: 1rem;
font-size: 2.5rem;
}
h2 {
margin-bottom: 0.5rem;
font-weight: normal;
font-size: 1rem;
color: #374151;
}
.mode-selector {
margin-bottom: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.8rem;
}
.mode-selector label {
font-weight: 600;
font-size: 1.1rem;
}
.mode-selector select {
padding: 0.6rem 1rem;
font-size: 1rem;
border: 2px solid #4f46e5;
border-radius: 6px;
cursor: pointer;
background: white;
color: #1f2937;
font-weight: 500;
}
.mode-selector select:hover {
background: #f0f0ff;
}
.mode-selector select:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
#addToPractice:hover {
background: #7c3aed;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
#addToPractice:active {
transform: translateY(0);
}
@media (max-width: 768px) {
h1 {
font-size: 2.2rem;
}
}
.buttons button,
.actions button {
margin: 0.6rem;
padding: 1rem 1.5rem;
border: none;
border-radius: 8px;
cursor: pointer;
background: #4f46e5;
color: white;
font-size: 1.3rem;
font-weight: 600;
}
@media (max-width: 768px) {
.buttons button,
.actions button {
font-size: 1.35rem;
padding: 1.1rem 1.5rem;
margin: 0.7rem;
}
}
input {
width: 100%;
padding: 0.8rem;
margin-top: 1rem;
font-size: 1.2rem;
}
@media (max-width: 768px) {
input {
font-size: 1.15rem;
padding: 0.9rem;
}
}
#feedback {
margin-top: 1rem;
font-weight: bold;
font-size: 1.2rem;
}
@media (max-width: 768px) {
#feedback {
font-size: 1.15rem;
}
}
/* ---- Popup overlay ---- */
.popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: none; /* hidden by default */
justify-content: center;
align-items: center;
z-index: 9999;
}
.popup-content {
background: white;
padding: 2rem;
border-radius: 12px;
max-width: 500px;
text-align: left;
}
#closePopup {
margin-top: 1rem;
padding: 0.8rem 1.2rem;
border: none;
border-radius: 8px;
background: #4f46e5;
color: white;
font-weight: 600;
cursor: pointer;
}
#closePopup:hover {
background: #7c3aed;
transform: translateY(-1px);
}
/* ---- Button glow effect ---- */
button.glow {
box-shadow: 0 0 15px 4px rgba(79, 70, 229, 0.7);
transform: translateY(-1px);
}