body {
    max-width: 100%;
    overflow-x: hidden !important;
}

#listintro {
    grid-template-columns: none;
}

#contentholder {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden !important;
}

#listholderwrapper {
    margin: 0;
}

#itemcontent, #listholderwrapper, #commentholder {
    width: 100%;
}

#contenttitlebarwide {
    width: 100%;
    margin-bottom: 10px;
}

.allcontentsharebutton {
    width: auto;
}

.contentintrodescriptioncontainer {
    width: 100%;
    margin-bottom: 10px;
}

.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;
}

#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: 0 0 5px rgba(0, 0, 0, 0.5);
    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: 50%;
    height: 1.8rem;
    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;
}

.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;
}


@media only screen and (max-width: 1180px) {
    #container {
        grid-template-columns: 1fr;
    }
}


@media only screen and (max-width: 768px) {
    #introimageformobile {
        display: block;
    }


    #selectedlistintrotext {
        display: none;
    }

    #communityranktoggleimage {
        background-color: var(--list_item_bg_color);
        border-radius: 5%;
    }

    #personalranktoggleimage {
        background-color: var(--list_item_bg_color);
        border-radius: 5%;
    }


    .selectedcommunityranktoggle, .selectedpersonalranktoggle {
        display: none !important;
    }


    .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);
    }


}

@media only screen and (max-width: 720px) {
    .contentintroductionthumb {
        width: 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);
    }
}
