11body {
2- font-family : 'Segoe UI' , Tahoma, Geneva, Verdana, sans-serif;
3- padding : 100px ;
4- text-align : center;
5- background : linear-gradient (to right, cornflowerblue, crimson);
2+ font-family : 'Segoe UI' , Tahoma, Geneva, Verdana, sans-serif;
3+ padding : 100px ;
4+ text-align : center;
5+ background : linear-gradient (to right, cornflowerblue, crimson);
6+ margin : 0 ;
67}
78
89.container {
9- padding : 30px ;
10- background-color : white;
11- border : none;
12- border-radius : 50px ;
13- width : 30% ;
14- margin : auto;
10+ padding : 30px ;
11+ background-color : white;
12+ border : none;
13+ border-radius : 50px ;
14+ width : 90% ;
15+ margin : auto;
16+ max-width : 500px ;
1517}
1618
1719.input-section {
18- display : flex;
19- align-items : center;
20- justify-content : center;
21- gap : 10px ;
20+ display : flex;
21+ align-items : center;
22+ justify-content : center;
23+ gap : 10px ;
24+ flex-wrap : wrap;
2225}
2326
2427input {
25- padding : 12px ;
26- border : 3px solid grey;
27- border-radius : 10px ;
28- font-size : 15px ;
29- width : 60% ;
28+ padding : 12px ;
29+ border : 3px solid grey;
30+ border-radius : 10px ;
31+ font-size : 15px ;
32+ width : 60% ;
3033}
3134
3235button {
33- background-color : chartreuse;
34- border : 3px solid chartreuse;
35- border-radius : 10px ;
36- padding : 10px 20px ;
37- font-size : 15px ;
38- font-weight : 800 ;
39- cursor : pointer;
36+ background-color : chartreuse;
37+ border : 3px solid chartreuse;
38+ border-radius : 10px ;
39+ padding : 10px 20px ;
40+ font-size : 15px ;
41+ font-weight : 800 ;
42+ cursor : pointer;
43+ }
44+
45+ ul {
46+ padding : 0 ;
47+ margin-top : 20px ;
4048}
4149
4250li {
43- list-style : none;
44- margin-bottom : 10px ;
45- background-color : rgb (217 , 215 , 215 );
46- padding : 8px 12px ;
47- border : none;
48- border-radius : 10px ;
49- text-align : left;
50- width : 85% ;
51- display : flex;
52- align-items : center;
53- justify-content : space-between;
51+ display : flex;
52+ justify-content : space-between;
53+ align-items : center;
54+ background-color : # e2dddd ;
55+ padding : 10px 15px ;
56+ border-radius : 10px ;
57+ margin-bottom : 10px ;
58+ width : 100% ;
59+ box-sizing : border-box;
5460}
5561
5662li : hover {
57- background-color : darkgrey;
63+ background-color : darkgrey;
5864}
5965
6066li button {
61- padding : 8px ;
62- background-color : cornflowerblue;
63- border : none;
67+ padding : 8px ;
68+ background-color : cornflowerblue;
69+ border : none;
70+ color : white;
71+ font-weight : bold;
72+ border-radius : 6px ;
73+ cursor : pointer;
6474}
6575
6676li .completed {
67- text-decoration : line-through;
68- background-color : rgb (255 , 255 , 255 );
69- }
77+ text-decoration : line-through;
78+ background-color : rgb (255 , 255 , 255 );
79+ }
80+
81+ @media (max-width : 768px ) {
82+ .container {
83+ width : 60% ;
84+ }
85+
86+ input {
87+ width : 90% ;
88+ }
89+
90+ .input-section {
91+ flex-direction : column;
92+ gap : 12px ;
93+ }
94+
95+ li {
96+ width : 100% ;
97+ flex-direction : row;
98+ justify-content : space-between;
99+ }
100+ }
101+
102+ @media (max-width : 480px ) {
103+ .container {
104+ width : 85% ;
105+ padding : 20px ;
106+ }
107+
108+ # click {
109+ width : 80% ;
110+ }
111+
112+ button {
113+ width : 40% ;
114+ }
115+
116+ input {
117+ width : 70% ;
118+ }
119+ }
120+
121+ @media (max-width : 390px ) {
122+ .container {
123+ width : 95% ;
124+ padding : 15px ;
125+ border-radius : 30px ;
126+ }
127+
128+ input , button {
129+ width : 70% ;
130+ font-size : 14px ;
131+ }
132+
133+ li {
134+ flex-direction : column;
135+ align-items : flex-start;
136+ font-size : 1.2rem ;
137+ }
138+
139+ li button {
140+ font-size : 1rem ;
141+ margin-top : 6px ;
142+ }
143+ }
0 commit comments