
/* -------------------------------------------------------------------------- */
/*                             COMMUNITY NEW INDEX                            */
/* -------------------------------------------------------------------------- */

/* SweetAlert Custom Styles */
.swal-popup-custom {
    font-family: inherit;
    color: #0B1215;
    width: 500px !important;
    max-width: 90vw !important;
    padding: 2rem !important;
}

.swal-text-custom {
    font-family: inherit;
    color: #0B1215;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.swal-button-custom {
    border-radius: 4px;
    font-weight: 500;
    padding: 12px 24px !important;
    font-size: 14px !important;
    min-width: 120px !important;
}

.swal-title-custom {
    color: #0B1215;
    font-weight: 600;
    font-size: 20px !important;
    margin-bottom: 1rem !important;
}
.community-wrapper {
    display: flex;
    flex-direction: column;
}

.main {
    width: 100%;
    height: auto;
    position: relative;
}



/* -------------------------------------------------------------------------- */
/*                      Background Image & floating card                      */
/* -------------------------------------------------------------------------- */
.background-img {
    width: 60%;
    height: 75vh;
    min-height: 51.5rem;
    background-image: url("https://donotdisturb.leopi.store/caribbean_bluebook/v_2_0/images/community/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
}

.gradient {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 60%, white);
    z-index: 1;
}


/* ------------------------------ floating card ----------------------------- */
.main-card {
    position: absolute;
    width: 35vw;
    height: 20vw;
    left: 60%;
    top: 20%;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 13px;
    z-index: 10;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem;
}

.main-card-small-heading {
    font-weight: 500;
    font-size: 1.4vw;
    /* margin: 2rem 3rem 0rem 3rem; */
}

.main-card-large-heading {
    font-weight: 500;
    font-size: 2.9vw;
    line-height: 120%;
    /* margin: 2rem 3rem 0rem 3rem; */
}

.main-card-button {
    /* width: 21rem;
    height: 4.7rem; */
    border-radius: 7px;
    background-color: var(--orange-color);
    font-weight: 300;
    font-size: 1.2vw;
    /* margin: 7% 7% 0rem 5%; */
    padding: 0.5rem 1rem;
    width: 90%;
}


/* -------------------------------------------------------------------------- */
/*                                Search Modal                                */
/* -------------------------------------------------------------------------- */
.search-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    z-index: 12;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 70%;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;

}

.modal-one-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-bottom: 1em;
    gap: 2%;
}

.close-button {
    float: right;
    width: 2.5em;
    text-align: center;
    cursor: pointer;
    border-radius: 0.5rem;
    font-size: 2.5rem;
    background: var(--primary-color);
    color: var(--white-color);
    align-self: flex-end;
}

.close-button:hover {
    background-color: darkgray;
}

.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.search-section {
    display: flex;
    flex-direction: row;
    width: 70%;
}

.search-button {
    flex: 1;
}

.clear-search {
    padding-top: 5px;
}


/* -------------------------------------------------------------------------- */
/*                              Multi Select List                             */
/* -------------------------------------------------------------------------- */
.multiselect {
    width: 49%;
    position: relative;
    display: inline-block;
}
  
.selectBox {
    position: relative;
}
  
.selectBox select {
    font-weight: bold;
    height: 5rem;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0 5px !important;
    font-size: 1.8rem;
    color: black;
    border-color: var(--gray-color);
}
  
.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
  
.checkboxes {
    display: none;
    border: 1px #dadada solid;
    overflow: auto;
    z-index: 1;
    position: absolute;
    background-color: var(--white-color);
    width: 100%;
    max-height: 10em;
}
  
.checkboxes label {
    display: block;
    font-size: 1.8rem;
    padding: 0.3em;
}

.checkboxes > label > input {
    margin-right: 0.5em;
}
  
.checkboxes label:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#search-button {
    background: var(--primary-color);
    color: var(--white-color);
    width: 100%;
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 2rem;
}

#username {
    height: 5rem;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0 1.5rem;
    font-size: 1.8rem;
    margin-bottom: 1em;
    margin-top: 0.5em;
}

.show {
    display: none !important;
}

.section-padding {
    padding: 2rem;
}


/* -------------------------------------------------------------------------- */
/*                                 SORT DIV                                 */
/* -------------------------------------------------------------------------- */

/* .sort-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end
}

.sort-container {
    width: 20%;
    position: relative;
    margin-right: 2rem;
}

.sort-button {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 7px;
    color: white;
    cursor: pointer;
    padding: 1rem;
}

.sort-button {
    text-align: center;
}

.sort-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 6;
    display: none;
    position: absolute;
    width: 100%;
    right: 0;
    top: 4rem;
    padding: 1rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.sort-dropdown span {
    cursor: pointer;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-color: white;
    width: fit-content;
    font-weight: 400;
    transition: .2s border-color ease-in-out, .2s font-weight ease-in-out;
}

.sort-dropdown span:hover {
    border-color: var(--primary-color);
    font-weight: 700;
}


.toggle-open {
    display: flex;
} */


/* -------------------------------------------------------------------------- */
/*                                 USER CARDS                                 */
/* -------------------------------------------------------------------------- */
.community-cards {
    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem 2rem;
    justify-content: space-evenly;
    margin-top: -9rem;
}

.one-card {
    /* height: 47rem; */
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    /* width: calc(30% - 1.5rem); */
    width: 20%;
}

.card-blue-line {
    background: var(--primary-color);
    border-radius: 13px 0px 0px 13px;
    width: 5%;
}

