Spaces:
Runtime error
Runtime error
File size: 5,936 Bytes
1d4eab2 | 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 | /* Diseases Info Page के लिए विशिष्ट स्टाइलिंग */
:root {
--primary-green: #00A859;
--dark-green: #006400;
--light-green: #E8F8F5;
--border-color: #ddd;
}
/* ------------------- Section & Title ------------------- */
.diseases-section {
padding: 40px 5%;
background-color: #f7f7f7;
}
.page-title {
text-align: center;
font-size: 2.5em;
color: #222;
margin-bottom: 10px;
}
.subtitle {
text-align: center;
color: #666;
font-size: 1.1em;
margin-bottom: 40px;
}
/* ------------------- Tabs Container (Layout Fix) ------------------- */
.tabs-container {
background-color: white;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
border-radius: 12px;
overflow: hidden;
/* Max width बढ़ाया गया ताकि कंटेंट ज़्यादा जगह ले सके */
max-width: 1200px;
margin: 0 auto;
}
.tabs-nav {
display: flex;
justify-content: space-around;
border-bottom: 1px solid var(--border-color);
background-color: #f0f0f0;
}
.tab-button {
flex-grow: 1;
padding: 15px 10px;
border: none;
background-color: transparent;
cursor: pointer;
font-size: 1.05em;
font-weight: 600;
color: #555;
transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
border-bottom: 3px solid transparent;
}
.tab-button:hover:not(.active) {
color: var(--primary-green);
background-color: #f5f5f5;
transform: translateY(-2px); /* Animation */
}
.tab-button.active {
color: var(--dark-green);
background-color: white;
border-bottom: 3px solid var(--primary-green);
}
/* ------------------- Tab Content ------------------- */
.tab-content {
padding: 30px;
display: none;
align-items: flex-start;
gap: 40px;
}
.tab-content.active-content {
display: block; /* ब्लॉक डिस्प्ले का उपयोग करें ताकि कंटेंट पूरी विड्थ ले */
}
.disease-title {
color: var(--dark-green);
font-size: 2em;
margin-top: 0;
border-bottom: 2px solid var(--light-green);
padding-bottom: 10px;
margin-bottom: 20px;
}
.text-content p {
margin-bottom: 15px;
text-align: justify; /* टेक्स्ट को जस्टिफाई किया गया */
}
.text-content h3 {
color: var(--primary-green);
margin-top: 25px;
font-size: 1.3em;
}
.text-content ul {
list-style: none;
padding-left: 0;
}
.text-content ul li {
padding-left: 25px;
margin-bottom: 10px;
position: relative;
/* Checkmark आइकन */
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300A859'%3E%3Cpath d='M20.293 4.293l-10 10-4.293-4.293a1 1 0 00-1.414 1.414l5 5a1 1 0 001.414 0l10.707-10.707a1 1 0 00-1.414-1.414z'/%3E%3C/svg%3E") no-repeat left center;
background-size: 18px;
font-size: 1em;
transition: transform 0.2s ease; /* Animation */
}
.text-content ul li:hover {
transform: translateX(5px);
}
/* Image Placeholder Styling */
.tab-content > img[alt*="cloudy lens (cataract)"],
.tab-content > img[alt*="diabetic retina"],
.tab-content > img[alt*="Diabetic Retinopathy"],
.tab-content > img[alt*="Cataract"] {
float: right; /* इमेज को राइट में फ्लोट किया गया */
width: 40%;
margin-left: 20px;
margin-bottom: 15px;
height: auto;
min-height: 200px;
background-color: var(--light-green);
border: 1px solid var(--primary-green);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9em;
color: var(--dark-green);
text-align: center;
padding: 10px;
}
/* Disclaimer Box */
.disclaimer-box {
max-width: 1200px;
margin: 40px auto 20px;
padding: 20px;
background-color: #fff8e1;
border-left: 5px solid #ffc107;
border-radius: 8px;
color: #6a5a40;
text-align: left;
}
/* CTA Button at Bottom */
.start-prediction-btn {
display: inline-block;
margin-top: 20px;
}
/* ------------------- Animations ------------------- */
.animated-title {
animation: fadeInDown 1s ease-out;
}
.animated-container {
animation: fadeInUp 1.2s ease-out;
}
.animated-tab {
animation: fadeIn 0.6s ease-in-out;
}
.animated-button {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* ------------------- Responsive Design (Media Queries) ------------------- */
@media (max-width: 900px) {
.tabs-container {
max-width: 95%;
}
.tab-content {
padding: 20px;
}
.tab-content > img[alt*="cloudy lens (cataract)"],
.tab-content > img[alt*="diabetic retina"],
.tab-content > img[alt*="Diabetic Retinopathy"],
.tab-content > img[alt*="Cataract"] {
float: none; /* छोटी स्क्रीन पर इमेज को फ्लोट न करें */
width: 80%; /* फुल विड्थ लें */
margin: 20px auto;
}
}
@media (max-width: 600px) {
.page-title {
font-size: 2em;
}
.tabs-nav {
flex-direction: column; /* बटन को स्टैक करें */
}
.tab-button {
border-bottom: 1px solid var(--border-color);
}
.tab-button.active {
border-bottom: none;
border-left: 5px solid var(--primary-green);
}
.tab-content {
padding: 15px;
}
} |