Template:Main page/header/styles.css
Template page
More actions
/* Main Header Styling with Advanced Effects */ .mainpage-wrapper { max-width: 1400px; margin: 0 auto; padding: 0 20px; } .home-header { background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2c1810 100%); color: #f0f0f0; padding: 80px 40px; text-align: center; border-radius: 20px; margin-bottom: 40px; position: relative; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); min-height: 400px; } /* Animated background */ .home-header__background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23ffd700" opacity="0.3"/><circle cx="15" cy="15" r="0.5" fill="%23ffffff" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat; animation: twinkle 8s ease-in-out infinite alternate; } /* Floating magical particles */ .home-header__particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(2px 2px at 20px 30px, #ffd700, transparent), radial-gradient(2px 2px at 40px 70px, #ffffff, transparent), radial-gradient(1px 1px at 90px 40px, #ffd700, transparent), radial-gradient(1px 1px at 130px 20px, #87ceeb, transparent), radial-gradient(2px 2px at 160px 90px, #ff6b6b, transparent); background-size: 200px 200px; animation: magical-float 25s linear infinite; pointer-events: none; } @keyframes twinkle { 0% { opacity: 0.3; } 100% { opacity: 0.6; } } @keyframes magical-float { 0% { transform: translateY(100vh) rotate(0deg); } 100% { transform: translateY(-200px) rotate(360deg); } } .home-header__content { position: relative; z-index: 2; } .home-header__pretitle { font-size: 20px; color: #c0c0c0; margin-bottom: 15px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; } .home-header__title { font-size: 72px; font-family: 'Times New Roman', 'Georgia', serif; color: #ffd700; margin: 25px 0; font-weight: bold; text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); letter-spacing: 4px; line-height: 1.1; position: relative; } .home-header__title::after { content: attr(data-text); position: absolute; top: 0; left: 0; right: 0; bottom: 0; color: transparent; text-shadow: 0 0 40px rgba(255, 215, 0, 0.6); animation: magical-glow 4s ease-in-out infinite alternate; pointer-events: none; } @keyframes magical-glow { 0% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.4); } 100% { text-shadow: 0 0 60px rgba(255, 215, 0, 0.8); } } .home-header__subtitle { font-size: 22px; color: #a0a0a0; margin-bottom: 40px; font-style: italic; line-height: 1.5; max-width: 900px; margin-left: auto; margin-right: auto; } /* Statistics display */ .home-header__stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; } .stat-item { text-align: center; padding: 15px 20px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 215, 0, 0.3); transition: all 0.3s ease; min-width: 100px; } .stat-item:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); border-color: rgba(255, 215, 0, 0.6); } .stat-number { font-size: 28px; font-weight: bold; color: #ffd700; line-height: 1; } .stat-label { font-size: 14px; color: #c0c0c0; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; } /* Search box styling */ .home-header__search { background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 215, 0, 0.4); border-radius: 50px; padding: 18px 30px; margin: 0 auto; max-width: 600px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(15px); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; } .home-header__search:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 215, 0, 0.7); box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); transform: translateY(-3px); } .home-header__searchIcon { font-size: 18px; margin-right: 15px; } .home-header__searchText { font-size: 18px; color: #f0f0f0; font-weight: 400; } .keyboard-key { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; padding: 2px 8px; font-family: monospace; font-size: 14px; color: #f0f0f0; margin-left: 10px; display: inline-block; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } /* Responsive design */ @media (max-width: 768px) { .home-header { padding: 60px 20px; min-height: 300px; } .home-header__title { font-size: 48px; letter-spacing: 2px; } .home-header__stats { gap: 15px; } .stat-item { padding: 10px 15px; min-width: 80px; } .stat-number { font-size: 20px; } .desktoponly { display: none; } } @media (max-width: 480px) { .mainpage-wrapper { padding: 0 10px; } .home-header { padding: 40px 15px; } .home-header__title { font-size: 36px; letter-spacing: 1px; } .home-header__subtitle { font-size: 18px; } .home-header__search { padding: 15px 20px; max-width: 90%; } }