ഫലകം:Listofdistricts2/styles.css
ദൃശ്യരൂപം
/* Container */
.district-container {
width: 95%;
margin: 15px auto;
padding: 20px;
background: linear-gradient(135deg, #f0f7ff, #e6ecff);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
text-align: center;
}
/* Section title (full width) */
.district-title {
font-size: 1.4rem;
font-weight: bold;
color: #004EC3;
margin: 20px 0 10px 0;
width: 100%;
text-align: center;
}
/* Flex container for items */
.district-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-bottom: 20px;
}
/* Each item as clickable card */
.district-item {
flex: 1 1 auto;
min-width: 140px;
max-width: 220px;
background: #ffffff;
border: 2px solid #0073e6;
border-radius: 8px;
padding: 10px;
color: #004EC3;
font-size: 1rem;
text-align: center;
text-decoration: none;
box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
transition: all 0.25s ease;
}
/* Hover effect – invert colors */
.district-item:hover {
background: #81bffc;
color: #ffffff;
transform: translateY(-2px);
box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
border-color: #004ec3;
}
.district-item:hover small {
color: #e6f0ff;
}
.district-list .district-item a:hover {
color: #ffffff;
font-weight:bold;
}
/* Small subtext inside cards */
.district-item small {
display: block;
font-size: 0.85rem;
margin-top: 4px;
color: #555;
}
/* Responsive */
@media (max-width: 768px) {
.district-item {
min-width: 45%;
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.district-item {
min-width: 100%;
font-size: 0.9rem;
}
}