-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
93 lines (79 loc) · 1.4 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
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #ededed;
color: black;
}
h1 {
font-size: 20px;
margin: 0;
}
.container {
margin-top: 50px;
}
.controls {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
padding: 10px;
}
#difficulty {
padding: 5px;
font-size: 16px;
}
.game-board {
display: grid;
grid-template-columns: repeat(6, 100px);
grid-template-rows: repeat(4, 100px);
gap: 10px;
justify-content: center;
align-items: center;
}
.card {
width: 100px;
height: 100px;
position: relative;
cursor: pointer;
transform: rotateY(180deg);
transition: transform 0.5s;
border: 1px solid black;
border-radius: 10px;
padding: 10px;
box-sizing: border-box;
background: #ffffff;
}
.card img {
width: 100%;
height: 100%;
display: none;
}
.card.flipped {
transform: rotateY(0deg);
}
.card.flipped img {
display: block;
}
.status {
display: flex;
justify-content: space-between;
font-size: 18px;
border: 1px black solid;
padding: 10px;
border-radius: 10px;
}
.status p {
margin: 0;
}
button {
border: .5 white solid;
background: rgba(0,0,0,.5);
border-radius: 10px;
font-weight: 700;
color:white;
margin: 0;
}
#restart {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}