body {
    background-color: #111;
    color: white;
}

.head-title {
    font-size: 50px;
    color: #FFFFFF;
}


.navbar {
    background-color: #222;
    padding: 10px;
    border-radius: 25px;
    padding: 10px;
    margin: 30px 20px;
}

.search-input,
.search-input:focus {
    background: transparent;
    color: #fff;
    border-color: #ffffff40;
    border-radius: 18px;
    box-shadow: none;

}

.search-input::placeholder {
    color: #fff;
}

.navbar-brand {
    font-size: 20px !important;
}

.navbar-brand:hover {
    color: white !important;
}

.navbar-brand:focus {
    color: white !important;
}

.navbar .nav-link,
.navbar-brand {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.navbar-toggler {
    border: none;
    background: #fff !important;
}

.search-container {
    flex-grow: 1;
    max-width: 500px;
}

.error-text {
    color: red;
}


@media (min-width: 768px) and (max-width: 991px) {
    .navbar {
        margin: 20px 20px 8px 20px !important;
        border-radius: 12px;
        padding: 8px 14px;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .search-form {
        max-width: 320px;
    }

    .mobile-menu {
        display: block !important;
        width: 100%;
    }

    .header-mobile-div {
        background-color: #fff;
        margin: 0 20px 20px 20px !important;
        border-radius: 12px;
        padding: 8px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    .header-mobile-div a.nav-link {
        color: #282828 !important;
        padding: 10px 20px !important;
        font-size: 16px;
        font-weight: 500;
    }

    .web-menu,
    .header-main-menu {
        display: none !important;
    }

    .art-detail-section h2 {
        padding-top: 20px;
    }

    .art-sectiona {
        padding-right: 15px !important;
        padding-left: 15px;
    }

    .art-img {
        max-width: 100%;
        max-height: 500px;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .art-desc {
        font-size: 16px !important;
    }

}

.art-sectiona {
    padding-right: 50px;
}


.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.footer {
    background-color: #222;
    padding: 20px;
    /*text-align: center;*/
    color: white;
    margin-top: 20px;
    /*position: fixed;*/
    /*width: 100%;*/
    /*bottom: 0;*/
}


#galleryTabs .nav-link.active {
    background-color: #262626;
    color: #ffffff !important;
}

#galleryTabs .nav-link {
    background-color: #1B1B1B;
    border: solid 1px #262626;
    border-radius: 26px;
    min-width: 130px;
    margin-left: 10px;
    font-size: 13px;
    color: #868686 !important;
    padding: 4px;
}

.art-list img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Main CSS */
.grid-wrapper>div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-wrapper>div>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: solid 20px;
}

.grid-wrapper {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    margin: 0 4%;
}

.grid-wrapper .wide {
    grid-column: span 2;
}

.grid-wrapper .tall {
    grid-row: span 2;
}

.grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .grid-wrapper1 {
        column-count: 3;
    }

    .head-title {
        font-size: 28px;
    }

    .navbar {
        padding: 8px 10px;
        border-radius: 10px;
        margin: 20px 15px 8px 15px !important;
        flex-wrap: nowrap !important;
        /* keep logo + search + toggler on one row */
        align-items: center !important;
        display: flex !important;
        gap: 8px;
    }

    .navbar-brand {
        flex-shrink: 0 !important;
        /* never let the logo shrink */
        margin-right: 0 !important;
    }

    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .social-media {
        margin-top: 10px !important;
    }

    .footer-mobile-social-media {
        margin-bottom: 15px !important;
        text-align: center;
    }

    .footer-mobile-useful-url {
        text-align: center;
        margin-top: 20px;
    }

    .footer-mobile-useful-url h4 {
        margin-bottom: 15px !important;
    }

    .store-links .row {
        text-align: center;
        margin-top: 20px;
    }

    .google-play {
        margin-bottom: 20px;
    }

    .mobile-menu {
        display: block !important;
        width: 100%;
    }

    .header-mobile-div {
        background-color: #fff;
        margin: 0 15px 20px 15px !important;
        border-radius: 10px;
        padding: 8px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    .header-mobile-div a.nav-link {
        color: #282828 !important;
        padding: 10px 18px !important;
        font-size: 16px;
        font-weight: 500;
    }

    .web-menu,
    .header-main-menu {
        display: none !important;
    }

    .search-form {
        /* flex: 1 1 0 !important; */
        min-width: 40% !important;
        width: auto !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 40px !important;
        /* visible pill border */
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 6px 0 0 !important;
        background: transparent !important;
        overflow: hidden !important;
    }

    .search-form .search-input,
    .search-form .search-input:focus {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 38px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #fff !important;
        padding-left: 16px !important;
        font-size: 14px !important;
    }

    .search-form .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .search-btn {
        flex-shrink: 0 !important;
        color: #fff !important;
        background: transparent !important;
        border: none !important;
        padding: 0 8px !important;
        font-size: 15px !important;
    }

    .navbar-toggler {
        flex-shrink: 0 !important;
        /* keep toggler on the same row */
    }

    .art-detail-section h2 {
        padding-top: 20px;
    }

    .art-sectiona {
        padding-right: 15px !important;
        padding-left: 15px;
    }

    .art-img {
        max-width: 100%;
        max-height: 350px;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .art-desc {
        font-size: 14px !important;
    }

    .login-btn {
        width: 270px !important;
        height: 55px;
    }

    .reg-div {
        padding: 1.5rem !important;
    }

    .login-img {
        width: 100%;
        height: auto !important;
        object-fit: cover;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .login-details-div {
        padding: 100px 20px 40px 20px !important;
    }

    .reg-img-tag {
        width: 99% !important;
        height: auto !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    #galleryTabs li.nav-item {
        padding-bottom: 25px;
        padding-left: 10px;
    }

}

.reg-img-tag {
    width: 99%;
    height: 1060px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.login-details-div {
    padding: 100px 55px 40px 55px;
}

.reg-div {
    padding: 0;
}

.footer a {
    text-decoration: none;

}

.footer p {
    margin-bottom: 5px !important;
}

.footer-logo {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
    color: #C9A84C;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(201, 168, 76, 0.35);
    text-decoration: none;
    display: inline-block;
}

.footer-logo:hover,
.footer-logo:focus {
    color: #C9A84C;
    text-decoration: none;
}

.store-links {
    align-self: center !important;
}

.footer-box {
    border-bottom: solid 1px #383838;
    padding-bottom: 30px;
}

.footer-box h4 {
    color: #D9D9D9 !important;
    font-weight: 400;
}

.footer-content {
    margin: 0 4%;
    padding: 20px 0px;
}

.copy-right {
    color: #A0A0A0;
}

/* .social-media{

} */

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-menu {
    display: none;
}

.web-menu {
    display: block;
}

.header-mobile-div .navbar-nav {
    margin: 0;
    padding: 6px 0;
}

.header-mobile-div .nav-item {
    width: 100%;
}

.header-mobile-div .nav-link {
    color: #222222 !important;
    font-size: 16px;
    font-weight: 500;
    padding: 11px 22px !important;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-mobile-div .nav-link:hover,
.header-mobile-div .nav-link:focus,
.header-mobile-div .nav-item.active .nav-link {
    background-color: #f4f4f4;
    color: #000000 !important;
}

.header-mobile-div form {
    margin: 0;
    padding: 0;
}

.header-mobile-div button.nav-link {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Header Home / Account menu next to the search bar */
.header-main-menu {
    margin-left: 25px;
}

.header-main-menu .nav {
    align-items: center;
    gap: 6px;
}

.header-main-menu .nav-item .nav-link {
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-main-menu .nav-item.active .nav-link,
.header-main-menu .nav-item .nav-link:hover {
    background-color: #262626;
}

.search-form {
    max-width: 400px;
    margin-left: 25px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ffffff40;
    border-radius: 18px;
    padding-right: 6px;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1c1c1c;
    border: 1px solid #ffffff26;
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    padding: 6px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.search-suggestion-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-count {
    flex-shrink: 0;
    color: #ffffff99;
    font-size: 12px;
    background: #ffffff14;
    border-radius: 20px;
    padding: 1px 8px;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #262626;
    color: #fff;
}

.search-form .search-input,
.search-form .search-input:focus {
    padding-left: 25px;
    flex: 1 1 auto;
    border: none;
    border-radius: 18px;
    background: transparent;
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 0 10px;
    cursor: pointer;
}

.search-btn:hover,
.search-btn:focus {
    color: #ffffffcc;
    outline: none;
}

.search-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* dd */

.grid-wrapper1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 10px;
    gap: 0 1rem;
    margin: 0 4%;
    align-items: start;
}

.grid-wrapper1>p {
    grid-column: 1 / -1;
}

.art-card {
    grid-row-end: span 30;
    /* default ~300px; JS overrides with real height */
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #1b1b1b;
}

.art-card img {
    width: 100%;
    height: auto;
    display: block;
    border: solid 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.art-card img.is-loaded {
    opacity: 1;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .grid-wrapper1 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-wrapper1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-wrapper1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-wrapper1 {
        grid-template-columns: 1fr;
    }
}


#topScrollBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 29px;
    border: none;
    outline: none;
    background-color: #8daec8;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 37px;
    font-weight: 900;
}

#topScrollBtn:hover {
    background-color: #555;
}

.art-detail-div {
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 2%;
    padding-bottom: 3%;
    margin-left: 0;
    margin-right: 0;
    align-items: center !important;
}

.art-img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}

.art-likes {
    cursor: pointer;
}

.art-drawing {
    float: inline-end;
    background: #383838;
    color: #fff;
    border: 1px;
    border-radius: 15px;
    /* width: 120px; */
    padding: 0 20px 0 20px;
    height: 40px;
    font-size: 18px;
}

.art-download-btn {
    /* float: inline-end; */
    /* background: #383838;
    color: #fff;
    border: 1px;
    border-radius: 15px;
    width: 175px;
    height: 47px;
    font-size: 18px;
    padding-top: 8px;
    padding-left: 11px;
    text-decoration: none;
    margin-top: 11px; */
    background: #383838;
    color: #fff;
    border: 1px;
    border-radius: 15px;
    width: 175px;
    height: 47px;
    font-size: 18px;
    padding: 7px 20px 11px 20px;
    text-decoration: none;
    margin-top: 11px;
}

.art-desc {
    font-size: 17px;
    text-align: justify;
    padding-top: 15px;
}

.login-img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}


.keyword-btn {
    background-color: #383838;
    color: #D9D9D9;
    margin: 5px;
    font-size: 16px;
    border-radius: 10px;
    padding: 5px 30px;
    pointer-events: none;
}

.login-btn {
    background: #0D0D0D;
    border: 1px solid #0D0D0D;
    font-size: 18px;
    color: #fff;
    width: 350px;
    height: 55px;
}

.login-btn:hover {
    background: #0D0D0D;
    border: 1px solid #0D0D0D;
    color: #fff;
}

.login-btn:active {
    background: #0D0D0D;
    border: 1px solid #0D0D0D;
    color: #fff;
}

.login-btn:disabled,
.login-btn[disabled] {
    background-color: #0D0D0D !important;
    border-color: #0D0D0D !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.image-upload-wrapper {
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Account / profile details page */
.account-div {
    max-width: 720px;
}

.account-inner {
    padding: 40px;
}

.account-avatar {
    width: 110px;
    height: 110px;
}

.account-avatar .account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.account-avatar .account-avatar-img.avatar-placeholder {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 575px) {
    .account-inner {
        padding: 25px 18px;
    }
}

.image-upload-label {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.image-upload-label img {
    width: 24px;
    height: 24px;
}