body {
    max-width: 100%;
    overflow-x: hidden !important;
}

#listintro {
    display: flex;
}

#listinstructions {
    left: 0;
    width: calc(100% - 50px);
}

#contentholder {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden !important;
}

#listholderwrapper {
    margin: 0;
    border-radius: 5px;
}

#itemcontent,
#listholderwrapper,
#commentholder {
    width: 100%;
}

#contenttitlebarwide {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.allcontentsharebutton {
    width: auto;
}

.contentintrodescriptioncontainer {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.introimageclosebuttonformobile {
    display: none;
}

.editcontentbutton {
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: normal;
    color: #FFFFFF;
    background-color: var(--blue_btn_color);
    border-radius: var(--btn_radius);
    transition: var(--btn_bgcolor_animation);
}

.contenttitleintroimageclose {
    z-index: 10;
}

#analyticspopup {
    position: fixed;
    top: 60px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 70px);
    background-color: var(--white_card_bgcolor);
    border-radius: var(--card_radius_half);
    box-shadow: var(--white_card_shadow);
    z-index: 1000;
}

#analyticspopupclose {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1005;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background-image: url(../assets/spritesv2/common.png);
    background-size: 360px 800px;
    background-position: -40px -360px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: background-color .3s;
    -moz-transition: background-color .3s;
    -ms-transition: background-color .3s;
    -o-transition: background-color .3s;
    transition: background-color .3s;
}

#listbox {
    display: none;
}

#ascendingdescendingtoggle {
    display: none;
}

#listBoxMyRank {
    display: block;
    position: relative;
    min-height: 55px;
    max-height: 555px;
    overflow: hidden;
}

.thisorthat_groupTitle {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #666;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.thisorthat_groupInner {
    position: relative;
    width: 100%;
    padding: 1rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.thisorthat_itemContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: fit-content;
    height: fit-content;
}

.thisorthat_groupItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*// distribute 22rem to vw and rem*/
    width: 12rem;
    height: 16rem;
    box-shadow: var(--white_card_shadow);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.thisorthat_groupItemCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 3px 3px 0 0;
    position: relative;
    overflow: hidden;
}

.thisorthat_groupItemImg {
    border-radius: 3px;
    width: 100%;
    image-rendering: smooth;
    height: 100%;
    object-fit: cover;
}

