|
| 1 | +/* General Body Styling */ |
| 2 | +body { |
| 3 | + margin: 0; |
| 4 | + font-family: 'Roboto', sans-serif; |
| 5 | + background: url('background.jpg') no-repeat center center fixed; |
| 6 | + background-size: cover; |
| 7 | + color: #fff; |
| 8 | + display: flex; |
| 9 | + flex-direction: column; |
| 10 | + min-height: 100vh; |
| 11 | + position: relative; |
| 12 | +} |
| 13 | + |
| 14 | +/* Header Styling */ |
| 15 | +header { |
| 16 | + position: relative; |
| 17 | + width: 95%; |
| 18 | + max-width: 1200px; /* Restricting max width */ |
| 19 | + margin: 10px auto; |
| 20 | + padding: 10px 0; |
| 21 | + background: rgba(255, 255, 255, 0.1); /* Transparent background */ |
| 22 | + backdrop-filter: blur(10px); /* Glass effect */ |
| 23 | + border-radius: 15px; |
| 24 | + box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); |
| 25 | + z-index: 1; |
| 26 | +} |
| 27 | + |
| 28 | +/* Navigation Styling */ |
| 29 | +nav ul { |
| 30 | + display: flex; |
| 31 | + justify-content: center; |
| 32 | + list-style: none; |
| 33 | + padding: 0; |
| 34 | + margin: 0; |
| 35 | +} |
| 36 | + |
| 37 | +nav ul li { |
| 38 | + margin: 0 10px; /* Reduced margin for better fit on smaller screens */ |
| 39 | +} |
| 40 | + |
| 41 | +nav ul li a { |
| 42 | + text-decoration: none; |
| 43 | + color: white; |
| 44 | + font-size: 1.1rem; |
| 45 | + font-weight: 500; |
| 46 | + padding: 8px 16px; |
| 47 | + border-radius: 10px; |
| 48 | + transition: background 0.3s, box-shadow 0.3s, transform 0.3s; |
| 49 | + position: relative; |
| 50 | +} |
| 51 | + |
| 52 | +nav ul li a:hover { |
| 53 | + background: rgba(0, 255, 0, 0.3); |
| 54 | + box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2); |
| 55 | +} |
| 56 | + |
| 57 | +nav ul li a:active { |
| 58 | + background: rgba(0, 255, 0, 0.5); |
| 59 | + transform: scale(0.98); |
| 60 | +} |
| 61 | + |
| 62 | +/* Middle Section Styling */ |
| 63 | +.middle-section { |
| 64 | + display: flex; |
| 65 | + flex-direction: column; |
| 66 | + align-items: center; |
| 67 | + margin-top: 5vh; /* Responsive vertical spacing */ |
| 68 | +} |
| 69 | + |
| 70 | +.typing-text { |
| 71 | + font-size: 2.5rem; |
| 72 | + font-weight: bold; |
| 73 | + text-align: center; |
| 74 | + overflow: hidden; |
| 75 | + white-space: nowrap; |
| 76 | + border-right: 3px solid; |
| 77 | + width: 0; |
| 78 | + animation: typing 4s steps(22) 1s forwards, blink-caret 0.75s step-end infinite; |
| 79 | +} |
| 80 | + |
| 81 | +@keyframes typing { |
| 82 | + from { width: 0; } |
| 83 | + to { width: 16em; } |
| 84 | +} |
| 85 | + |
| 86 | +@keyframes blink-caret { |
| 87 | + from, to { border-color: transparent; } |
| 88 | + 50% { border-color: white; } |
| 89 | +} |
| 90 | + |
| 91 | +/* Option Bars Styling */ |
| 92 | +.option-bars { |
| 93 | + display: flex; |
| 94 | + justify-content: space-between; |
| 95 | + width: 90%; |
| 96 | + max-width: 1200px; |
| 97 | + padding: 0 20px; |
| 98 | + margin: 20px auto; |
| 99 | + position: relative; |
| 100 | + z-index: 2; |
| 101 | +} |
| 102 | + |
| 103 | +.option-bar { |
| 104 | + width: 48%; /* Adjusted width for better responsiveness */ |
| 105 | + backdrop-filter: blur(10px); |
| 106 | + border-radius: 20px; |
| 107 | + background: rgba(255, 255, 255, 0.2); |
| 108 | +} |
| 109 | + |
| 110 | +.option-bar select { |
| 111 | + width: 100%; |
| 112 | + padding: 12px; |
| 113 | + font-size: 1.2rem; |
| 114 | + font-weight: bold; |
| 115 | + border: none; |
| 116 | + border-radius: 20px; |
| 117 | + background: rgba(255, 255, 255, 0.3); |
| 118 | + color: rgba(0, 0, 0, 0.9); |
| 119 | + cursor: pointer; |
| 120 | +} |
| 121 | + |
| 122 | +.option-bar select option { |
| 123 | + background: rgba(255, 255, 255, 0.9); |
| 124 | + color: black; |
| 125 | +} |
| 126 | + |
| 127 | +/* Search Bar Styling */ |
| 128 | +.search-bar { |
| 129 | + display: flex; |
| 130 | + justify-content: center; |
| 131 | + width: 90%; |
| 132 | + max-width: 1200px; |
| 133 | + padding: 10px; |
| 134 | + backdrop-filter: blur(10px); |
| 135 | + border-radius: 20px; |
| 136 | + background: rgba(255, 255, 255, 0.2); |
| 137 | + margin: 20px auto 0 auto; |
| 138 | + z-index: 1; |
| 139 | + transition: transform 0.3s ease, margin-top 0.3s ease; /* Smooth movement */ |
| 140 | + position: relative; |
| 141 | +} |
| 142 | + |
| 143 | +.search-bar.move-down { |
| 144 | + margin-top: 60px; /* Move search bar down */ |
| 145 | +} |
| 146 | + |
| 147 | +.search-bar input[type="text"] { |
| 148 | + width: 70%; |
| 149 | + padding: 15px; |
| 150 | + font-size: 1.1rem; |
| 151 | + border: none; |
| 152 | + border-radius: 20px; |
| 153 | + margin-right: 20px; |
| 154 | + background: rgba(255, 255, 255, 0.2); |
| 155 | + color: white; |
| 156 | +} |
| 157 | + |
| 158 | +.search-bar button { |
| 159 | + padding: 15px 30px; |
| 160 | + font-size: 1.1rem; |
| 161 | + border: none; |
| 162 | + border-radius: 20px; |
| 163 | + background: rgba(0, 255, 0, 0.3); |
| 164 | + color: white; |
| 165 | + cursor: pointer; |
| 166 | + transition: background 0.3s; |
| 167 | +} |
| 168 | + |
| 169 | +.search-bar button:hover { |
| 170 | + background: rgba(0, 255, 0, 0.5); |
| 171 | +} |
| 172 | + |
| 173 | +/* Terminal Box Styling */ |
| 174 | +.terminal-box { |
| 175 | + width: 90%; |
| 176 | + max-width: 800px; |
| 177 | + height: 300px; |
| 178 | + padding: 20px; |
| 179 | + margin: 20px auto; |
| 180 | + background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */ |
| 181 | + border-radius: 20px; |
| 182 | + backdrop-filter: blur(10px); /* Glass effect */ |
| 183 | + box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); |
| 184 | + overflow-y: auto; |
| 185 | + color: #00ff00; /* Terminal green text */ |
| 186 | + font-family: 'Courier New', Courier, monospace; |
| 187 | + white-space: pre-wrap; /* Preserve whitespace for better formatting */ |
| 188 | + line-height: 1.5; /* Line spacing for readability */ |
| 189 | +} |
| 190 | + |
| 191 | +/* Terminal Line Styling */ |
| 192 | +.terminal-line { |
| 193 | + color: #00ff00; /* Green color */ |
| 194 | + font-family: monospace; |
| 195 | + white-space: pre-wrap; |
| 196 | +} |
| 197 | + |
| 198 | +.terminal-line a { |
| 199 | + color: #00ff00; /* Green color */ |
| 200 | + text-decoration: none; |
| 201 | +} |
| 202 | + |
| 203 | +.terminal-line a:hover { |
| 204 | + text-decoration: underline; |
| 205 | +} |
| 206 | + |
| 207 | +/* Live Update Styling */ |
| 208 | +.option-bars select:disabled { |
| 209 | + color: rgba(255, 255, 255, 0.5); /* Disabled state color */ |
| 210 | +} |
| 211 | + |
| 212 | +/* About Section Styling */ |
| 213 | +.about-section { |
| 214 | + width: 90%; |
| 215 | + max-width: 1000px; |
| 216 | + margin: 40px auto; |
| 217 | + padding: 20px; |
| 218 | + background: rgba(255, 255, 255, 0.1); /* Transparent background */ |
| 219 | + backdrop-filter: blur(10px); /* Glass effect */ |
| 220 | + border-radius: 15px; |
| 221 | + box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); |
| 222 | + color: white; |
| 223 | +} |
| 224 | + |
| 225 | +.about-content h1 { |
| 226 | + text-align: center; |
| 227 | + font-size: 2.5rem; |
| 228 | + font-weight: bold; |
| 229 | + margin-bottom: 20px; |
| 230 | +} |
| 231 | + |
| 232 | +.about-content p { |
| 233 | + font-size: 1.1rem; |
| 234 | + line-height: 1.8; |
| 235 | + text-align: justify; |
| 236 | + margin-bottom: 15px; |
| 237 | + color: #fff; /* White text color */ |
| 238 | +} |
| 239 | + |
| 240 | +.about-content p:last-of-type { |
| 241 | + margin-bottom: 0; |
| 242 | +} |
| 243 | + |
| 244 | +/* Responsive for Smaller Devices */ |
| 245 | +@media (max-width: 768px) { |
| 246 | + nav ul { |
| 247 | + flex-direction: column; |
| 248 | + align-items: center; |
| 249 | + } |
| 250 | + |
| 251 | + nav ul li { |
| 252 | + margin: 5px 0; |
| 253 | + } |
| 254 | + |
| 255 | + .option-bars { |
| 256 | + flex-direction: column; |
| 257 | + } |
| 258 | + |
| 259 | + .option-bar { |
| 260 | + width: 100%; /* Full width on small screens */ |
| 261 | + margin-bottom: 10px; |
| 262 | + } |
| 263 | + |
| 264 | + .search-bar input[type="text"] { |
| 265 | + width: 100%; |
| 266 | + margin-bottom: 10px; /* Stack elements */ |
| 267 | + } |
| 268 | + |
| 269 | + .search-bar button { |
| 270 | + width: 100%; /* Full width button */ |
| 271 | + } |
| 272 | + |
| 273 | + .about-content h1 { |
| 274 | + font-size: 2rem; |
| 275 | + } |
| 276 | + |
| 277 | + .about-content p { |
| 278 | + font-size: 1rem; |
| 279 | + } |
| 280 | +} |
| 281 | + |
| 282 | +/* Main Content Styling */ |
| 283 | +main { |
| 284 | + margin-top: 70px; /* Space for fixed header */ |
| 285 | + padding: 20px; |
| 286 | + max-width: 1000px; |
| 287 | + margin: 40px auto; |
| 288 | + width: 90%; /* Added width */ |
| 289 | + background: rgba(255, 255, 255, 0.1); /* Transparent background */ |
| 290 | + backdrop-filter: blur(10px); /* Glass effect */ |
| 291 | + border-radius: 15px; |
| 292 | + box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); |
| 293 | + color: white; /* Added text color */ |
| 294 | + line-height: 1.8; |
| 295 | +} |
| 296 | + |
| 297 | +/* Footer Styling */ |
| 298 | +footer { |
| 299 | + text-align: center; |
| 300 | + padding: 10px 0; |
| 301 | + font-size: 0.9rem; |
| 302 | + color: #fff; |
| 303 | + margin-top: auto; |
| 304 | + background: rgba(255, 255, 255, 0.1); |
| 305 | +} |
0 commit comments