-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
251 lines (209 loc) · 4.75 KB
/
styles.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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
/* Consolidated and cleaned up CSS */
html {
scroll-behavior: smooth;
}
/* Body Styling */
body {
font-family: 'Formula1-Regular', sans-serif;
margin: 0;
padding: 0;
height: 100vh;
background: url('/assets/back.png');
background-repeat: repeat;
background-size: cover;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
transition: margin-left 0.3s;
}
/* Formula1 Fonts Import */
@font-face {
font-family: 'Formula1-Wide';
src: url('/assets/Formula1-Wide.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Regular';
src: url('/assets/Formula1-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Bold';
src: url('/assets/Formula1-Bold.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Black';
src: url('/assets/Formula1-Black.ttf') format('truetype');
}
/* Buttons */
.button {
font-family: 'Formula1-Wide', sans-serif;
letter-spacing: 1.5px;
background: linear-gradient(135deg, #f44336, #101218);
padding: 20px 40px;
border-radius: 30px;
color: #fff;
font-size: 1.2rem;
text-transform: uppercase;
font-weight: bold;
cursor: pointer;
border: none;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
.button:hover {
transform: scale(1.05);
background: linear-gradient(135deg, #c62828, #b71c1c);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.7);
}
/* Navbar */
.navbar {
background-color: #121f45;
padding: 15px;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
display: flex;
justify-content: flex-start;
align-items: center;
}
.hamburger {
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 30px;
z-index: 1001;
transition: all 0.3s ease;
}
.hamburger .line {
width: 30px;
height: 4px;
background-color: white;
border-radius: 2px;
transition: all 0.3s ease;
}
.hamburger.active .line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .line:nth-child(2) {
opacity: 0; /* Hide middle line */
}
.hamburger.active .line:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
.hamburger {
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-around;
height: 30px;
width: 30px;
}
.hamburger .line {
width: 30px;
height: 4px;
background-color: white;
border-radius: 10px;
}
/* Dropdown Menu */
.dropdown {
position: relative;
text-align: left;
}
.dropdown-toggle {
cursor: pointer;
display: block;
}
.dropdown-content {
display: none;
background-color: #222;
margin-left: 20px;
}
.dropdown-content a {
padding: 10px 20px;
text-decoration: none;
color: white;
display: block;
font-size: 16px;
}
.dropdown-content a:hover {
background-color: #575757;
}
.dropdown-content.active {
display: block;
}
/* Responsive Design */
@media screen and (max-width: 468px) {
/* Make Countdown text smaller */
.countdown-text {
font-size: 2rem;
}
/* Adjust countdown unit font size */
.countdown-unit span {
font-size: 1.2rem;
}
.content.active {
margin-left: 0;
}
/* Adjust the layout of the countdown units on smaller screens */
.countdown-units {
flex-direction: column;
align-items: center;
}
.countdown-unit {
margin-bottom: 10px;
}
}
.navbar {
z-index: 1000; /* Ensures navbar is on top */
position: fixed;
}
.countdown-container {
z-index: 1; /* Keeps countdown below navbar/sidebar */
position: relative; /* Default stacking context */
}
.sidebar {
z-index: 999; /* Sidebar is just below navbar */
position: fixed;
}
/* Sidebar */
.sidebar {
position: fixed;
top: 0;
left: -250px; /* Initially hidden */
width: 250px;
height: 100vh; /* Ensure sidebar takes full height of the viewport */
background-color: #000000;
padding-top: 60px;
overflow-y: auto; /* Enable vertical scrolling */
transition: left 0.3s ease-in-out;
z-index: 999;
}
/* When sidebar is active (visible) */
.sidebar.active {
left: 0;
}
/* Content inside sidebar (links) */
.sidebar a {
padding: 15px 25px;
text-decoration: none;
font-size: 18px;
color: white;
display: block;
font-family: 'Formula1-Bold', sans-serif;
transition: background-color 0.3s ease;
}
/* Links hover effect */
.sidebar a:hover {
background-color: #575757;
}
.stream-button {
margin-bottom: 60px; /* Adds space at the bottom */
text-align: left;
}