@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;1,300&display=swap');



button {
    border: none;
    outline: none;
    cursor: pointer;
}

/* section {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 0 1rem;
} */


p {
    margin-top: 0;
    margin-bottom: 0rem;

}

.cardContainerChat {
    padding-bottom: 5px;
    width: 224px;
}

.col p {
    margin-bottom: 0rem;
}


.sidebarChat {
    display: none;
    position: fixed;
    right: 9.8em;
    bottom: 14%;
    height: 400px;
    width: 252px;
    background-color: white;
    /* display: flex; */
    flex-direction: column;
    overflow-y: auto;
    justify-content: space-between;
    padding: 0.75rem;
    box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    z-index: 4;
    text-align: center;
    overflow-x: hidden;
}

.sidebarChat .card-userChat {
    --card-padding: 0.75rem;
    --card-bg: white;
    --card-radius: 15px;
    box-sizing: border-box;
    padding: var(--card-padding);
    background: var(--card-bg);
    border-radius: var(--card-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    border: 1px solid rgba(0, 0, 0, 0.125);

    overflow: hidden;
    width: 224px;
    height: 48px;
}


.sidebarChat .card-userChat:hover {
    --card-bg: #e3e6e8 !important;
}

.title {
    position: relative;
    top: 8%;
}


.chat-btn {
    position: fixed;
    right: 120px;
    top: 91%;
    background: dodgerblue;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s;
    box-shadow: 0 5px 5px rgb(0 0 0 / 40%);
    font-size: 2em;
    z-index: 5;
}

.chat-btn:hover,
.submit:hover {
    opacity: 5;
}

.chat-popup {
    display: none;
    position: absolute;
    bottom: 14%;
    right: 25.6em;
    height: 400px;
    width: 320px;
    background-color: white;
    /* display: flex; */
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    z-index: 5;
}

.show {
    display: flex;
}

.chat-area {
    display: none;
    height: 84%;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-header {
    display: none;
    overflow: hidden;
    background-color: #c6cdd2;
    position: absolute;
    color: black;
    top: 0;
    right: 0;
    width: 100%;
    height: 30px;
    text-align: center;
    margin-bottom: 5px;
    border-radius: 10px;
    z-index: 5;
}

.iconChat {
    margin-left: 26px;
    width: 55px;
}

.logoChat {

    user-select: none;
    font-weight: bolder;
    padding: 10px;
    font-size: 20px;
    background-color: #ffffff;
}


.hi {
    top: 2em;
    position: relative;
    text-align: center;
    font-size: 20px;
}


.form-group-chat {
    margin-bottom: unset !important;
    margin-top: 7px !important;
    margin-bottom: 20px !important;
    margin-right: 7px;
    transition: 0 !important;
    width: 100%;
}


.badge {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #49a4fe;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 2px;
    right: 0px;
    cursor: pointer;
    font-size: 19px;
    z-index: 5;
}

.searchBoxChat {
    width: 224px;
}

.input-area {
    display: none;
    position: absolute;

    justify-content: center;
    top: 88%;
    width: 100%;
    padding-left: 5px;
    right: 0;
}

input[type="text"] {
    width: 100%;
    border: 1px solid #ccc;
    font-size: 15px;
    border-radius: 5px;
    height: 2.2rem;
}


.submit {
    padding: 0.28rem 0rem;
    margin-left: 0.5rem;
    background-color: transparent;
    border-radius: 18px 18px 0 18px;
    color: #0088c0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding-right: 5px;
    font-size: 2em;
    height: 32px;
}


.income-msg {
    display: flex;
    align-items: center;
}

.income-msg .msg {
    background-color: dodgerblue;
    color: white;
    padding: 0.5rem;
    border-radius: 25px;
    margin-left: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    margin: 0.2rem;

}

.out-msg {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.out-msg .my-msg {
    display: flex;
    justify-content: flex-end;
    margin: 0.2rem;
    padding: 0.5rem;
    background-color: #ddd;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    word-break: break-all;
}


@media only screen and (max-device-width: 600px) and (orientation: portrait) {


    .chat-popup {

        /* width: 80vw; */
        display: none;
        position: fixed;
        bottom: 16%;
        right: 26.8em;
        height: 605px;
        width: 457px;
        background-color: white;
        /* display: flex; */
        flex-direction: column;
        justify-content: space-between;
        padding: 0.75rem;
        box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.4);
        border-radius: 10px;
        z-index: 5;
    }

    .sidebarChat {
        display: none;
        position: fixed;
        right: 6.800000000000001em;
        bottom: 16%;
        height: 599px;
        width: 319px;
        background-color: white;
        /* display: flex; */
        flex-direction: column;
        overflow-y: auto;
        justify-content: space-between;
        padding: 0.75rem;
        box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.4);
        border-radius: 10px;
        z-index: 4;
        text-align: center;
        overflow-x: hidden;
    }

    .sidebarChat h5 {
        font-size: 28px;
    }

    .sidebarChat .card-userChat {
        --card-padding: 0.75rem;
        --card-bg: white;
        --card-radius: 15px;
        box-sizing: border-box;
        padding: var(--card-padding);
        background: var(--card-bg);
        border-radius: var(--card-radius);
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        word-wrap: break-word;
        border: 1px solid rgba(0, 0, 0, 0.125);

        overflow: hidden;
        width: 300px;
        height: 60px;

        font-size: 26px;
    }

    .chat-header {
        display: none;
        overflow: hidden;
        background-color: #c6cdd2;
        position: absolute;
        color: black;
        top: 0;
        right: 0;
        width: 100%;
        height: 58px;
        text-align: center;
        margin-bottom: 20px;
        border-radius: 10px;
        z-index: 5;

    }

    .title {
        top: 20%;
        position: relative;
        font-size: 30px;
    }

    .cardContainerChat {
        padding-bottom: 10px;
        width: 300px;
    }


    .chat-btn {
        position: fixed;
        right: 30px;
        top: 83%;
        background: dodgerblue;
        color: white;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        opacity: 0.8;
        transition: opacity 0.3s;
        box-shadow: 0 5px 5px rgb(0 0 0 / 40%);
        font-size: 3.5em;
        z-index: 5;
    }


    .iconChat {
        margin-left: 65px;
        width: 55px;
    }

    .searchBoxChat {
        width: 100%;
    }

    input[type="text"] {
        width: 100%;
        border: 1px solid #ccc;
        font-size: 26px;
        border-radius: 5px;
        height: 3rem;
    }

    .hi {
        top: 2em;
        position: relative;
        text-align: center;
        font-size: 28px;
    }

    .input-area {
        display: none;
        position: absolute;
        justify-content: center;
        top: 90%;
        width: 100%;
        padding-left: 5px;
        right: 0;
        font-size: 1.5em;
    }

    .chat-area {
        display: none;
        height: 88%;
        overflow-y: auto;
        overflow-x: hidden;
        top: 50px;
        padding-top: 21px;
        font-size: 26px;
    }


    .badge {
        position: absolute;
        width: 45px;
        height: 45px;
        background-color: #49a4fe;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 5px;
        right: 5px;
        cursor: pointer;
        font-size: 26px;
        z-index: 5;
    }
}

@media only screen and (min-device-width: 600px) and (orientation: landscape) {
    .chat-btn {
        position: fixed;
        right: 116px;
        top: 85%;
        background: dodgerblue;
        color: white;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        opacity: 0.8;
        transition: opacity 0.3s;
        box-shadow: 0 5px 5px rgb(0 0 0 / 40%);
        font-size: 45px;
        z-index: 4;
    }
}
