forked from ShardulS18/FinalVersion-terminal-game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplashScreenStyle.css
More file actions
176 lines (142 loc) · 3.63 KB
/
SplashScreenStyle.css
File metadata and controls
176 lines (142 loc) · 3.63 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');
body {
margin: 0;
padding: 0;
font-family: var(--futura);
font-weight: 600;
font-style: normal;
display: flex;
align-items: center;
height: 100%;
height: 100vh;
cursor: pointer;
overflow: hidden;
/* background: url('Assets/Test/galaxy.svg'); */
/* background-color: rgba(0, 0, 0, 0.4); */
background-image: url('Assets/galaxy.svg');
/* background-color: #000000; */
background-blend-mode: multiply;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
* {
box-sizing: border-box;
}
html, body {
width: 100%;
cursor: url('Assets/cursor50.png'), auto;
height: 100%; /* Full height for the page */
margin: 0;
font-family: 'Dela Gothic One', sans-serif;
/* background: #ffF; */
}
canvas {
position: absolute; /* Ensures the canvas fills the viewport */
top: 0;
left: 0;
width: 100%;
height: 100%;
/* z-index: -1; Keeps the canvas as the background layer */
/* background: url('Assets/backgroung.svg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat; */
}
h1 {
text-align: center;
color: #000000;
font-size: 3rem;
z-index: 2;
}
section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* z-index: 2; */
background: url(Assets/03_ComicPanels.svg);
background-repeat: no-repeat;
background-position: center center;
align-self: center;
width: 100%;
height: 100vh
/* Full viewport height */
}
p {
font-family: "Funnel Display", sans-serif;
font-size: 28px;
z-index: 2;
max-width: 600px; /* Fixed width */
width: 75%; /* Flexible for smaller screens */
margin : 0px 0px 40px 0px; /* Center align and add space */
text-align: center; /* Center text alignment */
font-size: 1.2rem; /* Adjust font size */
line-height: 1.5; /* Improve readability */
color: #000000; /* Slightly lighter black for softer feel */
}
div {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
align-self: center;
}
button {
font-family: 'Dela Gothic One', sans-serif;
z-index: 1;
font-weight: bold;
cursor: url('Assets/hand50.png'), auto;
background: transparent;
padding: 1.5rem 6rem;
transition: all 0.2s ease;
color: #000000;
font-size: 2rem;
letter-spacing: 1px;
outline: none;
box-shadow: 10px 10px 0px 0px hsla(0, 0%, 0%, 1);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
border: solid 6px #000000;
}
button:hover {
box-shadow: 0px 0px 0px 0px hsla(0, 0%, 0%, 1);
}
@media (max-width: 620px) {
h1 {
margin-top: 2rem;
}
section {
flex-direction: column;
}
button {
margin-bottom: 2rem;
}
}
.image-container {
position: relative;
width: fit-content; /* Adjust based on image dimensions if necessary */
height: fit-content;
}
.default-image,
.hover-image {
position: absolute;
top: 0;
left: 0;
width: 100%; /* Ensures both images occupy the same size */
height: 100%; /* Adjust this if needed for SVG consistency */
}
.default-image {
z-index: 1; /* Ensure it's on top by default */
}
.hover-image {
z-index: 2; /* Bring this to the front on hover */
opacity: 0; /* Initially hidden */
transition: opacity 0.3s ease; /* Smooth fade effect */
}
.image-container:hover .hover-image {
opacity: 1; /* Make visible on hover */
}
.image-container:hover .default-image {
opacity: 100; /* Hide the default image */
}