-
Notifications
You must be signed in to change notification settings - Fork 12
/
style.css
185 lines (163 loc) · 2.84 KB
/
style.css
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
@import url("https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
box-sizing: border-box;
}
body {
font-family: "Press Start 2P", sans-serif;
color: #eee;
background-color: #222;
/* background-color: #60b347; */
}
/* LAYOUT */
header {
position: relative;
height: 35vh;
border-bottom: 7px solid #eee;
}
main {
height: 65vh;
color: #eee;
display: flex;
align-items: center;
justify-content: space-around;
}
.left {
width: 52rem;
display: flex;
flex-direction: column;
align-items: center;
}
.right {
width: 52rem;
font-size: 2rem;
}
.contributors{
margin-top: 35rem;
}
/* ELEMENTS STYLE */
h1 {
font-size: 4rem;
text-align: center;
position: absolute;
width: 100%;
top: 52%;
left: 50%;
transform: translate(-50%, -50%);
}
.number {
background: #eee;
color: #333;
font-size: 6rem;
width: 15rem;
padding: 3rem 0rem;
text-align: center;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 50%);
}
.between {
font-size: 1.8rem; /* Made font-size bigger so number range is more obvious to the user */
position: absolute;
top: 2rem;
right: 2rem;
}
.again {
position: absolute;
top: 2rem;
left: 2rem;
}
.guess {
background: none;
border: 4px solid #eee;
font-family: inherit;
color: inherit;
font-size: 5rem;
padding: 2.5rem;
width: 25rem;
text-align: center;
display: block;
margin-bottom: 3rem;
}
.range {
background: none;
border: 1px solid #eee;
font-family: inherit;
color: inherit;
font-size: 2rem;
padding: 1rem;
width: 10rem;
text-align: center;
}
.btn {
border: none;
background-color: #eee;
color: #222;
font-size: 2rem;
font-family: inherit;
padding: 2rem 3rem;
cursor: pointer;
}
.btn:hover {
background-color: #ccc;
}
.message {
margin-bottom: 8rem;
height: 3rem;
}
.new-range{
margin-bottom: 8rem;
height: 3rem;
color: #be9e1d;
}
.label-score {
margin-bottom: 2rem;
}
/* JS STYLES */
.wrong-answer {
background-color: #b22222;
}
@media screen and (max-width: 400px) {
h1 {
font-size: 3rem;
}
.btn {
font-size: 1.5rem;
padding: 2rem;
left: 10px;
}
.between {
font-size: 1.2rem;
top: 4rem;
right: 0px;
}
.left {
/* width: 52rem; */
display: flex;
flex-direction: column;
align-items: center;
}
.right {
/* width: 52rem; */
font-size: 2rem;
text-align: center;
}
.guess {
width: 13rem;
padding: 2rem 0rem;
margin-bottom: 2rem;
}
.message {
margin-bottom: 3rem;
height: 5rem;
}
.label-score {
margin-bottom: 3rem;
}
}