-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
155 lines (128 loc) · 2.48 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
body{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.game-container{
width: 800px;
padding: 20px;
border-radius: 10px;
row-gap: 15px;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
background-image: linear-gradient(90deg, #fffbd5, #ccc);
}
.cards-container{
display: grid;
grid-template-rows: 125px 125px 125px;
grid-template-columns: 200px 200px 200px 200px;
grid-gap: 20px 10px;
place-items: center;
}
.heading-container{
text-align: center;
}
.heading{
color: #0E9D57;
}
.card{
justify-items: center;
display: flex;
align-items: center;
position: relative;
cursor: pointer;
}
.outline-image{
position: absolute;
border-radius: 10px;
top: 0;
left: 0;
height: 125px;
width: 125px;
border-radius: 50%;
}
.card-image{
height: 125px;
width: 125px;
transform: rotateY(90deg);
transition: all ease-in 0.25s;
mix-blend-mode: multiply;
}
.progress-container{
text-align: center;
display: flex;
justify-content: space-around;
width: 100%;
margin: 50px 0 20px 0;
}
.move-counter{
padding: 10px 20px;
border-radius: 25px;
border: 1px solid #ccc;
}
.restart-button{
padding: 10px 20px;
background-color: #0E9D57;
border: none;
border-radius: 25px;
color: #fff;
cursor: pointer;
}
.restart-button:hover{
background-color: transparent;
border: 1px solid #0E9D57;
color: #0E9D57;
}
/* Dynamic classes that are being added by JavaScript */
.toggled .card-image {
transform: rotateY(0deg);
transition-delay: 0.25s;
}
.item .outline-image {
transition: all ease-in 0.25s;
transition-delay: 0.25s;
}
.toggled .outline-image {
transform: rotateY(90deg);
transition-delay: 0s;
}
.level-button {
padding: 10px 20px;
background-color: #0E9D57;
border: none;
border-radius: 25px;
color: #fff;
cursor: pointer;
margin-top: 20px; /* Adjust the margin as needed */
}
.level-button:hover {
background-color: transparent;
border: 1px solid #0E9D57;
color: #0E9D57;
}
@media screen and (max-width: 767px) {
.game-container{
width: 100%;
}
.cards-container{
grid-template-rows: 125px 125px 125px 125px;
grid-template-columns: 33% 33% 33%;
grid-gap: 10px 10px;
}
.outline-image{
height: 100px;
width: 100px;
}
.card-image{
height: 100px;
width: 100px;
}
.progress-container{
margin: 10px 0 10px 0;
}
}