-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
193 lines (187 loc) · 3.38 KB
/
style.css
File metadata and controls
193 lines (187 loc) · 3.38 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
186
187
188
189
190
191
192
193
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
background: url("./assets/background2.jpeg") center center no-repeat;
background-size: cover;
color: aliceblue;
font-size: 1.2rem;
}
.game_container {
height: auto;
width: 50vw;
margin: 3rem auto;
background-color: #ffb84dcb;
border-radius: 1rem;
box-shadow: 2px -2px 8px 1px #bbbbbb;
backdrop-filter: (20px);
}
h1 {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 1.7rem;
color: rgb(0, 7, 99);
text-shadow: 1px 1px 4px rgb(255, 255, 255);
}
.game_container .user_levels {
display: flex;
flex-direction: column;
align-items: center;
}
.game_container .user_levels label {
color: rgb(0, 7, 99);
}
.game_container .user_levels select {
border: none;
outline: none;
padding: 0.4rem 1rem;
margin: 1rem 0;
border: 0.2rem;
}
.game_container .start {
display: flex;
justify-content: center;
align-items: center;
}
.game_container .start button {
all: unset;
border-radius: 1.2rem;
padding: 0.6rem 1rem;
text-align: center;
font-size: 1rem;
background-color: rgb(0, 7, 99);
color: #ffffff;
cursor: pointer;
transition: background-color 0.5s linear;
&:hover {
background-color: rgb(255, 255, 255);
color: rgb(0, 7, 99);
}
}
#level_text {
text-align: center;
margin: 1rem 6rem;
text-shadow: 1px 1px 4px rgb(0, 7, 99);
font-size: 1.5rem;
display: none;
}
.input_number {
width: 32vw;
margin: 1.5rem auto;
display: block;
}
#userNumber {
all: unset;
width: 100%;
border: 2px solid white;
padding: 0.5rem;
border-radius: 1.2rem;
}
#userNumber::placeholder {
color: white;
font-size: 0.9rem;
}
.input_number button {
all: unset;
width: 40%;
margin: 1.2rem 0.2rem;
border-radius: 1.2rem;
padding: 0.6rem 1rem;
text-align: center;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.5s linear;
}
#guess_btn {
background-color: rgb(0, 7, 99);
color: #ffffff;
&:hover {
background-color: rgb(255, 255, 255);
color: rgb(0, 7, 99);
}
}
#reset_game {
background-color: rgb(255, 255, 255);
color: rgb(0, 7, 99);
&:hover {
background-color: rgb(0, 7, 99);
color: #ffffff;
}
}
#result_display {
margin: 1rem auto;
font-size: 1.3rem;
font-weight: 600;
text-align: center;
}
#result_display img {
width: 6rem;
}
#attempts {
font-size: 1rem;
font-weight: 500;
padding-bottom: 1rem;
text-align: center;
}
@media (max-width: 1200px) {
.game_container {
height: auto;
width: 80vw;
margin: 1rem auto;
}
}
@media (max-width: 768px) {
.game_container {
height: 88vh;
width: 80vw;
margin: 1rem auto;
}
h1 {
padding: 0.2rem;
}
.input_number {
width: 50vw;
margin: 0.5rem auto;
}
.input_number button {
all: unset;
width: 35%;
margin: 0.5rem 0.3rem;
border-radius: 1.2rem;
padding: 0.6rem 1.2rem;
}
}
@media (max-width: 425px) {
.game_container {
height: 100vh;
width: 90vw;
margin: 1rem auto;
}
h1 {
font-size: 1.5rem;
padding: 0.2rem;
}
p {
margin: 1rem;
font-size: 1rem;
}
.input_number {
width: 70vw;
margin: 0.5rem auto;
}
.input_number button {
all: unset;
width: 80%;
text-align: center;
margin: 1rem auto;
display: block;
border-radius: 1.2rem;
font-size: 0.9rem;
padding: 0.6rem;
}
}