-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
110 lines (91 loc) · 1.78 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color:#000000;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.wrapper {
max-width: 100%;
max-height: 100%;
padding: 10px;
}
.score-wrapper {
color:#ffffff;
width: 475px;
max-width: 100%;
padding:10px;
margin: 0 auto 10px;
background-image: linear-gradient(to bottom, #04009d 0%,#06004d 100%);
border-radius:4px;
border: solid 1px #424542;
box-shadow: 1px 1px #e7dfe7, -1px -1px #e7dfe7, 1px -1px #e7dfe7, -1px 1px #e7dfe7, 0 -2px #9c9a9c, -2px 0 #7b757b, 0 2px #424542;
display:flex;
justify-content:space-between;
}
.grid {
display:flex;
flex-wrap:wrap;
align-items: center;
justify-content: center;
position: relative;
width:475px;
max-width: 100%;
min-height:375px;
margin:0 auto;
padding: 10px;
background-image: linear-gradient(to bottom, #04009d 0%,#06004d 100%);
border-radius:4px;
border: solid 1px #424542;
box-shadow: 1px 1px #e7dfe7, -1px -1px #e7dfe7, 1px -1px #e7dfe7, -1px 1px #e7dfe7, 0 -2px #9c9a9c, -2px 0 #7b757b, 0 2px #424542;
}
.grid img {
margin: 5px;
}
.grid .back {
cursor: pointer;
transition: .3s;
position: relative;
}
.grid .back:hover {
opacity: .9;
}
.grid img:nth-child(4n) {
margin: 5px;
}
.grid img:first-child, .grid img:nth-child(4n+1) {
margin: 5px;
}
#retry {
font-weight:bold;
color:#ffffff;
align-items: center;
text-decoration:none;
cursor: pointer;
display:none;
}
#retry.new-game {
display:flex;
}
#retry:before {
content:'';
background-image: url('images/cursor.png');
display:block;
width:37px;
height:18px;
margin-right:10px;
}
@media (min-width: 680px) {
.grid:after {
content: url('images/cloud-field.webp');
position: absolute;
right: -100px;
bottom: -50px;
}
}