-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
82 lines (73 loc) · 1.46 KB
/
Copy pathstyle.css
File metadata and controls
82 lines (73 loc) · 1.46 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
/* Import custom font */
@font-face {
font-family: 'MyCustomFont';
src: url('assets/MyFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
background: linear-gradient(to right, #141e30, #243b55);
color: #fff;
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
}
/* Apply custom font to heading */
h2 {
font-family: 'MyCustomFont', sans-serif;
font-size: 36px;
font-weight: normal;
margin-top: 20px;
color: #fff;
}
#game-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
canvas {
background: #0c500364;
border: 4.5px solid #ffffff;
box-shadow: 0 0 20px #000;
}
/* Logo styling */
.logo {
position: absolute;
top: 15px;
left: 20px;
display: inline-block;
}
.logo img {
height: 50px;
width: auto;
border: 2px solid #fff;
box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
border-radius: 6px;
cursor: pointer;
transition: 0.3s ease;
}
.logo img:hover {
transform: scale(1.05);
}
/* Tooltip (dynamic, starts hidden) */
.tooltip {
position: absolute;
background: #222;
color: #fff;
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
white-space: nowrap;
visibility: hidden;
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none; /* let cursor pass through */
}
/* Tooltip appears when logo hovered */
.logo:hover .tooltip {
visibility: visible;
opacity: 1;
}