ഫലകം:Listofdistricts2/styles.css
ദൃശ്യരൂപം
/* Container */
.district-container {
width: 100%;
margin: 10px auto;
padding: 15px;
background: linear-gradient(135deg, #f0f9ff, #ffffff);
border-radius: 10px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
border: 3px solid #7BBCE5;
text-align: center;
}
.district-list {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
}
/* Section title */
.district-list .district-title {
font-size: 1.3rem;
font-weight: bold;
color: #004ec3;
margin: 15px 0 10px 0;
}
/* Items container */
.district-list .district-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin: 10px 0 20px 0;
}
/* Each item */
.district-list .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;
box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
transition: all 0.25s ease;
cursor: pointer;
}
/* Hover effect – invert colors */
.district-list .district-item:hover {
background: #0073e6;
color: #ffffff;
transform: translateY(-2px);
box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
border-color: #004ec3;
}
.district-list .district-item a:hover
{
color: #ffffff;
}
/* Keep small text visible in inverted mode */
.district-list .district-item:hover small {
color: #e6f0ff;
}
/* Smaller text for sub-labels */
.district-list .district-item small {
display: block;
font-size: 0.85rem;
color: #555;
margin-top: 4px;
}
/* Responsive */
@media (max-width: 768px) {
.district-list .district-item {
min-width: 45%;
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.district-list .district-item {
min-width: 100%;
font-size: 0.9rem;
}
}