@media screen and (max-width: 656px) {
    header {
        height: 80px;
        margin: 0;

        .logo img {
            height: 25px;
            width: 100%;
        }


        .middle {
            position: fixed;
            bottom: 90px;
            right: 5%;
            z-index: 100;
            width: fit-content;
        }

        .middle .search-form {
          display: none !important;
        }

        .navigation-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--background2);
            padding: 10px 10px;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            width: 100vw;
            z-index: 100;
            height: 80px;
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            grid-gap: 5px;
        }

        .navigation-container a {
            flex-direction: column;
            height: inherit;
            max-height: 60px;
            font-size: 0.7rem;
        }

        .navigation-container a svg {
            display: inline-flex !important;
        }
    }

    main.index #list {
        display: grid;
        grid-template-columns: none;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: unset;
        grid-gap: 10px;
    }

    .index #list > .card-container {
        width: calc(100vw - 56vw);
        grid-area: unset;
        margin: 0;
    }

    #list > *:nth-child(n + 10):not(.see-all) {
        display: none;
    }

    .see-all {
        grid-area: unset;
        min-height: 140px;
    }

    .card {
        min-height: 140px;
        border-radius: 30px 25px;
    }

    .categories {
        grid-gap: 7px;
    }

    #notificationsModal .modal-content,
    #user-container {
        max-width: 90vw;
    }

    main.user {
        flex-direction: column;
    }
    .left-profile {
        width: 100%;
    }

    main.drop {
        flex-direction: column;
    }

    .drop-left {
        width: 100%;
    }

    main.drop{
  grid-gap: 0px;
}

    .drop-right {
        background: var(--background);
        border-radius: 25px 25px 0 0;
        padding: 20px;
        z-index: 1;
        margin: 0;
    }

    .invitation {
        width: 100%;
    }

    header,
    main,
    footer {
        padding: 0 5%;
    }
    .drop-name {
        font-size: 1.5rem;
    }

    .drop-box {
        padding: 15px;
        flex-direction: column;
    }

    #referral {
        margin: 0;
        min-height: 45px;
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .drop-box .buttons {
        display: grid;
        grid-template-columns: 1fr max-content max-content;
        grid-gap: 10px;
    }

    #codeoptions {
        transform: translateY(100%);
        bottom: 5px;
        right: 15px;
        top: inherit;
    }
    #codeoptions button.qr {
        display: none;
    }

    .invitation-container {
        flex-direction: column;
    }

    .drop-text {
        margin: 0;
    }

    .drop-header-bottom {
        flex-direction: column;
    }

    main.drop #list {
        flex-direction: column;
    }

    main.drop .user-referral-card {
        width: 100%;
    }

    .headline-3d-text {
        font-size: max(12px, min(36px, calc(80vw - 293px)));
    }

    .drop-header .logo {
        max-width: 35%;
    }

    #add-code,
    #editcode,
    #reportcode {
        bottom: 100px;
        left: 5vw;
        width: 90vw;
        transform: inherit;
        top: inherit;
    }

    #add-code .headline-3d-text,
    #editcode .headline-3d-text,
    #reportcode .headline-3d-text {
        margin-bottom: 15px;
    }

    .drop-referral {
        height: 35px;
    }

    .drop-referral a,
    .drop-referral a img {
        height: 35px;
        width: 35px;
        min-width: 35px;
    }

    .drop-referral label {
        white-space: nowrap;
        font-size: 1.1rem;
        height: 35px;
    }

    .drop-referral .noavatar {
        height: 35px;
        width: 35px;
    }

    .drop-box .buttons .drop-button:first-child {
        grid-column: 1 / span 3;
        width: 100%;
    }

    .options.button2 {
        margin-right: -10px;
    }

    #user-card-container {
        display: flex;
        flex-direction: column;
    }
    .share-buttons {
        flex-direction: row;
        text-align: center;
    }

    .share-buttons a {
        font-size: 0.85rem;
        width: 100%;
    }

    main.category #user-card-container {
        grid-gap: 10px;
    }

    main.search .search-form {
        width: 100%;
    }
    .mobileonly,
    .navigation-container a svg {
        display: inline-flex !important;
    }

    footer {
        background-image: none;
        margin-bottom: 80px;
        bottom: 0;
        padding: 0;
        margin-top: 0;
        width: 100%;
        height: 100%;
    }

    .message-container {
        display: flex;
        position: fixed;
        right: 5%;
        bottom: 90px;
        z-index: 105;
        flex-direction: column;
        grid-gap: 10px;
        max-width: inherit;
        left: 5%;
    }

    .footer-content {
        flex-direction: column;
        grid-gap: 20px;
        align-items: center;
        justify-content: center;
        bottom: inherit;
        background: var(--primary);
        padding: 20px 5%;
        margin: 0;
        height: 100%;
        width: 100%;
        position: relative;
    }

    .footer-left {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        text-align: center;
    }

    .footer-nav {
        display: flex;
        grid-gap: 20px;
        flex-direction: column;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-text {
        text-align: center;
    }

    main {
        margin-bottom: 25px;
    }

    .refer-headline {
        max-width: 100%;
        font-size: 30px;
    }

    .refer-code #copyButton {
        width: initial;
    }

    .reward-text {
        text-align: right;
        font-size: 15px;
    }

    .step-icon {
        height: 50px;
        width: 50px;
    }

    .step-icon svg {
        height: 30px;
        width: 30px;
    }
    .step-headline {
        font-size: 18px;
    }
    .refer-steps {
        display: flex;
        justify-content: space-between;
        width: 105%;
    }

    .refer-steps .step {
        max-width: 33%;
        min-width: inherit;
    }

    .step-description {
        font-size: 15px;
    }

    .refer-steps > svg {
        margin: 20px -28px;
        width: 60px;
        z-index: -999;
    }

    .refer-steps > svg:nth-last-of-type(1) {
        margin: 8px -28px;
    }

    .main.drop .full.section #list {
        display: flex;
        grid-gap: 15px;
        flex-direction: column;
    }

    .main.drop .full.section #list .user-referral-card {
        width: 100%;
    }

    .pagination {
        grid-gap: 5px;
        width: 100%;
        align-items: center;
    }

    .share-buttons {
        flex-direction: row;
        text-align: center;
    }

    .circle-progress {
        width: 75px;
        height: 75px;
    }

    .progress-text {
        display: flex;
        justify-content: center;
        font-family: var(--font1);
        color: var(--information);
        font-weight: 600;
        position: inherit;
        height: auto;
        width: auto;
        align-items: center;
        top: 0;
        left: 0;
    }

    #alertPopup {
        font-size: 14px;
        height: 60px;
        padding: 0 15px;
    }

    #alertPopup button {
        display: none;
    }

    .alert-title {
        white-space: nowrap;
    }

    .alert-description {
        line-height: 1.15;
    }

    .boost-item {
        grid-gap: 15px;
    }

    .purchase-container {
        align-self: end;
    }

    #notificationsModal .modal-content {
        width: 90vw;
    }
    .reward-box,
    .balance-box,
    .referral-container,
    .refer-history,
    .refer-history table,
    .refer-buttons,
    .refer-headline-two {
        width: 100%;
    }

    .reward-box {
        margin-top: 15px;
    }

    table,
    .faq-container {
        max-width: 100%;
    }

    table th:nth-of-type(2),
    table td:nth-of-type(2) {
        width: 50%;
    }

    #contactForm {
        width: 100%;
    }

    .welcome-headline {
        font-size: 1.5rem;
        width: 100%;
        max-width: unset;
    }

    .signinbuttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: unset;
    }

    .signin form,
    .register form {
        width: 100%;
        min-width: unset;
    }

    .divider {
        min-width: 100%;
    }

    .headline-description {
        text-align: center;
        font-size: 1.1rem;
    }

    main {
        grid-gap: 25px;
        flex: 1;
    }

    .info-block {
        width: 100%;
    }

    #liveUpdateSection {
        flex-direction: column;
    }

    #liveUpdateSection section {
        width: 100% !important;
    }

      #main-preview-img {
    width: 100% !important; /* !important ensures it overrides inline style */
    height: auto !important; /* Maintain aspect ratio */
    aspect-ratio: 1 / 1; /* Enforce 1:1 ratio */
  }
}
