/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Courier New', monospace; /* Monospace font for terminal look */ line-height: 1.6; background-color: #1e1e1e; /* Dark background */ color: #f1f1f1; /* Light text color */ width: 80%; /* Adjusted width for centered content */ margin: 0 auto; padding: 0; transition: background-color 0.3s, color 0.3s; } /* Header Styles */ header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #333; color: #f1f1f1; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } header .logo { display: flex; align-items: center; } header .logo img { width: 50px; height: auto; display: block; } header .logo-title { font-size: 2rem; margin-left: 10px; /* Adds space between the logo and the title */ font-family: 'Courier New', monospace; letter-spacing: 1px; } header nav ul { display: flex; gap: 20px; } header nav ul li { list-style: none; } header nav ul li a { color: #f1f1f1; text-decoration: none; font-size: 1.1rem; transition: color 0.3s; } header nav ul li a:hover { color: #1e1e1e; } /* Header Styles */ header .logo:hover { opacity: 0.8; /* Slightly dim the logo and title on hover */ } /* Input Section Styles */ .input-section { margin: 30px 0; text-align: center; } .input-section input { text-align: center; width: 100%; max-width: 500px; padding: 1rem; margin: 10px auto; display: block; font-size: 1.2rem; border-radius: 5px; border: 2px solid #777; /* Terminal-inspired border */ background-color: #222; /* Dark input background */ color: #f1f1f1; /* Light text for input */ transition: border-color 0.3s, box-shadow 0.3s; } input[type="text"]:focus { border-color: #4caf50; /* Classic terminal green on focus */ outline: none; box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); } .feedback-text { display: block; margin-top: 5px; color: #e74c3c; /* Red text for feedback */ font-size: 0.9rem; } /* Button Group Styles */ .button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; } button { padding: 1rem 2rem; background-color: #333; /* Dark button background */ color: #f1f1f1; /* Light text */ border: 2px solid #777; /* Border matching input style */ font-size: 1.1rem; cursor: pointer; border-radius: 5px; transition: background-color 0.3s ease, transform 0.3s ease; } button:hover { background-color: #777; transform: translateY(-2px); } button:active { transform: translateY(0); } .loading-spinner { display: flex; justify-content: center; align-items: center; position: fixed; /* Fixed position to stay in place when scrolling */ top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); /* Optional: Semi-transparent background */ z-index: 1000; /* Ensure the spinner appears above other elements */ height: 100vh; /* Full viewport height for better centering */ } .spinner { border: 4px solid #f3f3f3; border-top: 4px solid #2196f3; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Footer Styles */ footer { margin-top: 40px; text-align: center; padding: 20px 0; background: #333; /* Dark footer */ color: #f1f1f1; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } footer .social { margin-top: 15px; } footer .social a { margin: 0 15px; color: #f1f1f1; font-size: 1.5rem; transition: color 0.3s; } footer .social a:hover { color: #4caf50; /* Green hover effect */ } /* Table Section Styles */ .table-section { overflow-x: auto; margin-top: 30px; } .table-section table { width: 100%; border-collapse: collapse; margin: 10px 0; } .table-section table th, .table-section table td { padding: 15px; border: 1px solid #555; text-align: left; font-family: 'Courier New', monospace; /* Monospace table font */ } .table-section table tr:hover { background-color: #444; /* Darker hover effect */ } /* Popup Styles */ .popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */ z-index: 9999; justify-content: center; align-items: center; transition: opacity 0.3s ease; } /* Popup content styling */ .popup-content { background-color: #333; /* Dark background */ border-radius: 5px; padding: 2rem; width: 80%; max-width: 500px; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); color: #f1f1f1; position: relative; } /* Close button styling */ .close-btn { background: none; border: none; color: #f1f1f1; font-size: 1.5rem; cursor: pointer; position: absolute; top: 15px; right: 15px; z-index: 100; transition: color 0.3s ease; } /* Close button hover effect */ .close-btn:hover { color: #e74c3c; /* Red hover color for better visibility */ } /* Fade in animation for popup */ @keyframes popupFadeIn { to { opacity: 1; transform: translateY(0); } } /* Popup content fade-in effect */ .popup-content { opacity: 0; transform: translateY(-50px); animation: popupFadeIn 0.4s forwards; } /* Intro Section Styles */ .intro-section { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 15px 20px; /* Adjust padding to be a bit more compact */ margin-bottom: 20px; box-sizing: border-box; min-height: 45vh; /* Slightly smaller height */ max-width: 800px; /* Control the width on large screens */ margin: 0 auto; } .intro-section h2 { font-size: 1.7rem; /* Slightly reduced font size */ margin-bottom: 5px; /* Reduce margin to save space */ } .intro-section p { font-size: 0.95rem; /* Slightly reduced font size */ max-width: 600px; margin-bottom: 5px; /* Reduce margin to save space */ line-height: 1.4; /* Slightly reduced line-height */ } /* Mobile-first approach */ @media screen and (max-width: 768px) { .intro-section h2 { font-size: 1.5rem; /* Smaller heading on mobile */ } .intro-section p { font-size: 1rem; /* Smaller text on mobile */ } .input-section input { width: 90%; } } /* Responsive Design */ @media (max-width: 768px) { body { width: 100%; margin: 0 auto; } input[type="text"] { width: 90%; } button { width: 80%; font-size: 1.2rem; } header { flex-direction: column; text-align: center; } .logo img { width: 50px; } .theme-toggle { margin-top: 10px; font-size: 1.8rem; } .button-group button { padding: 0.8rem 1.5rem; /* Reduced padding for buttons */ font-size: 1rem; /* Smaller text size on buttons */ } table { width: 100%; } } @media (max-width: 480px) { body { font-size: 0.85rem; } button { padding: 0.8rem 1.6rem; } .footer-content { font-size: 0.8rem; } } /* Marquee Styles */ .marquee { bottom: 0; /* Position it at the bottom */ left: 0; width: 100%; color: #fff; /* White text */ font-size: 1.2rem; text-align: center; padding: 0; z-index: 9999; /* Ensure it's always on top */ font-weight: bold; overflow: hidden; /* Hide any text that goes out of bounds */ } .marquee p { padding: 0; margin: 0; display: inline-block; /* Makes the text continuous */ white-space: nowrap; /* Prevent text from wrapping */ animation: scrollText 30s linear infinite; /* Smooth scrolling */ } @keyframes scrollText { 0% { transform: translateX(100%); /* Start off-screen to the right */ } 100% { transform: translateX(-100%); /* End off-screen to the left */ } } /* Mobile-friendly adjustments */ @media screen and (max-width: 768px) { .marquee { font-size: 1rem; /* Smaller text size on mobile */ } .marquee p { animation: scrollText 20s linear infinite; /* Slightly faster scrolling on mobile */ } } @media screen and (max-width: 480px) { .marquee { font-size: 0.9rem; /* Even smaller text size on very small screens */ } .marquee p { animation: scrollText 6s linear infinite; /* Faster scrolling on very small screens */ } }