File size: 6,423 Bytes
b398c5e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | /* ===========================================================
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;
}
}
|