-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
190 lines (185 loc) · 3.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
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
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');
@font-face{
font-family: 'funky';
src: url('fonts/trivia-game-font-collection/blomberg-84442/Blomberg-8MKKZ.otf')
}
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
.index-body, .inst-body, .game-body{
background-size: cover;
background-image:
linear-gradient( rgba(255,255,255, .95),rgba(255,255,255, .95) ),
url('images/dall.e\ question\ mark.png');
height: 100%;
}
.index-title h1 {
font-size: 5em;
padding: 20px;
}
.index-content, .inst-content, .game-question-wrapper,.game-answer{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
}
.index-content, .inst-content{
height: 100%;
}
.index-title {
padding: 50px;
transform: translateY(-100px);
font-family: 'funky', sans-serif;
}
.btn {
padding: 15px 40px;
border-radius: 10px;
border: 2px black solid;
background-color: white;
transition: all .2s ease;
box-shadow: black 0px 7px 0px 0px;
font-size: 15px;
letter-spacing: 3px;
font-weight: bold;
}
.btn:hover {
box-shadow: black 0px 4px 0px 0px;
cursor: pointer;
transform: scale(.95);
}
.inst-title {
font-family: 'funky', sans-serif;
font-size: 40px;
padding: 20px;
}
.inst-main{
font-family: 'Josefin Sans', 'sans-setif';
font-size: 20px;
}
.inst-main h2 {
padding: 20px;
font-family: 'funky', sans-serif;
font-size: 28px;
}
.inst-main ul {
list-style-type: none;
}
.inst-btn {
margin: 20px;
}
.game-content {
height: 100%;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: .3fr .9fr .3fr;
grid-template-areas:
"title"
"game-question-wrapper"
"next";
}
.game-title {
grid-area: title;
font-family: 'funky', sans-serif;
display: flex;
justify-content:space-between;
align-items: center;
font-size: 40px;
margin: 20px 5px auto 5px;
}
.game-question-wrapper {
grid-area: game-question-wrapper;
}
.game-answer{
flex-flow: column;
padding: 5px;
border: 2px solid black;
background-color: rgba(255, 255, 255, .6);
border-radius: 10px;
transition: all .2s ease;
}
.game-answer:hover{
transform: scale(.95);
box-shadow: black 0px 4px 0px 0px;
cursor: pointer;
}
#answer1 {
grid-area: answer1;
}
#answer2 {
grid-area: answer2;
}
#answer3 {
grid-area: answer3;
}
#answer4 {
grid-area: answer4;
}
.next {
grid-area: next;
}
.question {
grid-area: question;
display: none;
font-family: 'josefin sans', sans-serif;
font-size: 25px;
}
.outcome {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 20px;
font-family: 'funky', sans-serif;
font-size: 30px;
}
.img {
grid-area: img;
height: 200px;
width: 300px;
border-radius: 10px;
border: 2px black solid;
display: block;
object-fit: cover;
margin: auto auto 15px auto;
}
.text {
grid-area: text;
text-align: center;
}
.active {
display: grid;
grid-gap: 2px;
margin: 5px;
text-align: center;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr .2fr .5fr .5fr;
grid-template-areas:
"img img "
'text text'
"answer1 answer2"
"answer3 answer4";
}
.next {
text-align: center;
display: none;
transform: translateY(30px);
}
.score {
position: absolute;
top: 30px;
right: 50px;
}
@media(max-width: 620px) {
.inst-title, .game-title {
font-size: 20px;
}
.inst-main {
padding: 10px;
font-size: 17px;
}
}