h1, h2 {
    margin: 0 0 1rem;
}

main {
    padding: 1rem;
}

/* Section Styling */
section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.5rem;
    color: black;
}


#cities li {
    background: #f9f9f9;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 150px;
    height: fit-content;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cities li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#cities li a {
    text-decoration: none;
    color: Black;
    font-weight: bold;
}

#cities li a:hover {
    color: black;
}

/* Search Bar Styling */
.search-bar {
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
    width: 130px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 70px;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.pagination button {
    background-color: #2d9cdb;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: #1b6fa1;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 90%;
    }

    section {
        padding: 0.75rem;
    }

    #cities ul {
        display: flex;
        flex-wrap: wrap;
        overflow-y: scroll;
        justify-content: center;
    }
}

#cities ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-y: scroll;
}