* {
    font-family: Arial, sans-serif;
    color: #545454;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.wrapper.homepage {
    justify-content: center;
}

.mainsection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image_container {
    width: 300px;
    text-align: center;
}

.image_container img {
    width: 100%;
}

.search_container {
    width: 100%;
}

.search_container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search_box {
    border: none;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    height: 45px;
    padding: 10px;
    width: 70%;
    max-width: 630px;
    outline: none;
    font-size: 16px;
    color: #000;
}

.search_btn {
    background-color: #f5f5f5;
    color: #757575;
    border: none;
    height: 40px;
    width: 130px;
    border-radius: 1px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
}

.headercontent {
    display: flex;
    align-content: center;
    flex-wrap: wrap; /* Add flex-wrap to ensure responsiveness */
}

.headercontent .image_container {
    width: 130px;
    padding: 5px 20px;
}

.textbox_container {
    flex: 1;
    width: 100%; /* Ensure full width on smaller screens */
}

.textbox_container .search_box {
    display: flex;
    box-sizing: border-box;
    border-radius: 5px;
}

.search_textbox {
    flex: 1;
    outline: none;
    border: none;
}

.search_textbtn {
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
}

.search_textbtn img {
    width: 25px;
}

.headerSection {
    border-bottom: 2px solid #ebebeb;
    margin-top: 25px;
}

.headerlist {
    margin-left: 160px;
}

.tablist {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Ensure tabs wrap on smaller screens */
}

.tablist li {
    display: inline-block;
    color: #777;
    font-size: 15px;
    padding: 0 15px 10px 16px;
}

.tablist li a {
    text-decoration: none;
}

.active {
    border-bottom: 3px solid #1A73E8;
}

.active a {
    font-weight: bold;
    color: #1A73E8;
}

.searchCount {
    margin-left: 160px;
    font-size: 16px;
    color: #70757a;
}

.site-results {
    margin-left: 160px;
}

.site-result-container {
    margin-bottom: 25px;
}

.site-result-container .url {
    font-size: 14px;
}

.site-result-container .title {
    margin-top: 10px;
    margin-bottom: 10px;
}

.site-result-container .title-url {
    color: #1a0dab;
    text-decoration: none;
    font-size: 19px;
    font-weight: normal;
}

.site-result-container .title-url:hover {
    text-decoration: underline;
}

.site-result-container .description {
    font-size: 14px;
}

.pageSection {
    display: flex;
    justify-content: center;
}

.pageButtons {
    display: flex;
    flex-wrap: wrap; /* Ensure pagination buttons wrap on smaller screens */
}

.pageImageContainer img {
    height: 50px;
}

.pageImageContainer,
.pageImageContainer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.pageNumber {
    margin-top: 10px;
    font-size: 15px;
}

a .pageNumber {
    color: #4285f4;
}

.image-result-container img {
    min-width: 80px;
    max-width: 100%; /* Ensure images scale down on smaller screens */
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    .headerlist, .searchCount, .site-results {
        margin-left: 20px;
        margin-right: 20px;
    }

    .tablist li {
        padding: 0 10px 5px 10px;
        font-size: 14px;
    }

    .site-result-container .title-url {
        font-size: 17px;
    }

    .search_box {
        width: 90%;
    }

    .search_btn {
        width: 100px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .headercontent {
        flex-direction: column;
        align-items: center;
    }

    .headerlist, .searchCount, .site-results {
        margin-left: 10px;
        margin-right: 10px;
    }

    .site-result-container .title-url {
        font-size: 16px;
    }

    .search_box {
        width: 100%;
    }

    .search_btn {
        width: 90px;
        font-size: 12px;
    }

    .tablist li {
        padding: 0 5px 5px 5px;
        font-size: 13px;
    }
}
