-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
94 lines (92 loc) · 1.65 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
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
a {
text-decoration: none;
}
img {
max-width: 100%;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-image: url(img/bg.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: top center;
padding: 27px;
}
.game {
max-width: 1000px;
padding: 40px 15px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.card {
height: 240px;
padding: 40px;
background-color: rgb(97, 81, 81);
font-size: 0px; /*чтобы изначально не было числа на карточке*/
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
cursor: pointer;
color: transparent; /*чтобы изначально не было числа на карточке*/
transition: background-color 0.3s;
}
.card:hover {
background-color: rgb(165, 150, 150);
}
.card:active {
background-color: rgb(39, 34, 34);
}
.open-card {
font-size: 35px;
color: #fff;
background-color: #d84949;
cursor: default;
}
.open-card:hover {
background-color: #d84949;
}
.open-card:active {
background-color: #d84949;
}
.success {
font-size: 35px;
color: #fff;
background-color: #67b321;
cursor: default;
}
.success:hover {
background-color: #67b321;
}
.success:active {
background-color: #67b321;
}
@media (max-width: 650px) {
.game {
grid-template-columns: repeat(3, 1fr);
}
.card {
height: 200px;
}
}
@media (max-width: 500px) {
.game {
grid-template-columns: repeat(2, 1fr);
}
.card {
height: 100px;
}
body {
padding: 47px;
}
}