@import url("https://fonts.googleapis.com/css?family=Raleway|Ubuntu&display=swap");
body {
    background: white; /*#062202*/
    padding: 0;
    margin: 0;
    font-family: Raleway;
}
.chat-box {
    height: 60%;
    width: 400px;
    position: fixed;
    margin: 0 auto;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    z-index: 15;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.005);
    right: 0;
    top: 250px;
    margin: 15px;
    background: #fff;
    border-radius: 15px;
    visibility: hidden;
    padding: 20px;
    border:  black 2px solid;
    &-header {
        height: 8%;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        display: flex;
        font-size: 14px;
        padding: 0.5em 0;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2),
            0 -1px 10px rgba(172, 54, 195, 0.3);
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.025);
        & h3 {
            font-family: ubuntu;
            font-weight: 400;
            float: left;
            position: absolute;
            left: 25px;
        }
        & p {
            float: right;
            position: absolute;
            right: 16px;
            cursor: pointer;
            height: 50px;
            width: 50px;
            text-align: center;
            line-height: 3.25;
            margin: 0;
        }
    }
    &-body {
        height: 75%;
        background: #f8f8f8;
        overflow-y: scroll;
        padding: 12px;
        &-send {
            width: 250px;
            float: right;
            background: white;
            padding: 10px 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
            margin-bottom: 14px;
            & p {
                margin: 0;
                color: #444;
                font-size: 14px;
                margin-bottom: 0.25rem;
            }
            & span {
                float: right;
                color: #777;
                font-size: 10px;
            }
        }
        &-receive {
            width: 250px;
            float: left;
            background: white;
            padding: 10px 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
            margin-bottom: 14px;
            & p {
                margin: 0;
                color: #444;
                font-size: 14px;
                margin-bottom: 0.25rem;
            }
            & span {
                float: right;
                color: #777;
                font-size: 10px;
            }
        }
        &::-webkit-scrollbar {
            width: 5px;
            opacity: 0;
        }
    }
    &-footer {
        position: relative;
        display: flex;
        & button {
            border: none;
            padding: 16px;
            font-size: 14px;
            background: white;
            cursor: pointer;
            &:focus {
                outline: none;
            }
        }
        & input {
            padding: 10px;
            border: none;
            border-radius: 50px;
            background: whitesmoke;
            margin: 10px;
            font-family: ubuntu;
            font-weight: 600;
            color: #444;
            width: 280px;
            &:focus {
                outline: none;
            }
        }
        & .send {
            vertical-align: middle;
            align-items: center;
            justify-content: center;
            transform: translate(0px, 20px);
            cursor: pointer;
        }
    }
}
.chat-button {
    padding: 25px 16px;
    background: #062202;
    width: 150px;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 15px;
    font-weight: 500;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;
    box-shadow: 0 2px 15px rgba(#062202, 0.21);
    cursor: pointer;
    & span {
        &::before {
            content: "";
            height: 15px;
            width: 15px;
            background: #47cf73;
            position: absolute;
            transform: translate(0, -7px);
            border-radius: 15px;
        }
        &::after {
            content: "Message Us";
            font-size: 14px;
            color: white;
            position: absolute;
            left: 50px;
            top: 18px;
        }
    }
}

.chat-button:hover {
    background-color: #63ce33;
    cursor: pointer;
}

.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;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;
}
.modal-close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}
.close-button:hover {
    background-color: darkgray;
}
.show-modal {
    opacity: 1;
    visibility: hidden;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
    z-index: 30;
}
/*My code*/


.del {
    display: flex;
    justify-content: end;
    cursor: pointer;
}

.chat-box-body-send {
    border: #30880d 2px solid;
    border-radius: 0px 25px 25px 25px;
    align-self: flex-end;
    background-color: #d1ffd6;
    text-align: left;
    margin: 10px;
    font-weight: 600;
    width: 80%;
}


.chat-box-body-send p {
    margin: 10px 2px 10px 10px;
    font-weight: 600;
}

.chat-box-body-receive {
    border: #30880d 2px solid;
    border-radius: 25px 0px 25px 25px;
    align-self: flex-end;
    background-color: #d1ffd6;
    text-align: left;
    margin: 10px;
    font-weight: 600;
    width: fit-content;
}

.chat-box-body-receive p {
    margin: 10px 2px 10px 10px;
    font-weight: 600;
    width: fit-content;
}

.message-send {
    display: flex;
    align-items: center;
    
    
}

.message-receive {
    display: flex;
    align-items: center;
    justify-content: end;
    
}

.message-send img {
    width: 60px;
    height: 55px ;
}

.message-receive img {
    width: 58px;
    height: 50px ;
}

footer {
    position: absolute;
    bottom: 15px;
    width: 90%;
    display: flex;
    justify-content: space-between;

}

footer input {
    border: #30880d 2px solid;
    background-color: #d1ffd6;
    text-align: left;
    font-weight: 600;
    outline: none;

}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
     /* Adjust color as needed */
}

footer input[type='text'] {
    flex-grow: 1;
    border-radius: 20px; /* Rounded corners */
    border: none;
    padding: 0px 6px; /* Adjust padding as needed */
    margin-right: 10px; /* Space between input and buttons */
    height: 45px;
    font-size: 16px;
    font-size: Raleway;
    margin: 0px 10px;
}

button#send {
    /* Add a border *//* Set the text color *//* Adjust the font size */
    cursor: pointer; /* Change the cursor on hover */
    width: 35px;
    height: 30px;
    position: relative;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: white;
}

button#trash {
    /* Add a border *//* Set the text color *//* Adjust the font size */
    cursor: pointer; /* Change the cursor on hover */
    width: 35px;
    height: 30px;
    position: relative;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: white;
}

button#send:hover{
    /* Add a border *//* Set the text color *//* Adjust the font size */
    cursor: pointer; /* Change the cursor on hover */
    width: 40px;
    height: 40px;
    position: relative;
    padding: 10px 20px;
    background-color: #63ce33;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

button#trash:hover{
    /* Add a border *//* Set the text color *//* Adjust the font size */
   /* Add a border *//* Set the text color *//* Adjust the font size */
   cursor: pointer; /* Change the cursor on hover */
   width: 40px;
   height: 40px;
   position: relative;
   padding: 10px 20px;
   background-color: #ec5a5a;
   border: none;
   border-radius: 50%;
   cursor: pointer;
}


button#trash i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

button#send i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.chat-box-body {
    overflow: auto;
    max-height: 65%;
}




  
@media screen and(max-width: 450px) {
    .chat-box {
        min-width: 100% !important;
    }
}