/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Container */
.container {
    max-width: 500px;
    background: #fff;
    padding: 20px;
    margin: 50px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Input Field */
input[type="text"] {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #007BFF;
    border-radius: 5px;
    font-size: 16px;
}

/* Search Button */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Results Section */
#result {
    margin-top: 20px;
    text-align: left;
    padding: 10px;
    border-top: 2px solid #ddd;
}

/* Search History */
#searchHistory {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#searchHistory li {
    background: #e3e3e3;
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
}

#searchHistory li:hover {
    background: #ccc;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        width: 90%;
    }
    input[type="text"] {
        width: 75%;
    }
}

/* Loader Animation */
.loader {
    display: none;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007BFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-box {
    background: #ffdddd;
    color: #b30000;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #b30000;
    border-radius: 5px;
    font-weight: bold;
}

.logo {
    background-image: url('images/logo.png');
    background-size: contain;
    width: 150px;
    height: 150px;
}
.states-container {
    text-align: center;
    margin-top: 20px;
}

.states-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.states-list li {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
}

.states-list li:hover {
    background: #007bff;
    color: white;
}

.states-list li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.states-list li:hover a {
    color: white;
}
/* Container for sidebar and main content */
.container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
}

/* Sidebar styling */
.sidebar {
    width: 250px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

/* Sidebar heading */
.sidebar h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

/* State list styles */
.state-list {
    list-style-type: none;
    padding: 0;
}

.state-list li {
    margin-bottom: 5px;
}

.state-list a {
    display: block;
    padding: 8px;
    background: white;
    border-radius: 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.state-list a:hover {
    background: #007bff;
    color: white;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    padding: 20px;
}

