:root {
    --main-color: #156d26;
    --secondary-color: #141e1c;
    --body-font: DM Sans;
    --heading-font: TASA Orbiter;
    --font-color: #201f1f;
    --heading-color: #07160b;
    --bg-color: #f9fff9;
    --border-color: #e7eaff;
}

* {
    font-family: var(--body-font);
    outline: 0;
}

body {
    padding: 0;
    margin: 0;
    background: var(--bg-color);
    color: var(--font-color);
    font-size: 16px;
}

p {
    margin: 5px 0;
    padding: 0;
    color: var(--font-color);
}

a {
    text-decoration: none;
    color: var(--main-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 5px 0;
    padding: 0;
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-weight: 600;
}

main {
    width: -webkit-fill-available;
    margin: 0 auto;
    padding: 0;
}


header {
    display: block;
    background: #fff;
    position: sticky;
    top: 0;
    left: 0;
    width: -webkit-fill-available;
    padding: 15px 25px 0;
    z-index: 999999;
    border-bottom: 1px solid #e7eaff;
    box-shadow: 0px 20px 40px -35px #d6d6d6;
}


header .logo {
    font-size: 24px;
    font-weight: 700;
}

header .logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn {
    height: 43px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 25px;
    border: none;
    cursor: pointer;
    width: auto;
    font-size: 16px;
    font-weight: 600;
}

.btn.primary {
    background: var(--main-color);
    color: #fff;
}

.btn.min {
    min-width: 180px;
}

.btn.full {
    width: -webkit-fill-available;
}

.btn .icon {
    margin: 0 8px 0 0;
    height: 17px;
    width: 17px;
}

header .menu-area {
    margin-top: 10px;
}

.menu-area nav {
    display: flex;
    align-items: center;
}

.menu-area nav a {
    font-weight: 500;
    color: var(--font-color);
    font-size: 16px;
    display: block;
    margin-right: 23px;
    padding: 0 3px 13px;
    border-bottom: 3px solid #fff;
}

.menu-area nav a:hover,
.menu-area nav a.active {
    border-bottom: 3px solid var(--font-color);
    transition: all 0.4s ease;
}

.homebanner {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #1c1c1c;
}

.form-control {
    background: var(--bg-color);
    height: 45px;
    border-radius: 7px;
    border: 2px solid var(--border-color);
    font-size: 16px;
    color: var(--font-color);
    padding: 0 15px;
    width: -webkit-fill-available;
    font-weight: 600;
}

.form-control:focus {
    color: var(--main-color);
    border-color: var(--main-color);
    transition: all 0.3s ease;
}

.bg-overlay {
    width: -webkit-fill-available;
    background: #14191473;
    padding: 0 25%;
    min-height: 67dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.homebanner h1,
.homebanner p {
    color: #fff;
    text-shadow: 2px 2px #000000;
}

.homebanner a,
.homebanner b {
    color: #fff;
}

.search-widget {
    display: flex;
    align-items: center;
    width: -webkit-fill-available;
}

.search-widget .form-control {
    border-radius: 10px 0 0 10px;
    width: 80%;
    border-color: var(--main-color) !important;
    background: #fff;
}

.search-widget .btn {
    border-radius: 0 10px 10px 0;
}

.popular-queries {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.popular-queries span {
    padding: 2px 8px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 5px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
}

.image-mansory {
    column-count: 4;
    column-gap: 16px;
    width: -webkit-fill-available;
    margin: 20px;
}

.image-block {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.image-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.likebutton {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-block:hover .likebutton {
    opacity: 1;
}

.image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: -webkit-fill-available;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    opacity: 1;
}

.author {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.auth-name {
    font-weight: bold;
}

.views {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
}

.views .icon {
    color: #fff;
}

.icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.image-viewer {
    display: flex;
    align-items: flex-start;
    padding: 35px 25px 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.loaded-image {
    width: 55%;
    object-fit: cover;
    height: 80dvh;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 100px;
}

.right-sidebar {
    width: 45%;
    padding-left: 35px;
}

.author-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-data h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
}

.author-data .avatar {
    margin-right: 8px;
}

.auth-data h2 img {
    margin-right: 8px;
}

.stats-widget {
    display: flex;
    align-items: center;
}

.count-widget {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0px 0px 4px -3px #111;
    padding: 6px 15px;
    margin-right: 10px;
}

.count-widget .icon {
    margin-right: 10px;
}

.prompt-data h4 {
    text-transform: uppercase;
}


.boxed-area {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    margin-top: 10px;
}

.boxed-area p {
    font-size: 19px;
    font-weight: 600;
}

.catarea a {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--main-color);
    font-size: 16px;
    color: #fff;
    margin-right: 3px;
}

.uploaded-date {
    display: flex;
    align-items: center;
    margin-top: 0px;
}

.author-image-blocks {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.author-image-blocks a {
    width: 32%;
}

.author-image-blocks img {
    width: -webkit-fill-available;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    height: 150px;
    object-fit: cover;
}

.popup {
    max-width: 45%;
    max-height: 550px;
    background: #FFF;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 20px;
    position: fixed;
    top: 125px;
    left: 0;
    right: 0;
    z-index: 9999999;
    margin: 0 auto;
    overflow-y: auto;
    display: none;
}

.closeicon {
    padding: 10px;
    border-radius: 100px;
    background: var(--main-color);
    color: #fff;
    cursor: pointer;
    min-height: 16px;
    min-width: 16px;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 7px;
}

.progress-data {
    display: block;
    text-align: left;
}

.upload-progress {
    height: 6px;
    border-radius: 100px;
    width: -webkit-fill-available;
    background: #ebffeb;
}

.upload-progress .progress-up {
    background: var(--main-color);
    height: 6px;
    border-radius: 100px;
    display: block;
}

.uploading-stat {
    font-size: 14px;
    margin-top: 7px;
}

textarea.form-control {
    min-height: 100px;
    max-height: 100px;
    height: 100px;
    padding: 15px;
    min-width: -webkit-fill-available;
    max-width: -webkit-fill-available;
    width: -webkit-fill-available;
}

.image-uploader {
    border: 2px dashed var(--main-color);
    background: var(--bg-color);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
}

#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000bd;
    z-index: 9998;
}

.searchbanner {
    background: url('/images/image1.jpg');
    background-position: center !important;
    background-repeat: no-repeat;
    background-size: cover;
}

.searchbanner p,
.searchbanner h1 {
    color: #fff;
    text-shadow: 2px 2px #000000;
}

.searchbanner .bg-overlay {
    min-height: 40dvh;
}

.avatar {
    height: 30px;
    width: 30px;
    border-radius: 100px;
}

.liked .icon {
    fill: rgb(231, 76, 60);
}

footer {
    padding: 40px 25px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

footer main {
    max-width: 1000px;
}

.footer-menus {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}
.footer-menus a {
    color: var(--font-color);
    text-decoration: underline;
}

.dislcaimer p {
    font-size: 15px;
}

@media only screen and (max-width: 768px) {
    #clicktoupload {
        width: auto !important;
        min-width: auto !important;
    }

    .bg-overlay {
        padding: 0 20px;
        min-height: 60dvh;
    }

    .image-mansory {
        column-count: 2;
        column-gap: 8px;
    }

    .author {
        font-size: 12px;
    }

    .image-footer {
        padding: 10px;
    }

    .image-block {
        margin-bottom: 8px;
    }

    header {
        padding: 15px 20px 0 !important;
    }

    header .menu-area {
        margin-top: 15px;
    }

    .searchbanner .bg-overlay {
        min-height: 30dvh !important;
    }

    .popup {
        max-width: 84%;
        padding: 15px;
        max-height: 580px;
    }

    .closeicon {
        position: absolute;
        right: 10px;
        top: 15px;
    }

    .image-viewer {
        flex-direction: column;
        padding: 25px 20px 25px;
    }

    .loaded-image {
        width: -webkit-fill-available;
        position: relative;
        max-height: 50dvh;
        top: unset !important;
    }

    .right-sidebar {
        flex-direction: column;
        width: -webkit-fill-available;
        padding: 0px;
        margin-top: 20px;
    }

    .author-data {
        display: block;
    }

    .author-data h2 {
        font-size: 22px;
        display: flex;
        align-items: center;
    }

    .author-data .stats-widget {
        margin-top: 20px;
    }

    .author-image-blocks a {
        width: 32%;
    }

    .footer-menus {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}