Repository navigation
Expand file tree
/
Copy pathApp.css
More file actions
101 lines (86 loc) · 1.54 KB
/
Copy pathApp.css
File metadata and controls
101 lines (86 loc) · 1.54 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
.main-layout {
display: flex;
}
.sidebar {
width: 200px;
background-color: #333;
color: #fff;
height: 100vh;
padding: 20px;
}
.sidebar ul {
list-style-type: none;
padding: 0;
}
.sidebar ul li {
margin-bottom: 10px;
}
.sidebar button {
background: none;
border: none;
color: #fff;
cursor: pointer;
font-size: 16px;
}
.sidebar button:hover {
text-decoration: underline;
}
.content {
flex: 1;
padding: 20px;
position: relative;
}
.background-container {
position: relative;
}
.background-video {
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.game-grid {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5 buttons per row */
gap: 10px; /* Space between buttons */
}
.game-button {
width: 100%;
padding-bottom: 100%; /* Maintain aspect ratio 1:1 */
position: relative;
perspective: 1000px; /* Create the 3D effect */
}
.game-button-inner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.5s;
}
.game-button:hover .game-button-inner {
transform: rotateY(15deg); /* Rotate for 3D effect on hover */
}
.game-face {
position: absolute;
width: 100%;
height: 100%;
background: #ccc; /* Background color or image */
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.game-face img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px;
}
.no-results {
grid-column: span 5;
text-align: center;
font-size: 18px;
color: #666;
}