33< head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- < title > Customary Units of Length: Three Numbers</ title >
7- < style >
8- body {
9- font-family : 'Comic Sans MS' , 'Chalkboard SE' , cursive, sans-serif;
10- background-color : # f0f9ff ;
11- margin : 0 ;
12- padding : 20px ;
13- display : flex;
14- flex-direction : column;
15- align-items : center;
16- min-height : 100vh ;
17- }
18-
19- .main-content {
20- display : flex;
21- gap : 20px ;
22- align-items : flex-start;
23- max-width : 1200px ;
24- width : 100% ;
25- margin-bottom : 50px ;
26- position : relative;
27- }
28-
29- .problem-area {
30- flex : 1 ;
31- }
32-
33- .header-container {
34- display : flex;
35- justify-content : space-between;
36- align-items : center;
37- width : 100% ;
38- margin-bottom : 20px ;
39- }
40-
41- .home-button {
42- padding : 8px 15px ;
43- font-size : 16px ;
44- background-color : # 2196F3 ;
45- color : white;
46- border : none;
47- border-radius : 5px ;
48- cursor : pointer;
49- text-decoration : none;
50- display : inline-flex;
51- align-items : center;
52- }
53-
54- .home-button : hover {
55- background-color : # 1976D2 ;
56- }
57-
58- .toggle-scratchpad {
59- padding : 8px 15px ;
60- font-size : 16px ;
61- background-color : # 2196F3 ;
62- color : white;
63- border : none;
64- border-radius : 5px ;
65- cursor : pointer;
66- margin-left : auto;
67- }
68-
69- .toggle-scratchpad : hover {
70- background-color : # 1976D2 ;
71- }
72-
73- .scratchpad-area {
74- display : none;
75- width : 350px ;
76- min-height : 550px ;
77- background : white;
78- border-radius : 15px ;
79- box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.1 );
80- padding : 10px ;
81- }
82-
83- .scratchpad-area .open {
84- display : block;
85- }
86-
87- .scratchpad-controls {
88- display : flex;
89- gap : 10px ;
90- margin-bottom : 10px ;
91- justify-content : center;
92- }
93-
94- .scratchpad-button {
95- padding : 8px 15px ;
96- font-size : 16px ;
97- background-color : # 4CAF50 ;
98- color : white;
99- border : none;
100- border-radius : 5px ;
101- cursor : pointer;
102- display : flex;
103- align-items : center;
104- gap : 5px ;
105- }
106-
107- .scratchpad-button : hover {
108- background-color : # 45a049 ;
109- }
110-
111- .scratchpad-button .clear {
112- background-color : # ff4444 ;
113- }
114-
115- .scratchpad-button .clear : hover {
116- background-color : # ff3333 ;
117- }
118-
119- .scratchpad-canvas {
120- width : 100% ;
121- height : 500px !important ;
122- min-height : 500px ;
123- border : 2px solid # ddd ;
124- border-radius : 8px ;
125- touch-action : none;
126- cursor : crosshair;
127- background-color : # fff ;
128- display : block;
129- }
130-
131- .problem-type {
132- position : fixed;
133- bottom : 0 ;
134- left : 0 ;
135- right : 0 ;
136- background-color : # fff ;
137- padding : 10px ;
138- font-size : 14px ;
139- color : # 666 ;
140- text-align : center;
141- border-top : 2px solid # 4CAF50 ;
142- box-shadow : 0 -2px 4px rgba (0 , 0 , 0 , 0.1 );
143- }
144-
145- .container {
146- width : 100% ;
147- text-align : center;
148- }
149-
150- .problem {
151- font-size : 24px ;
152- margin : 20px ;
153- padding : 20px ;
154- background-color : white;
155- border-radius : 15px ;
156- box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.1 );
157- }
158-
159- .options {
160- display : grid;
161- grid-template-columns : repeat (2 , 1fr );
162- gap : 15px ;
163- margin : 20px ;
164- }
165-
166- .option {
167- padding : 20px ;
168- font-size : 24px ;
169- background-color : # 4CAF50 ;
170- color : white;
171- border : none;
172- border-radius : 10px ;
173- cursor : pointer;
174- transition : all 0.3s ease;
175- }
176-
177- .option : hover {
178- transform : scale (1.05 );
179- background-color : # 45a049 ;
180- }
181-
182- .option .wrong {
183- background-color : # ff4444 ;
184- animation : shake 0.5s ;
185- }
186-
187- .option .correct {
188- background-color : # 4CAF50 ;
189- animation : correct 0.5s ;
190- }
191-
192- .navigation {
193- margin-top : 20px ;
194- }
195-
196- .nav-button {
197- padding : 10px 20px ;
198- font-size : 18px ;
199- margin : 0 10px ;
200- background-color : # 2196F3 ;
201- color : white;
202- border : none;
203- border-radius : 5px ;
204- cursor : pointer;
205- }
206-
207- .nav-button : hover {
208- background-color : # 1976D2 ;
209- }
210-
211- @keyframes shake {
212- 0% , 100% { transform : translateX (0 ); }
213- 25% { transform : translateX (-10px ); }
214- 75% { transform : translateX (10px ); }
215- }
216-
217- @keyframes correct {
218- 0% { transform : scale (1 ); }
219- 50% { transform : scale (1.1 ); }
220- 100% { transform : scale (1 ); }
221- }
222-
223- .stars {
224- position : fixed;
225- width : 100% ;
226- height : 100% ;
227- pointer-events : none;
228- z-index : 9999 ;
229- }
230-
231- .star {
232- position : absolute;
233- color : gold;
234- font-size : 30px ;
235- animation : star-fall 1s ease-out forwards;
236- }
237-
238- @keyframes star-fall {
239- 0% {
240- transform : translateY (-50px ) rotate (0deg );
241- opacity : 1 ;
242- }
243- 100% {
244- transform : translateY (100vh ) rotate (360deg );
245- opacity : 0 ;
246- }
247- }
248-
249- h1 {
250- text-align : center;
251- margin : 0 auto;
252- }
253- </ style >
6+ < title > Customary Units of Length - Three Numbers</ title >
7+ < link rel ="stylesheet " href ="styles.css ">
2548</ head >
2559< body >
25610 < div class ="main-content ">
@@ -288,6 +42,7 @@ <h1>Fun Math Problems! 🎨</h1>
28842 Customary Units of Length: Using 3 One or Two Digit Numbers
28943 </ div >
29044 < div class ="stars " id ="stars-container "> </ div >
45+ < script src ="animations.js "> </ script >
29146 < script src ="customary-units-three-numbers.js "> </ script >
29247</ body >
29348</ html >
0 commit comments