Skip to content

Commit 90e128f

Browse files
committed
number_guessing_game modified
1 parent 5efa4f6 commit 90e128f

1 file changed

Lines changed: 62 additions & 49 deletions

File tree

Lines changed: 62 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,65 @@
11
* {
2-
padding: 0;
3-
margin: 0;
4-
box-sizing: border-box;
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
}
6+
body {
7+
height: 100vh;
8+
background: linear-gradient(to right, #7f53ac, #657ced);
9+
}
10+
.container {
11+
position: absolute;
12+
width: 50%;
13+
min-width: 175px;
14+
transform: translate(-50%, -50%);
15+
top: 50%;
16+
left: 50%;
17+
background: #fff;
18+
padding: 50px 10px;
19+
border-radius: 5px;
20+
display: grid;
21+
justify-items: center;
22+
font-family: "poppins", sans-serif;
23+
}
24+
25+
h3 {
26+
font-size: 22px;
27+
font-weight: 600;
28+
}
29+
@media(max-width:548px)
30+
{
31+
h3{
32+
font-size: 17px;
533
}
6-
body {
7-
height: 100vh;
8-
background: linear-gradient(to right, #7f53ac, #657ced);
34+
}
35+
@media(max-width:181px){
36+
.container{
37+
height: 90%;
38+
width:10%;
939
}
10-
.container {
11-
position: absolute;
12-
width: 50%;
13-
min-width: 580px;
14-
transform: translate(-50%, -50%);
15-
top: 50%;
16-
left: 50%;
17-
background: #fff;
18-
padding: 50px 10px;
19-
border-radius: 5px;
20-
display: grid;
21-
justify-items: center;
22-
font-family: "poppins", sans-serif;
23-
}
24-
h3 {
25-
font-size: 30px;
26-
font-weight: 600;
27-
}
28-
input[type="text"] {
29-
width: 90px;
30-
font-weight: 600;
31-
padding: 20px 0;
32-
font-size: 28px;
33-
text-align: center;
34-
margin-top: 30px;
35-
border-radius: 5px;
36-
border: 2px solid #202020;
37-
color: #663399;
38-
}
39-
button {
40-
width: 160px;
41-
padding: 15px 0;
42-
border-radius: 5px;
43-
background-color: #663399;
44-
color: #fff;
45-
border: none;
46-
font-size: 18px;
47-
font-weight: 600;
48-
margin-bottom: 30px;
49-
}
50-
p {
51-
font-weight: 400;
52-
}
40+
}
41+
input[type="text"] {
42+
width: 90px;
43+
font-weight: 600;
44+
padding: 20px 0;
45+
font-size: 28px;
46+
text-align: center;
47+
margin-top: 30px;
48+
border-radius: 5px;
49+
border: 2px solid #202020;
50+
color: #663399;
51+
}
52+
button {
53+
width: 160px;
54+
padding: 15px 0;
55+
border-radius: 5px;
56+
background-color: #663399;
57+
color: #fff;
58+
border: none;
59+
font-size: 18px;
60+
font-weight: 600;
61+
margin-bottom: 30px;
62+
}
63+
p {
64+
font-weight: 400;
65+
}

0 commit comments

Comments
 (0)