-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
171 lines (143 loc) · 2.62 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
:root {
--concolr1: #031320;
--textcolr: #AF708B;
--bgcolor: #38205E;
--concolr2: #EEE3D7;
}
body {
background-color: var(--bgcolor);
color: var(--textcolr);
font-family: 'Press Start 2P', cursive;
position: relative;
display: grid;
grid-template: 1fr min-content/ 1fr;
place-content: stretch;
height: 100vh;
}
.playGround {
align-self: center;
justify-self: stretch;
background-color: var(--bgcolor);
height: 100%;
display: grid;
grid-template: 1fr/ min-content 1fr;
}
.playGround>* {
padding: 32px;
margin: 32px;
}
.scoreBoard {
background-color: var(--concolr1);
border-radius: 25px;
line-height: 4rem;
display: flex;
align-items: center;
justify-content: center;
}
@keyframes glow {
0% {}
50% {
transform: scale(1.1);
color: var(--concolr2);
box-shadow: 0 0 10px 6px var(--concolr2);
}
100% {}
}
.active-touch {
cursor: pointer;
transition: transform .2s;
}
.active-touch:hover {
box-shadow: 0 0 10px 5px var(--concolr2);
color: var(--concolr2);
transform: scale(1.06);
}
.tile-wrapper {
border-radius: 25px;
background-color: var(--concolr1);
display: grid;
grid-template: repeat(2, 1fr)/repeat(2, 1fr);
place-items: center;
place-content: center;
gap: 3rem;
}
.tile {
height: 250px;
width: 250px;
border-radius: 50%;
border: 5px solid var(--concolr2);
}
.game-over-theme {
background-color: red;
opacity: 0.8;
}
.red {
background-color: red;
}
.green {
background-color: green;
}
.blue {
background-color: blue;
}
.yellow {
background-color: yellow;
}
.pressed {
color: #fff;
box-shadow: 0 0 20px white;
background-color: grey;
}
.play {
cursor: pointer;
height: 250px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: transform .2s;
animation: breath;
}
.play:hover {
box-shadow: 0 0 10px 3px orange;
border: none;
border-radius: 25px;
transform: translate(-50%, -50%) scale(1.1);
}
.replay {
cursor: pointer;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 300px;
border-radius: 50%;
transition: transform .2s;
display: none;
}
.replay:hover {
transform: translate(-50%, -50%) scale(1.1);
}
footer {
background-color: var(--concolr1);
margin: 5px 0 0 0 !important;
grid-area: 2/1/-1/-1;
padding: 5px !important;
}
footer>a {
text-decoration: none;
font-size: .8rem;
color: var(--textcolr);
}
footer>a:hover {
color: var(--concolr2);
}
@media(max-width: 1400px) {
.playGround {
grid-template: max-content 1fr 40px/ 1fr;
height: 100vh;
}
footer {
grid-area: 3/1/-1/-1;
}
}