-
Notifications
You must be signed in to change notification settings - Fork 5
/
style.css
266 lines (227 loc) · 5.16 KB
/
style.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
/* General Styling */
html, body {
height: 100vh;
margin: 0;
display: flex;
justify-content: center; /* Center horizontally */
background-color: #1E5631;
}
body {
align-items: center; /* Center vertically by default */
}
@font-face {
font-family: bgo;
src: url(assets/British-Green/British-Green-Oblique.ttf);
}
@font-face {
font-family: bgs;
src: url(assets/British-Green/British-Green-Script.ttf);
}
@font-face {
font-family: bg;
src: url(assets/British-Green/British-Green.ttf);
}
.bgo {
font-family: bgo;
}
.bgs {
font-family: bgs;
}
.bg {
font-family: bg;
}
.hamburger-menu {
position: fixed;
top: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 5px;
cursor: pointer;
z-index: 100;
}
.bar {
width: 30px;
height: 3px;
background-color: #FFD600;
}
.navbar {
height: 100%;
width: 0;
position: fixed;
z-index: 99;
top: 0;
right: 0;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
div.navbar {
height: 100%;
width: 0;
position: fixed;
z-index: 99;
top: 0;
right: 0;
background-color: #1E5631; /* Change to your desired background color */
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.navbar a {
padding: 10px 15px;
text-decoration: none;
font-size: 22px;
color: #FFD600;
display: block;
transition: 0.3s;
}
.navbar a:hover {
color: #f1f1f1;
}
.dropdown {
display: block;
}
.dropbtn {
background-color: #1E5631; /* Match the navbar background color */
color: #FFD600;
padding: 10px;
border: none;
text-align: left;
width: 100%;
font-size: 22px; /* Match the font size of other navbar links */
cursor: pointer;
font-family: bgo;
}
.dropdown-content {
display: none;
position: static; /* Aligns dropdown content with other navbar items */
background-color: #1E5631; /* Match the navbar background color */
font-family: bgo;
}
.dropdown-content a {
color: #FFD600;
padding: 10px;
text-decoration: none;
display: block;
}
.dropdown:hover .dropdown-content {
display: block;
}
#navTitle {
position: fixed;
top: 20px;
left: 60px; /* Adjust as needed to align with the hamburger menu */
font-size: 24px; /* Adjust size as needed */
color: #FFD600;
margin: 0;
z-index: 101; /* Ensure it's above other elements */
}
#mainDiv {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: auto; /* Set height to auto */
}
#mainTitle {
font-size: 8vw; /* Responsive font size */
color: #FFD600;
margin: 0; /* Remove default margin */
}
/* Additional media query for smaller screens */
@media (max-width: 600px) {
#mainTitle {
font-size: 12vw;
}
}
.text-container {
text-align: center;
margin-bottom: 30px;
}
#animatedText {
font-size: 24px;
color: #FFD600;
opacity: 1;
transition: opacity 1s ease-in-out;
}
/* Keyframes for fading in and out */
@keyframes textFadeInOut {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.button-container {
display: flex;
flex-direction: column; /* Stack buttons on mobile */
align-items: center;
gap: 10px;
}
.button {
display: inline-block;
padding: 10px 20px;
font-family: bg;
font-size: 2vw; /* Default font size */
text-decoration: none;
color: #FFD600; /* Default text color */
background-color: #1E5631; /* Default background color */
border: 3px solid #FFD600; /* Default border color */
border-radius: 5px;
transition: background-color 0.3s, color 0.3s;
white-space: nowrap; /* Prevent text from wrapping */
min-width: 150px; /* Minimum width to fit the longest word */
text-align: center; /* Center text in buttons */
}
.button:hover {
background-color: #FFD600; /* Change as needed */
color: #1E5631; /* Change as needed */
}
/* Position the title at the top center, but below the navbar */
#title {
text-align: center; /* Center aligned */
width: 100%; /* Full width for center alignment */
margin-top: 60px; /* Adjust this value to position below the navbar */
position: relative; /* Relative to its normal position */
}
/* Position the smallerTitle below the title and left aligned */
#smallerTitle, .smallerTitle {
text-align: left; /* Left aligned */
margin-left: 20px; /* Adjust left margin */
position: relative; /* Relative to its normal position */
margin-top: 20px; /* Space below the title */
}
/* Media query for smaller screens */
@media (max-width: 600px) {
body {
align-items: flex-start; /* Align to the top for mobile */
height: auto; /* Adjust height for mobile */
}
#mainDiv {
margin-top: 120px; /* Increased top margin for more space */
height: auto; /* Ensure the div takes up only the necessary space */
}
#mainTitle {
font-size: 12vw;
}
#animatedText {
font-size: 22px; /* Smaller font size for mobile */
}
.button {
font-size: 25px; /* Larger font size for buttons on mobile */
}
#navTitle {
left: 25px; /* Adjust for mobile if needed */
font-size: 18px; /* Adjust size for mobile */
}
}
/* Media query for larger screens */
@media (min-width: 600px) {
.button-container {
flex-direction: row; /* Inline buttons on larger screens */
justify-content: center;
}
}