.card-content {
    width: calc(100% - 2rem);
    padding: 5%;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* -------------------------------- Card top -------------------------------- */
.card-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.card-img {
    width: 9rem;
    height: 9rem;
    min-width: 9rem;
    min-height: 9rem;
    max-width: 9rem;
    max-height: 9rem;
    background-repeat: no-repeat;
    object-fit: cover;
    border-radius: 50%;
}

.card-icons-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-one-icon-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background-size: 3rem 3rem;
    background-repeat: no-repeat;
}

.card-info {
    line-height: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    color: black;
    letter-spacing: 0.205em;
    text-transform: uppercase;
}

/* ------------------------------- Card middle ------------------------------ */
.card-middle {
    display: flex;
    flex-direction: column;
    height: 20rem;
    justify-content: space-between;

}

.card-user-name {
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 99%;
    height: 3rem;
}

.card-line {
    border: 1px solid var(--primary-color);
    width: 89px;
}

.card-user-description {
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 120%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-user-hobbies {
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 133.69%;
}

/* ------------------------------- Card bottom ------------------------------ */
.card-bot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2rem;
}

.card-button {
    width: 50%;
    height: 4.5rem;
    border-radius: 7px;
    font-size: 1.8rem;
    line-height: 33px;
    white-space: nowrap;
}

#card-button-see-more {
    background-color: var(--orange-color);
    font-weight: 300;
    padding: 0.6rem 2rem;
    text-align: center;
    color: black;
}

#card-button-follow {
    background-color: var(--green-btn-color);
    font-weight: 700;
    color: var(--white-color);
}



/* -------------------------------------------------------------------------- */
/*                                 Pagination                                 */
/* -------------------------------------------------------------------------- */
.pagination {
    margin: 5rem 0 9rem 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.pagination-div-previous {
    display: flex;
    justify-content: flex-end;
    width: 2%;
}

.pagination-div-next {
    display: flex;
    justify-content: flex-start;
    width: 2%;
}

.pagination-arrows {
    width: 20px;
    height: 20px;
}
.pagination-div-previous a{
    display: block;
    border: 1px solid var(--primary-color);
    padding: 5px 7px 1px 5px;
    border-radius: 50%;
}
.pagination-div-next a {
    display: block;
    border: 1px solid var(--primary-color);
    padding: 5px 5px 1px 7px;
    border-radius: 50%;
}
.pagination-number {

    color:var(--text-gray-color);
}

/* -------------------------------------------------------------------------- */
/*                                 RESPONSIVE                                 */
/* -------------------------------------------------------------------------- */


@media (min-width: 1250px) and (max-width: 1600px) {
    .one-card {
        width: 25%;
    }
}


@media (min-width: 768px) and (max-width: 1250px) {
    .one-card {
        width: 40%;
    }
}


@media (max-width: 1200px) {

    .background-img {
        width: 80%;
        min-height: 70rem;
    }

    .sort-wrapper {
        justify-content: center;
        align-items: center;
        margin-bottom: 3rem;
    }

    .sort-container {
        width: 90%;
    }

    .sort-button,
    .sort-dropdown {
        right: auto;
    }
}



@media (max-width: 1040px) {

    .main-card {
        left: 9%;
        width: 80%;
        height: 20rem;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem;
    }

    .main-card-large-heading {
        font-weight: 500;
        font-size: 2.5rem;
    }

    .main-card-small-heading {
        font-size: 1.8rem;
        margin: 0 0 0 0;
    }

    .main-card-large-heading {
        font-size: 2.2rem;
        text-align: center;
    }

    .main-card-small-heading {
        font-size: 1.5rem;
        text-align: center;
    }

    .main-card-button {
        font-size: 1.6rem;
        width: 90%;
    }

    .search-button, 
    .clear-search {
        flex: 1;
    }

    .card-img {
        width: 7rem;
        height: 7rem;
        min-width: 7rem;
        min-height: 7rem;
        max-width: 7rem;
        max-height: 7rem;
    }

    .card-icon {
        background-size: 2rem 2rem;
        width: 2rem;
        height: 2rem;
    }

    .card-icons-info {
        gap: 0.2rem;
    }

    .card-info {
        font-size: 1.3rem;
        line-height: 15px;
        font-weight: 400;
    }

    .card-user-name {
        font-size: 1.8rem;
    }

    .card-user-description {
        font-size: 1.6rem;
    }

    .card-user-hobbies {
        font-size: 1.5rem;
    }

    .card-bot {
        gap: 1.5rem;
    }

    .card-button {
        height: 3.5rem;
        font-size: 1.5rem;
    }

    #card-button-see-more {
        padding: 0.2rem;
    }
}



@media (max-width: 768px) {

    .one-card {
        width: 45%;
    }
    .search-section {
        flex-direction: column;
    }
    .main-card-button {
        width: 100%;
    }
    .clear-search {
        text-align: center;
        font-size: 1.3rem;
    }
    .card-content,
    .card-top {
        gap: 1rem;
    }
    
    .card-middle {
        height: 17rem;
    }

    .community-cards {
        margin-top: -7rem;
    }
    
    .background-img {
        width: 100%;
        max-height: 70vh;
    }

    .section-padding {
        padding: 1rem;
    }

    #username,
    .selectBox select,
    .checkbox-label {
        font-size: 1.6rem;
    }

    #search-button {
        font-size: 1.6rem;
    }

    #username {
        margin: 1rem 0rem 0rem 0rem;
    }


    /* ---------------------------------- MODAL --------------------------------- */
    .modal-content {
        width: 90%;
    }

    .modal-one-row {
        flex-direction: column;
        margin-bottom: 0;
        gap: 1rem;
    }

    .search-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .multiselect {
        width: 100%;
    }

    .close-button {
        font-size: 2rem;
    }
}


@media (max-width: 570px) {

    .one-card {
        width: 95%;
    }

    .card-middle {
        height: 20rem;
    }
}