-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
120 lines (106 loc) · 1.55 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
*{
padding: 0;
margin: 0;
font-family: 'Press Start 2P', cursive;
}
body {
background: #011F3F;
}
header {
width: 100%;
display: flex;
justify-content: space-between;
box-sizing: border-box;
align-items: center;
border-bottom: 0.5px solid #faf2bf;
}
.logo,
.how {
margin: 2em;
padding: 0 1em;
}
header .logo a{
font-size: 1.6rem;
box-sizing: border-box;
padding: .3em;
text-decoration: none;
color: #fef2bf;
border: 1px solid #fef2bf;
}
.how {
font-size: 1rem;
box-sizing: border-box;
padding: .3em;
text-decoration: none;
color: #fef2bf;
border: 1px solid #fef2bf;
}
main {
width: 80%;
margin: auto;
text-align: center;
}
main h1 {
font-size: 3rem;
margin: 5%;
color: #fef2bf;
margin-bottom: 6rem;
}
main .squr-wrapper {
width: 80%;
margin: auto;
display: flex;
justify-content: center;
}
.game-over {
background-color: red;
opacity: 0.8;
}
.item {
width: 200px;
height: 200px;
border: 10px solid #000;
border-radius: 40px;
margin: 10px;
}
.green {
background: #008000;
}
.red {
background: #f00;
}
.yellow {
background: #ff0;
}
.blue {
background: #00f;
}
.blinked {
animation: Animation 1s linear infinite;
}
.clicked {
box-shadow: 0 0 20px white;
background-color: grey;
}
@keyframes Animation {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
.how-section {
margin: 10rem auto;
text-align: center;
width: 80%;
background: #fef2bf;
border-radius: 12px;
}
.how-section h4 {
font-size: 1.6rem;
padding: .5em 0;
}
.how-section p {
width: 30ch;
font-size: 1rem;
padding: .3em 0;
margin: auto;
}