@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Condensed&family=Ropa+Sans&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Ropa Sans', sans-serif; /* Global font */
}

:root {
            --primary-color: #0d6efd;
            --secondary-color: #6c757d;
            --light-bg: #f8f9fa;
            --dark-bg: #212529;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
        }

body {
    background-color: #eff2f7;
}

/*   Header */
.h-head {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 4px 0;
    margin: 5px;
}

/* Search Box */
.bg-w{
    margin: 10px 0;
    background: white;
}


/* Improved text sizing */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; }

.text-muted { font-size: 0.9rem; }
small { font-size: 0.85rem; }

/* Population counter animation */
.animate-pop {
    transition: all 0.4s ease-in-out;
}

.pop-counter {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .h-head {
        font-size: 1.8rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
}



/* Footer styles */
footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Weather cards */
.weather-card {
    transition: transform 0.2s;
}

.weather-card:hover {
    transform: translateY(-3px);
}

/* Table scroll */
.table-scroll {
    max-height: 850px;
    overflow-y: auto;
}

/* Sticky table header */
.sticky-thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

/* footer text */
.ft-p{
    font-size: 14px;
}




        
        .state-header {
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/state-banners/alabama.jpg') no-repeat center center;
            background-size: cover;
            color: white;
            padding: 4rem 0;
            margin-bottom: 2rem;
           
            position: relative;
        }
        
        .breadcrumb {
            background-color: transparent;
            padding: 0;
        }
        
        .info-card {

            border: none;
            box-shadow: none;
            border-radius: 0px;
        }
        
        .quick-facts {
            background-color: var(--light-bg);
           
            padding: 1rem;
        }
        
        .quick-facts dt {
            font-weight: 600;
            color: var(--secondary-color);
        }
        
        
        
        .state-map {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .state-flag {
            width: 100%;
            max-width: 300px;
            border: 1px solid #dee2e6;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .nav-pills .nav-link.active {
            background-color: var(--primary-color);
        }
        
        .location-list {
            column-count: 3;
            column-gap: 2rem;
        }
        
        @media (max-width: 768px) {
            .location-list {
                column-count: 2;
            }
        }
        
        @media (max-width: 576px) {
            .location-list {
                column-count: 1;
            }
        }
        
        .location-list a{
            text-decoration: none;
        }
        
        a{
            text-decoration: none !important;
        }
        
        
        #loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quick-facts dt,
.quick-facts dd {
  display: inline-block;
  margin: 0;
  padding: 4px 0;
  vertical-align: top;
}

.quick-facts dt {
  width: 40%;
  font-weight: 600;
}

.quick-facts dd {
  width: 58%;
}
