-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
116 lines (99 loc) · 1.81 KB
/
style.css
File metadata and controls
116 lines (99 loc) · 1.81 KB
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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url("https://cdn.pixabay.com/photo/2018/10/30/16/06/abstract-3784052_960_720.jpg");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
header {
background-color: #333;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
nav ul li {
margin-right: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
transition: color 0.2s ease;
}
nav ul li a:hover {
color: #c1c1c1;
}
main {
padding: 20px;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 10px;
}
section {
margin-bottom: 40px;
}
h2 {
font-size: 24px;
margin-bottom: 10px;
}
.games-grid {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.game {
width: 200px;
background-color: #fff;
border: 1px solid #ccc;
margin-right: 20px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
transition: transform 0.2s ease;
border-radius: 10px;
}
.game:last-of-type {
margin-right: 0;
}
.game:hover {
transform: scale(1.05);
}
.game a {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-decoration: none;
color: #333;
width: 100%;
height: 100%;
}
.game img {
object-fit: cover;
width: 100%;
height: 100%;
border-radius: 10px 10px 0 0;
}
.game h3 {
font-size: 18px;
margin: 10px;
}
@media (max-width: 768px) {
.games-grid {
justify-content: center;
}
.game {
margin-right: 0;
}
}