1+ /* ===== Body & Container ===== */
12body {
23 font-family : system-ui, sans-serif;
34 background : # f5f5f5 ;
@@ -16,114 +17,189 @@ body {
1617 width : 90vw ;
1718 max-width : 600px ;
1819 height : 85vh ;
20+ max-height : 85vh ;
1921 text-align : center;
2022 box-shadow : 0 10px 25px rgba (0 , 0 , 0 , 0.1 );
2123 display : flex;
2224 flex-direction : column;
2325 overflow-y : auto;
2426}
2527
26- h1 { font-size : 2.5rem ; margin-bottom : 0.3rem ; }
28+ @media (max-width : 768px ) {
29+ .container {
30+ height : 85vh ;
31+ max-height : 85vh ;
32+ }
33+ }
34+
35+ /* ===== Headings ===== */
36+ h1 {
37+ margin-bottom : 0.5rem ;
38+ font-size : 2.5rem ;
39+ }
2740
28- .shortcut-hint {
41+ .shortcut-note {
2942 font-size : 0.95rem ;
30- color : # 4b5563 ;
3143 margin-bottom : 1rem ;
44+ color : # 374151 ;
3245}
3346
47+ /* ===== Mode Selector ===== */
3448.mode-selector {
35- margin : 1.2 rem 0 ;
49+ margin-bottom : 1.5 rem ;
3650 display : flex;
51+ align-items : center;
3752 justify-content : center;
3853 gap : 0.8rem ;
3954}
4055
41- .buttons button ,
42- .actions button ,
43- # addToPractice ,
56+ .mode-selector label {
57+ font-weight : 600 ;
58+ font-size : 1.1rem ;
59+ }
60+
61+ .mode-selector select {
62+ padding : 0.6rem 1rem ;
63+ font-size : 1rem ;
64+ border : 2px solid # 4f46e5 ;
65+ border-radius : 6px ;
66+ cursor : pointer;
67+ background : white;
68+ color : # 1f2937 ;
69+ font-weight : 500 ;
70+ }
71+
72+ .mode-selector select : hover {
73+ background : # f0f0ff ;
74+ }
75+
76+ .mode-selector select : focus {
77+ outline : none;
78+ box-shadow : 0 0 0 3px rgba (79 , 70 , 229 , 0.2 );
79+ }
80+
81+ /* ===== Buttons ===== */
82+ # addToPractice {
83+ margin-bottom : 1rem ;
84+ background : # 8b5cf6 ;
85+ padding : 0.8rem 1.2rem ;
86+ border : none;
87+ border-radius : 8px ;
88+ color : white;
89+ font-size : 1rem ;
90+ font-weight : 600 ;
91+ cursor : pointer;
92+ }
93+
94+ # addToPractice : hover {
95+ background : # 7c3aed ;
96+ transform : translateY (-2px );
97+ box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.15 );
98+ }
99+
100+ # addToPractice : active {
101+ transform : translateY (0 );
102+ }
103+
44104# clearCache {
45- margin : 0.5rem ;
105+ margin-bottom : 1rem ;
106+ margin-left : 0.5rem ;
107+ background : # ef4444 ;
108+ padding : 0.8rem 1.2rem ;
109+ border : none;
110+ border-radius : 8px ;
111+ color : white;
112+ font-size : 1rem ;
113+ font-weight : 600 ;
114+ cursor : pointer;
115+ }
116+
117+ .buttons button ,
118+ .actions button {
119+ margin : 0.6rem ;
46120 padding : 1rem 1.5rem ;
47121 border : none;
48122 border-radius : 8px ;
49123 cursor : pointer;
50124 background : # 4f46e5 ;
51125 color : white;
52- font-size : 1.2 rem ;
126+ font-size : 1.3 rem ;
53127 font-weight : 600 ;
54128}
55129
56- # clearCache { background : # ef4444 ; }
57- # addToPractice { background : # 8b5cf6 ; }
130+ @media (max-width : 768px ) {
131+ .buttons button ,
132+ .actions button {
133+ font-size : 1.35rem ;
134+ padding : 1.1rem 1.5rem ;
135+ margin : 0.7rem ;
136+ }
137+ }
58138
139+ /* ===== Input ===== */
59140input {
60141 width : 100% ;
61142 padding : 0.8rem ;
62- font-size : 1.2rem ;
63143 margin-top : 1rem ;
144+ font-size : 1.2rem ;
145+ }
146+
147+ @media (max-width : 768px ) {
148+ input {
149+ font-size : 1.15rem ;
150+ padding : 0.9rem ;
151+ }
64152}
65153
154+ /* ===== Feedback ===== */
66155# feedback {
67156 margin-top : 1rem ;
68157 font-weight : bold;
69158 font-size : 1.2rem ;
70159}
71160
161+ @media (max-width : 768px ) {
162+ # feedback {
163+ font-size : 1.15rem ;
164+ }
165+ }
166+
72167/* ===== Popup ===== */
73168.popup-overlay {
74169 position : fixed;
75- inset : 0 ;
76- background : rgba (0 , 0 , 0 , 0.5 );
170+ top : 0 ; left : 0 ; right : 0 ; bottom : 0 ;
171+ background : rgba (0 , 0 , 0 , 0.4 );
77172 display : flex;
78173 justify-content : center;
79174 align-items : center;
80- z-index : 9999 ;
175+ z-index : 1000 ;
81176}
82177
83- .popup-box {
178+ .popup-content {
84179 background : white;
85- padding : 1.8 rem ;
180+ padding : 2 rem ;
86181 border-radius : 12px ;
87- max-width : 420px ;
88182 width : 90% ;
183+ max-width : 500px ;
89184 text-align : center;
185+ box-shadow : 0 10px 25px rgba (0 , 0 , 0 , 0.2 );
90186}
91187
92- .popup-box a {
93- color : # 4f46e5 ;
94- font-weight : 600 ;
95- }
96-
97- .dont-show {
98- display : block;
188+ # popupControls {
189+ display : flex;
190+ align-items : center;
191+ justify-content : center;
192+ gap : 10px ;
99193 margin-top : 1rem ;
100- font-size : 0.9rem ;
101194}
102195
103- /* Got it button bigger */
104- .popup-box button .popup-confirm {
105- margin-top : 1.4rem ;
106- background : # 4f46e5 ;
107- border : none;
108- color : white;
109- padding : 0.9rem 2.2rem ;
110- border-radius : 10px ;
111- font-size : 1.15rem ;
112- font-weight : 700 ;
113- cursor : pointer;
114- }
115-
116- .popup-box button .popup-confirm : hover {
117- background : # 4338ca ;
196+ # popupControls label {
197+ margin : 0 ;
198+ font-size : 0.9rem ;
118199}
119200
120201/* ===== Button Glow ===== */
121- @keyframes pressGlow {
122- 0% { box-shadow : 0 0 0 rgba (79 , 70 , 229 , 0 ); }
123- 50% { box-shadow : 0 0 18px rgba (79 , 70 , 229 , 0.7 ); }
124- 100% { box-shadow : 0 0 0 rgba (79 , 70 , 229 , 0 ); }
125- }
126-
127202.button-glow {
128- animation : pressGlow 0.6s ease-out;
203+ box-shadow : 0 0 12px 4px rgba (79 , 70 , 229 , 0.7 );
204+ transition : box-shadow 0.2s ease;
129205}
0 commit comments