/* =========================================================== LUNG CANCER PREDICTION — DARK NEON ANIMATED THEME =========================================================== */ /* 🌈 Animated Background */ body, html { margin: 0; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); color: #e0f7fa; overflow-x: hidden; height: 100vh; scroll-behavior: smooth; } .animated-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, rgba(0,255,255,0.2), transparent 70%), radial-gradient(circle at 80% 80%, rgba(255,0,255,0.2), transparent 70%); animation: moveGradient 15s infinite alternate ease-in-out; z-index: -1; pointer-events: none; } @keyframes moveGradient { 0% { background-position: 0 0, 100% 100%; } 100% { background-position: 100% 0, 0 100%; } } /* =========================================================== 🔄 LOADER =========================================================== */ #loader-overlay { position: fixed; inset: 0; background: rgba(15, 32, 39, 0.98); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; transition: opacity 0.5s ease; } .loader-spinner { width: 70px; height: 70px; border: 6px solid rgba(255, 255, 255, 0.15); border-top: 6px solid #00c6ff; border-radius: 50%; animation: spin 1s linear infinite; box-shadow: 0 0 15px #00c6ff; } @keyframes spin { 100% { transform: rotate(360deg); } } .loader-text { margin-top: 20px; color: #aeefff; font-size: 1rem; font-weight: 500; letter-spacing: 0.5px; animation: fadeIn 1.5s infinite alternate; } /* =========================================================== 🧩 MAIN FORM CONTAINER =========================================================== */ .main-box { background: rgba(255, 255, 255, 0.08); padding: 40px; border-radius: 25px; box-shadow: 0 0 35px rgba(0, 255, 255, 0.15); max-width: 900px; margin: 60px auto; backdrop-filter: blur(12px); position: relative; overflow: hidden; z-index: 2; transition: transform 0.4s ease, box-shadow 0.4s ease; } .main-box:hover { transform: translateY(-4px); box-shadow: 0 0 45px rgba(0, 255, 255, 0.25); } /* Flowing border light effect */ .main-box::before { content: ''; position: absolute; inset: 0; border-radius: 25px; padding: 2px; background: linear-gradient(60deg, #00c6ff, #0072ff, #ff00ff); background-size: 300% 300%; animation: borderFlow 4s linear infinite; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; } @keyframes borderFlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } } /* =========================================================== 🧭 HEADINGS =========================================================== */ h1.title { font-family: 'Lora', serif; text-align: center; color: #00e5ff; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; position: relative; animation: fadeInUp 1s ease-out; } h1.title::after { content: ""; display: block; width: 70px; height: 4px; background: linear-gradient(90deg, #00c6ff, #ff00ff); margin: 10px auto; border-radius: 2px; animation: drawLine 1.5s ease-out forwards; } .subtitle { text-align: center; color: #b2ebf2; font-size: 0.95rem; margin-bottom: 25px; } /* =========================================================== 🔠 FORM ELEMENTS =========================================================== */ label { display: block; margin-top: 15px; font-weight: 600; color: #e0f7fa; font-size: 1em; } input, select { width: 100%; border: none; border-radius: 10px; background: rgba(255,255,255,0.1); color: #fff; padding: 12px; margin-top: 5px; font-size: 0.95em; transition: all 0.3s ease; } input:focus, select:focus { outline: none; background: rgba(255,255,255,0.15); box-shadow: 0 0 10px #00e5ff; } /* Grid Layout */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; } /* =========================================================== 🌟 BUTTONS =========================================================== */ .glow-btn { width: 100%; font-weight: bold; background: linear-gradient(45deg, #00c6ff, #0072ff); border: none; border-radius: 10px; padding: 14px; margin-top: 25px; color: #fff; letter-spacing: 0.5px; transition: all 0.4s ease; box-shadow: 0 0 15px rgba(0, 198, 255, 0.4); cursor: pointer; } .glow-btn:hover { box-shadow: 0 0 25px #00c6ff; transform: scale(1.05); background: linear-gradient(45deg, #0072ff, #ff00ff); } /* =========================================================== 🧠 RESULT CARD =========================================================== */ .result-card { margin-top: 25px; padding: 20px; border-radius: 12px; font-weight: bold; text-align: center; color: white; animation: fadeIn 0.8s ease-in-out; } .risk-low { background: rgba(76, 175, 80, 0.3); border: 2px solid #4caf50; } .risk-medium { background: rgba(255, 193, 7, 0.3); border: 2px solid #ffc107; } .risk-high { background: rgba(211, 47, 47, 0.3); border: 2px solid #d32f2f; box-shadow: 0 0 20px rgba(211, 47, 47, 0.4); } .hidden { display: none; } /* =========================================================== ⚡ ANIMATIONS =========================================================== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes drawLine { from { width: 0; } to { width: 70px; } } @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } /* =========================================================== 📱 RESPONSIVE DESIGN =========================================================== */ @media (max-width: 768px) { .main-box { padding: 25px; } h1.title { font-size: 1.6em; } }