.thisorthat_groupItemText {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 0 0 3px 3px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.thisorthat_groupItemDescription {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    width: 100%;
    color: #333;
    padding: 0.5rem;
    text-align: justify;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Ensures exactly 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 5rem;
    line-height: 1.1rem;
    /* Adjust based on font size */
}


.thisorthat_selectButton {
    width: 60%;
    height: fit-content;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #666;
    background-color: var(--light_btn_active_color);
    padding: 0.5rem;
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

.thisorthat_selectButton:hover {
    background-color: #A24242;
    color: #fff;
}


/*****************   Reset Confirm Box   ****************/

.thisorthat_confirmBox {
    display: flex;
    font-family: 'Poppins', sans-serif;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.thisorthat_innerConfirmBox {
    display: flex;
    flex-direction: column;
    width: 35%;
    height: 25%;
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.thisorthat_crossIcon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    top: 5px;
    right: 5px;
    text-align: center;
}

.thisorthat_crossIcon:hover {
    color: #A24242;
}

.thisorthat_confirmTitle {
    font-size: 16px;
    top: 5px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.thisorthat_confirmMessage {
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
}

.thisorthat_confirmButtons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.thisorthat_confirmYes {
    height: 1.8rem;
    width: 5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #A24242;
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

.thisorthat_confirmYes:hover {
    background-color: #993534;
}

.thisorthat_confirmNo {
    width: 5rem;
    height: 1.8rem;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    border-radius: 2px;
    background-color: #bbbbbb;
    cursor: pointer;
    border: none;
}

.thisorthat_confirmNo:hover {
    background-color: #a5a5a5;
}

.usersresponse_movablelistitem {
    width: calc(8rem + 3vw);
    height: calc(8rem + 3vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 0.3rem;
    background-color: var(--list_item_bg_color);
    border-radius: 5px;
    margin: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 0.6rem;
}

.usersresponse_listitemimage {
    width: 100%;
    height: 80%;
    border-radius: 3px;
    object-fit: cover;
}

.usersresponse_movablelistitemtext {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thisorthat_selectedGroupItem {
    scale: 1.07;
    box-shadow: 2px 3px 2px 1px rgba(162, 66, 66, 1);
}

#rankresetconfirmmessagebuttoncontainerundo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#rankresetconfirmmessagebuttonundo,
#rankresetconfirmmessagebuttondelete_hascookie {
    color: #FFFFFF;
    background-color: var(--red_btn_color);
    border-radius: var(--btn_radius);
    transition: var(--btn_bgcolor_animation);
    cursor: pointer;
}

.movablelistitem {
    border-radius: 3px;
}

.selectedmovablelistitemthisorthat {
    color: white !important;
    background-color: var(--red_btn_color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selectedmovablelistitemthisorthattext,
.selectedmovablelistitemthisorthatdescription {
    color: white !important;
}

.selectedmovablelistitemthisorthattext:hover {
    color: white;
}

#barpieanalyticsbutton {
    width: 0;
    height: 0;
}

.clickedcontentnumberofpeopleranked:after,
.contentviewnumber:after {
    margin-left: 0 !important;
    background-image: none;
    content: none;
}

#contenthighlightsbar {
    gap: 0 !important;
}

#personalranktoggleid,
#communityranktoggleid {
    border-radius: 3px;
    padding: 0;
}

#selectedlistintrotext {
    border-radius: 3px;
    ;
}

.showmorecontentdescription,
.allcontentsharebutton {
    border-radius: 3px;
}

#commentholder {
    border-radius: 5px;
}

#rankprivacytoggle {
    position: relative;
}

.contentintrothumbcontainer {
    border-radius: 5px;
}

#suggestionsholder {
    padding-bottom: 3.75rem;
}

.suggestionsfooter {
    height: 4.3rem;
}

.postcommenttext {
    min-height: 40px;
}

#commentssection {
    gap: 0;
}

#commentsectionheaderwrapper {
    margin: 0.625rem 0;
}

#analyticspopupcontent,
#showanalytics,
#rmlline {
    height: 100%;
}

@media only screen and (max-width: 1180px) {
    #container {
        grid-template-columns: 1fr;
    }
}



@media only screen and (max-width: 720px) {
    #introimageformobile {
        display: block;
    }


    #selectedlistintrotext {
        display: none;
    }

    #communityranktoggleimage {
        border-radius: 5%;
    }

    #personalranktoggleimage {
        border-radius: 5%;
    }


    .selectedcommunityranktoggle,
    .selectedpersonalranktoggle {
        display: block;
    }


    .thisorthat_innerConfirmBox {
        width: 60%;
        height: fit-content;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f4f4f4;
        border-radius: 3px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .contentintroductionthumb {
        width: auto;
    }

    .contentsharenumber {
        display: block !important;
    }

    #listintro {
        flex-direction: row;
        left: 40px;
    }

    #listinstructions {
        left: 40px;
        width: calc(100% - 130px);
    }

    #personalranktoggleid,
    #communityranktoggleid {
        display: block !important;
    }
    #personalranktoggleid{
        margin-left: auto;
    }
}

