-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
162 lines (133 loc) · 2.63 KB
/
styles.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
/*noinspection CssUnknownTarget*/
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: content-box;
}
:root {
--textColor: hsl(240, 2%, 91%);
--backgroundColor: hsl(0, 0%, 12%);
font-family: 'Press Start 2P', cursive;
color: var(--textColor);
background-color: var(--backgroundColor);
}
h1 {
text-align: center;
font-size: 2.5rem;
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
}
.header {
margin: 2rem 1rem;
padding: 1rem;
display: flex;
justify-content: space-between;
text-align: center;
}
.number {
margin: 2rem 0;
height: 6rem;
width: 100%;
display: flex;
justify-content: center;
}
.number > h1 {
background-color: var(--textColor);
width: 8rem;
color: var(--backgroundColor);
vertical-align: middle;
text-align: center;
line-height: 6rem;
font-size: 2.5rem;
}
.line {
width: 100%;
height: 7px;
background-color: var(--textColor);
position: absolute;
transform: translateY(3rem);
z-index: -1;
}
.btn {
font-family: 'Press Start 2P', cursive;
padding: 1rem 1.5rem;
border: 0;
box-shadow: none;
border-radius: 1px;
font-size: 1.1rem;
}
.interactive {
margin: 2rem;
padding: 1rem 9rem;
display: flex;
justify-content: space-evenly;
}
.guess {
display: inline-flex;
flex-direction: column;
justify-content: center;
align-content: center;
width: auto;
}
/* submit button */
.guess > button {
margin: 3rem auto;
}
.guess > input {
margin: 1px auto;
border: solid 3px var(--textColor);
border-radius: 0;
background-color: var(--backgroundColor);
color: var(--textColor);
padding: 2rem 1rem;
font-size: 2rem;
width: 50%;
font-family: inherit;
text-align: center;
}
.analytics {
font-size: 1.3rem;
}
.analytics > * {
margin: 1rem;
}
.analytics > :first-child {
margin-top: 0;
margin-bottom: 5rem;
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
/*body {*/
/* background-color: aqua;*/
/*}*/
:root {
font-size: 13px;
}
.btn {
padding: .5rem .75rem;
font-size: 1rem;
}
.header {
align-content: center;
}
.header > p {
font-size: .7rem;
}
.interactive {
padding: inherit;
}
.analytics {
font-size: 1.1rem;
}
.guess > input {
font-size: 1.5rem;
}
.analytics > :not(:first-child) {
font-size: .8rem;
}
}