@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Montserrat:wght@400;700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap'); nav ul { list-style: none; display: flex; background-color: #333; padding: 0; } nav ul li { margin: 0 10px; } nav ul li a { color: white; text-decoration: none; padding: 10px 15px; display: block; } nav ul li a:hover { background-color: #555; } /* Example: Start of your CSS */ * { margin: 0; padding: 0; box-sizing: border-box; } body { margin: 0; font-family: Arial, sans-serif; background-color: #f4f2ec; color: #000; transition: background-color 0.3s, color 0.3s; opacity: 0; transform: scale(1.05); transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; } body.loaded { opacity: 1; transform: scale(1); } /* Transition Overlay (Expanding Circle Effect) */ .transition-overlay { position: fixed; top: 50%; left: 50%; width: 100px; height: 100px; background: radial-gradient(circle, #4a8fdf, #000); /* Green fading into black */ border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.7s ease-in-out; z-index: 9999; } /* Expand circle effect when navigating */ .transition-overlay.active { transform: translate(-50%, -50%) scale(30); } /* Smooth transition for links */ a { text-decoration: none; color: #4a8fdf; transition: color 0.3s ease-in-out; } a:hover { color: #fff; } .dark-mode { background-color: #131b2b; color: #fff; } .navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: #f4f2ec; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); font-size: 18px; font-weight: bold; position: sticky; top: 0; z-index: 1000; } .dark-mode .navbar { background: #2c3e50; } .navbar a { text-decoration: none; color: #000; margin: 0 20px; font-size: 18px; font-weight: bold; } .dark-mode .navbar a { color: #fff; } .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); z-index: 1; } .dropdown-content a { color: black; padding: 10px 16px; display: block; text-decoration: none; } .dropdown-content a:hover { background-color: #ddd; } .dropdown:hover .dropdown-content { display: block; } .dark-mode .dropdown-content { background-color: #2c3e50; } .dark-mode .dropdown-content a { color: white; } .dark-mode .dropdown-content a:hover { background-color: #374f66; } .toggle-switch { position: relative; display: inline-block; width: 50px; height: 25px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 25px; } .toggle-circle { position: absolute; left: 4px; bottom: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.4s; z-index: 2; font-size: 14px; } .toggle-icon { transition: color 0.4s, content 0.4s; color: #FFD600; /* Sun color */ } input:checked + .slider { background-color: #4a8fdf; } input:checked + .slider .toggle-circle { transform: translateX(24px); } input:checked + .slider .toggle-icon { color: #4a8fdf; /* Moon color */ /* Use content swap via JS for moon icon */ } .stock-ticker-indian { background: #f8f9fa; color: #222; padding: 10px 0; height: 45px; overflow: hidden; white-space: nowrap; font-size: 1.05rem; border-radius: 6px; margin-bottom: 12px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; } .ticker-content-indian { display: flex; align-items: center; gap: 5px; animation: scroll-left 25s linear infinite; } .ticker-label { font-weight: bold; margin-right: 8px; } .gainers-label { color: #22c55e; } .losers-label { color: #ef4444; } .ticker-item { margin-right: 18px; } .ticker-sep { color: #888; margin: 0 8px; } .up { color: #22c55e !important; font-weight: bold; margin-left: 2px; } .gainer-price { color: #22c55e !important; font-weight: bold; margin-left: 2px; } .down { color: #ef4444 !important; font-weight: bold; margin-left: 2px; } .loser-price { color: #ef4444 !important; font-weight: bold; margin-left: 2px; } /* Dark mode styles */ body.dark-mode .stock-ticker-indian { background: #2c3e50; color: #e0e7ef; border-top: 0.3px solid #5c7a99; border-bottom: 0.3px solid #5c7a99; } body.dark-mode .ticker-content-indian span { color: #e0e7ef; } body.dark-mode .ticker-label { color: #fff; } body.dark-mode .gainers-label { color: #22c55e; } body.dark-mode .losers-label { color: #ef4444; } body.dark-mode .ticker-sep { color: #aaa; } .gainers-label { color: #22c55e !important; /* Bright green */ font-weight: bold; } .losers-label { color: #ef4444 !important; /* Bright red */ font-weight: bold; } /* For dark mode, keep the same colors for labels */ body.dark-mode .gainers-label { color: #22c55e !important; } body.dark-mode .losers-label { color: #ef4444 !important; } /* Smooth scrolling effect */ @keyframes scroll-left { from { transform: translateX(100%); } to { transform: translateX(-100%); } } /* Main Content */ .video-container { position: relative; width: 100%; height: 50vh; overflow: hidden; display: flex; justify-content: center; align-items: center; } #bgVideo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: cover; z-index: -1; } .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; background: rgba(0, 0, 0, 0.5); padding: 50px 20px; color: #fff; border-radius: 12px; font-family: 'Poppins', sans-serif; text-align: center; width: 80%; display: flex; justify-content: center; align-items: center; height: auto; } /* Initially, set h1 position at the center */ .content h1 { font-size: 3em; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8); opacity: 0; transform: translateY(0); /* Keep centered, no off-center movement */ animation: fadeInUp 1.5s ease-out forwards; } /* Smooth fade-in effect */ @keyframes fadeInUp { 0% { opacity: 0; transform: scale(0.8); /* Slightly smaller size */ } 100% { opacity: 1; transform: scale(1); /* Normal size */ } } /* Glowing effect for the heading */ @keyframes glowText { 0% { text-shadow: 0px 0px 10px rgba(74, 143, 223, 0.6); } 100% { text-shadow: 0px 0px 25px rgba(74, 143, 223, 1), 0px 0px 35px rgba(74, 143, 223, 0.8); } } /* Fade-in animation */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } /* Dark Mode */ .dark-mode .content { background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */ color: #ffffff; } /* Market Movers Section */ .market-movers { width: 80%; margin: 50px auto; text-align: center; padding: 40px; background: #fff; border: 2px solid #4a8fdf; /* Add a solid border */ border-radius: 8px; box-shadow: 0 0 15px rgba(74, 143, 223, 0.6); /* Green glow */ animation: glowBorder 1.5s infinite alternate; } .movers-container { display: flex; justify-content: space-around; gap: 20px; margin-top: 20px; } .movers-section { width: 45%; background: #f8f9fa; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .movers-section h3 { font-size: 24px; margin-bottom: 15px; color: #4a8fdf; } .movers-section ul { list-style-type: none; padding: 0; } .movers-section ul li { font-size: 16px; padding: 8px 0; border-bottom: 1px solid #ddd; } .movers-section ul li:last-child { border-bottom: none; } .up { color: #0FFF50; font-weight: bold; } .down { color: red; font-weight: bold; } /* Dark Mode Adjustments */ .dark-mode .market-movers { background: #131b2b; color: #fff; box-shadow: 0 0 15px rgba(74, 143, 223, 0.6); /* Neon green glow */ } .dark-mode .movers-section { background: #2c3e50; color: #fff; } .dark-mode .movers-section ul li { border-bottom: 1px solid #555; } .dark-mode .stock-ticker-indian { overflow: hidden; white-space: nowrap; background: #2c3e50; padding: 10px 0; position: relative; width: 100%; margin-top: 60px; /* Space below fixed navbar */ border-top: 0.3px solid #5c7a99; border-bottom: 0.3px solid #5c7a99; } /* Footer Styles */ footer { background-color: #2c3e50; color: #ecf0f1; padding: 40px 20px; font-family: Arial, sans-serif; } .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto; } .footer-section { flex: 1; min-width: 200px; margin-bottom: 20px; } .footer-section h3 { font-size: 18px; margin-bottom: 15px; color: #4a8fdf; } .footer-section ul { list-style: none; padding: 0; } .footer-section ul li { margin-bottom: 10px; } .footer-section ul li a { color: #ecf0f1; text-decoration: none; transition: color 0.3s ease; } .footer-section ul li a:hover { color: #4a8fdf; } .footer-section form { display: flex; gap: 10px; } .footer-section input[type="email"] { padding: 10px; border: none; border-radius: 5px; width: 70%; } .footer-section button { padding: 10px 20px; background-color: #4a8fdf; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } .footer-section button:hover { background-color: #4a8fdf; } .footer-bottom { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #34495e; font-size: 14px; } html{ scroll-behavior: smooth; } /* Container for the entire stock data section */ .stock-data-container { width: 90%; max-width: 1200px; margin: 40px auto; padding: 20px; background-color: #fff; border-radius: 10px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); overflow: hidden; border: 2px solid #4a8fdf; /* Add a solid border */ animation: glowBorder 2s infinite alternate; /* Apply glow animation */ } /* Center the date range filter */ .date-range-filter { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; } .date-range-filter label { font-weight: bold; color: #333; } .date-range-filter input { padding: 8px; border: 1px solid #ddd; border-radius: 5px; } .date-range-filter button { padding: 8px 16px; background-color: #4a8fdf; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } .date-range-filter button:hover { background-color: #4a8fdf; } /* Search bar styling */ #search-bar { padding: 8px; border: 1px solid #ddd; border-radius: 5px; width: 200px; } /* Animation for table */ @keyframes slideInFromTop { 0% { transform: translateY(-100%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } } /* Table styling */ table { width: 100%; border-collapse: collapse; margin-top: 20px; animation: slideInFromTop 0.8s ease-out forwards; } th, td { padding: 10px; text-align: center; border: 1px solid #ddd; } th { background-color: #4a8fdf; color: white; } tr:nth-child(even) { background-color: #f9f9f9; } tr:hover { background-color: #f1f1f1; } /* Dark mode adjustments */ .dark-mode .stock-data-container { background-color: #131b2b; color: #fff; border-color: #4a8fdf; /* Keep the border color consistent */ } .dark-mode .date-range-filter label { color: #ddd; } .dark-mode .date-range-filter input { background-color: #243342; color: #fff; border-color: #555; } .dark-mode .date-range-filter button { background-color: #4a8fdf; } .dark-mode .date-range-filter button:hover { background-color: #4a8fdf; } .dark-mode #search-bar { background-color: #243342; color: #fff; border-color: #555; } .dark-mode table { border-color: #555; } .dark-mode th { background-color: #243342; } .dark-mode tr:nth-child(even) { background-color: #243342; } .dark-mode tr:hover { background-color: #555; } /* Glow effect for the container */ @keyframes glowBorder { 0% { box-shadow: 0 0 10px rgba(74, 143, 223, 0.6); } 50% { box-shadow: 0 0 20px rgba(74, 143, 223, 0.8), 0 0 30px rgba(74, 143, 223, 0.6); } 100% { box-shadow: 0 0 10px rgba(74, 143, 223, 0.6); } } /* Apply the same animation to both stock-data-container and market-movers */ .stock-data-container, .market-movers { animation: glowBorder 2s infinite alternate; /* Apply the same glow animation */ } .indian-head { text-align: center; font-size: 28px; font-weight: 700; color: #4a8fdf; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; position: relative; } .indian-head::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: #4a8fdf; border-radius: 2px; } /* Toggle Buttons */ .toggle-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; } .toggle-buttons button { padding: 10px 20px; font-size: 16px; border: none; border-radius: 5px; cursor: pointer; background-color: #4a8fdf; color: white; transition: background-color 0.3s ease; } .toggle-buttons button:hover { background-color: #4a8fdf; } .toggle-buttons button.active { background-color: #4a8fdf; } /* Container styling */ .stock-data-container { max-width: 700px; margin: 40px auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); padding: 32px 24px 24px 24px; } .stock-data-container h2 { margin-bottom: 24px; color: #1976d2; font-weight: 600; text-align: center; } .date-range-filter { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 24px; justify-content: center; } .date-range-filter label { font-weight: 500; color: #333; } .date-range-filter input[type="date"], .date-range-filter select { padding: 6px 12px; border: 1px solid #bdbdbd; border-radius: 6px; font-size: 1rem; background: #fafafa; color: #333; min-width: 160px; transition: border-color 0.2s; } .date-range-filter input[type="date"]:focus, .date-range-filter select:focus { border-color: #1976d2; outline: none; } .date-range-filter button { padding: 8px 18px; background: #1976d2; color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .date-range-filter button:hover { background: #1565c0; } #message-container { margin: 16px 0; font-size: 1rem; text-align: center; border-radius: 6px; padding: 10px; display: none; } .chart-container { margin-top: 24px; background: #f5f7fa; border-radius: 10px; padding: 18px; box-shadow: 0 1px 8px rgba(0,0,0,0.04); } @media (max-width: 600px) { .stock-data-container { padding: 16px 4px; } .date-range-filter { flex-direction: column; gap: 10px; } .chart-container { padding: 6px; } } .favorites-container { max-width: 700px; margin: 40px auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); animation: tableGlow 2s infinite alternate; padding: 32px 24px 24px 24px; } .dark-mode .favorites-container { background: #131b2b; color: #fff; } #favorites-table { width: 100%; border-collapse: collapse; margin-top: 10px; } #favorites-table th, #favorites-table td { padding: 10px; text-align: center; border: 1px solid #ddd; } #favorites-table th { background-color: #4a8fdf; color: white; } #favorites-table tr:nth-child(even) { background-color: #f9f9f9; } .dark-mode #favorites-table th { background-color: #243342; } .dark-mode #favorites-table tr:nth-child(even) { background-color: #243342; } .bookmark-btn { background: none; border: none; color: #fbbf24; font-size: 1.3em; cursor: pointer; transition: color 0.2s; } .bookmark-btn.bookmarked { color: #f59e42; font-weight: bold; } .bookmark-btn:hover { color: #f59e42; } /* Glowing animation for the favorites table */ @keyframes tableGlow { 0% { box-shadow: 0 0 10px 0 #4a8fdf, 0 0 0px 0 #4a8fdf; } 50% { box-shadow: 0 0 24px 4px #4a8fdf, 0 0 12px 2px #1976d2; } 100% { box-shadow: 0 0 10px 0 #4a8fdf, 0 0 0px 0 #4a8fdf; } } .favorites-table-wrapper { max-height: 500px; overflow-y: auto; border-radius: 15px; margin-bottom: 24px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); } /* Custom scrollbar for light mode */ .favorites-table-wrapper::-webkit-scrollbar { width: 10px; } .favorites-table-wrapper::-webkit-scrollbar-thumb { background: #4a8fdf; border-radius: 8px; } .favorites-table-wrapper::-webkit-scrollbar-track { background: #e0e7ef; border-radius: 8px; } /* Custom scrollbar for dark mode */ body.dark-mode .favorites-table-wrapper::-webkit-scrollbar { width: 10px; } body.dark-mode .favorites-table-wrapper::-webkit-scrollbar-thumb { background: #243342; border-radius: 8px; box-shadow: 0 0 8px #4a8fdf; } body.dark-mode .favorites-table-wrapper::-webkit-scrollbar-track { background: #1e2a38; border-radius: 8px; } /* Optional: Firefox scrollbar styling */ .favorites-table-wrapper { scrollbar-width: thin; scrollbar-color: #4a8fdf #e0e7ef; } body.dark-mode .favorites-table-wrapper { scrollbar-color: #243342 #1e2a38; } .custom-introjs-tooltip { font-size: 1.05rem; color: #222; } .introjs-tooltip { z-index: 11000 !important; }