-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgame.css
129 lines (114 loc) · 2.36 KB
/
game.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
html {
color-scheme: dark;
}
body {
background-image:url("https://img.freepik.com/free-vector/realistic-neon-lights-background_52683-59889.jpg");
background-attachment:fixed;
background-repeat: no-repeat;
background-size: cover;
font-weight: 600;
text-align: center !important;
color: white;
}
body * {
font-family: "Roboto";
}
.games {
display: grid;
grid-template-columns: repeat(auto-fill, 187px);
justify-content: space-between;
gap: 2rem;
margin: 1rem 2rem 2rem 2rem;
}
.game {
height: 240px;
width: 200px;
background: black;
color: white;
text-decoration: none;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
-webkit-user-select: none;
user-select: none;
position: relative;
overflow: hidden;
transition: transform 100ms ease-out;
}
.game:hover {
transform: scale(1.1);
}
.game-img {
position: absolute;
height: 100%;
width: 100%;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: var(--url), linear-gradient(0deg, #00000088 30%, #ffffff44 100%);
border-radius: 6px;
background-blend-mode: overlay;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.game-text {
position: absolute;
bottom: 1rem;
font-size: 1.2rem;
max-width: calc(100% - 1.5rem);
overflow: hidden;
}
.section {
margin-top: calc(7vw + 1rem);
margin-left: 2rem;
}
nav{
padding:5px;
border-radius: 15px;
background-color: black;
border-style: solid;
border-color: blue;
width:40%;
margin-left: 30.0%;
margin-right: 30.0%;
}
ul {
list-style-type: none;
margin: 0;
padding: 5px;
}
li {
display: inline;
}
ul li a {
display: inline-block;
padding-left: 6px;
padding-right: 6px;
font-size: 20px;
position: relative;
transition: transform 0.5s;
}
ul li a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 2px;
background-color: #00aaff;
transform: scaleX(0);
transition: transform 0.5s;
}
ul li:hover a {
transform: translateY(-5px);
text-decoration: none;
}
ul li:hover a::after {
transform: scaleX(1);
}