-
Notifications
You must be signed in to change notification settings - Fork 631
/
styles.css
76 lines (67 loc) · 1.52 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
body {
font-family: 'Roboto', sans-serif;
background-color: #282c34;
color: #ffffff;
text-align: center;
margin: 0;
padding: 0;
}
.container {
width: auto;
margin: 40px auto;
padding: 30px;
background-color: #3c404d;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
border-radius: 15px;
}
h1 {
color: white;
}
.instructions {
font-size: 20px;
margin-bottom: 30px;
color: #adbac7;
}
#game-board {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 20px;
justify-content: center;
padding: 20px;
}
.card {
width: 211.8px;
height: 166.2px;
background-color: #565c6f;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.card img {
width: 100%;
height: auto;
visibility: hidden; /* Hide images by default */
display: block;
}
.card.show img {
visibility: visible; /* Show image when card is flipped */
}
#start-game {
background-color: #4caf50;
color: white;
padding: 12px 24px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
transition: background-color 0.3s, transform 0.3s;
}
#start-game:hover {
background-color: #43a047; /* Darker on hover */
transform: scale(1.05); /* Slightly enlarges on hover */
}