body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto; /* Center the container and add bottom margin */
}

.city-button {
    display: block; /* Make the anchor tags behave like blocks */
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
}

.city-button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative; /* Or 'fixed' if you want it always at the bottom */
    bottom: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* Add space above the footer */
}

.footer-button {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.footer-button.back-button {
    background-color: #dc3545; /* Red */
}

.footer-button.back-button:hover {
    background-color: #c82333;
}

.footer-button.services-button {
    background-color: #28a745; /* Green */
}

.footer-button.services-button:hover {
    background-color: #218838;
}

.footer-button.tools-button {
    background-color: #6610f2; /* Dark Purple */
}

.footer-button.tools-button:hover {
    background-color: #5212d3;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .button-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on larger screens */
    }
}

@media (max-width: 767px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }

    .footer-button {
        flex-grow: 1; /* Allow footer buttons to grow on small screens */
    }
}