@media only screen and (max-width: 425px) {
    .thisorthat_innerConfirmBox {
        width: 100%;
        height: fit-content;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f4f4f4;
        border-radius: 3px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .thisorthat_groupInner {
        width: 100%;
        gap: 1rem;
    }

    .thisorthat_itemContainer {
        width: fit-content;
        height: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .thisorthat_groupItem {
        width: 10rem;
        height: 12rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .thisorthat_selectButton {
        width: 100%;
        height: 30px;
        background-color: var(--light_btn_color);
        border-radius: var(--btn_radius);
        transition: var(--btn_bgcolor_animation);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .thisorthat_selectButton:hover {
        background-color: var(--light_btn_hover_color);
    }
}

/* Disable the drag-rotate visual effect on movablelist items */
#movablelist .ui-sortable-helper,
#movablelist .uisortablehelperrotateback {
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

/* Average Rank Percentage Bar & Text for This or That */
#movablelist .movablelistitem,
#movablelist .selectedmovablelistitem,
#cloned_items .movablelistitem,
#cloned_items .selectedmovablelistitem {
    position: relative;
    overflow: hidden;
}

#movablelist .movablelistitem a,
#cloned_items .movablelistitem a {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr 45px;
    grid-template-rows: 34px 1fr;
    column-gap: 5px;
    align-items: baseline;
}

#movablelist .movablelistitem a:has(>.descriptioninitem),
#cloned_items .movablelistitem a:has(>.descriptioninitem) {
    grid-template-rows: 28px 1fr;
}

#movablelist .selectedmovablelistitem,
#cloned_items .selectedmovablelistitem {
    grid-template-columns: 50px 1fr 45px;
    background-color: #fef3f3;
    -webkit-box-shadow: #A24242 0 0 0 2px, #cfcfcf 0 0 7px;
    -moz-box-shadow: #A24242 0 0 0 2px, #cfcfcf 0 0 7px;
    box-shadow: #A24242 0 0 0 2px, #cfcfcf 0 0 7px;
    transition: box-shadow 0.2s ease-in-out;
}

#movablelist .selectedmovablelistitem #selectedmovablelistitemtext,
#movablelist .selectedmovablelistitem #scrollingselectedmovableitemtext,
#movablelist .selectedmovablelistitem .polled_percentage_text,
#movablelist .selectedmovablelistitem .descriptioninitem,
#cloned_items .selectedmovablelistitem #selectedmovablelistitemtext,
#cloned_items .selectedmovablelistitem #scrollingselectedmovableitemtext,
#cloned_items .selectedmovablelistitem .polled_percentage_text,
#cloned_items .selectedmovablelistitem .descriptioninitem {
    color: #A24242 !important;
}

#movablelist .polled_percentage_bar,
#movablelist .polled_percentage_bar_with_description,
#cloned_items .polled_percentage_bar,
#cloned_items .polled_percentage_bar_with_description {
    position: absolute;
    top: 0;
    left: 50px;
    width: calc(100% - 50px);
    height: 50px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    border-radius: 0 var(--card_radius_half, 4px) var(--card_radius_half, 4px) 0;
}

#movablelist .ui-progressbar-value,
#cloned_items .ui-progressbar-value {
    height: 100%;
    background-color: #8EC5FC;
    background-image: linear-gradient(-45deg, #c6e3ff 0%, #ead9fb 100%);
    background-size: 400% 400%;
    animation: progressbaranimation 5s ease infinite;
    transition: width 0.4s ease;
}

#movablelist .selectedmovablelistitem .ui-progressbar-value,
#cloned_items .selectedmovablelistitem .ui-progressbar-value {
    background-color: #ECD9D9;
    background-image: linear-gradient(-45deg, #DAB3B3 0%, #ECD9D9 100%);
}

#movablelist h2,
#movablelist p,
#movablelist a,
#cloned_items h2,
#cloned_items p,
#cloned_items a {
    position: relative;
    z-index: 1;
}

#movablelist .listitemimage,
#cloned_items .listitemimage {
    position: relative;
    z-index: 2;
}

#movablelist .votingbtnholder,
#cloned_items .votingbtnholder {
    position: absolute;
    width: 48px;
    height: 50px;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

#movablelist .votingbtnholderinner,
#cloned_items .votingbtnholderinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#movablelist .polled_percentage_text,
#movablelist .polled_percentage_text_with_description,
#cloned_items .polled_percentage_text,
#cloned_items .polled_percentage_text_with_description {
    position: static;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #444444;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

#ranksubmitbutton:disabled {
    background-color: #a0a0a0 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
}

#ranksubmitbutton:disabled:hover {
    background-color: #a0a0a0 !important;
    cursor: not-allowed !important;
}

.norelatedlisttitle,
.relatedliholder {
    border-radius: 5px;
}

.relatedlisttitle {
    border-radius: 3px;
}

.movablelistitem,
.movablepollitem {
    padding-right: 0;
}

#popupmessagetext {
    margin-top: 0;
    margin-bottom: 1rem;
}

#galleryimageonegetty {
    height: 100% !important;
}