#chat_img{
    width: 100px;
}

.chat_icon{
    position: fixed;
    bottom: 2%;
    right: -2%;
    z-index: 4015;
    width: 10%;
    direction: ltr;
}

#unread_msg{
    width: 30px;
    background-color: #121212;
    height: 30px;
    border-radius: 50%;
    right: 5%;
    margin-bottom: -15px;
    z-index: 5000;
    color: #f0b90b;
    text-align: center;
    position: relative;
    padding: 5px 2px;
    border: 0.5px solid #f0b90b;
    display: none;
}

.chat_icon:hover , .backup_name:hover{
    cursor: pointer;
}

#live_chat_container{
    width: 400px;
    height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    bottom: 0;
    right: 1%;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

.logo_header {
    padding: 20px;
    background-color: #f5c33c;
    color: #535353;
    text-shadow: 0px 2px 4px grey;
    font-weight: bold;
    width: 400px;
    height: 60px;
    display: flex;
    position: fixed;
    direction: ltr;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.logo_text{
    font-size: 15pt;
    float: left;
    margin: 0px auto;
    line-height: 15px;
}

#close_chat{
    color: aliceblue;
}

.main_section{
    background-color: #f1f1f1;
    padding: 60px 20px 20px;
    height: 500px;
    direction: ltr;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.backup_name{
    color: #2b455d;
    font-size: 18pt;
    text-align: center;
    background-color: white;
    margin: 15px auto;
    border-radius: 25px;
    line-height: 50px;
    box-shadow: 3px 6px 14px 2px grey;
}

.chat-box{
    display: none;
}

.guest_inp{
    width: 80%;
    margin: 50px auto 0px;
    height: 50px;
    padding: 15px;
    border: none;
    border-radius: 25px;
    text-align: center;
    font-size: 14pt;
    box-shadow: 3px 6px 14px 2px grey;
}

#guest_name{
    margin: 30px auto;
}

#guest_submit , #submit_mail ,#submit_name{
    display: block;
    margin: 20px auto;
    width: 130px;
    background-color: #f5c33c;
    color: #3c3b3b;
    font-weight: bold;
    font-size: 14pt;
    box-shadow: 3px 6px 14px 2px grey;
}

#chat_textarea{
    position: fixed;
    bottom: 0%;
    right: 1%;
    width: 398px;
    resize: none;
    padding: 5px;
    font-size: 13pt;
    border: none;
    text-align: left;
    background-color: #e1e1e1;
    box-shadow: 0px 1px 1px 2px #496a8a;
}

button:focus {
    outline: none !important;
    outline: none !important;
}

:focus {
    outline: none !important;
}

.recieved_msg{
    width: fit-content;
    background-color: #cacaca;
    color: #3c3b3b;
    text-shadow: 2px 0px 4px #3c3b3b;
    box-shadow: 3px 2px 6px grey;
    border-radius: 10px;
    padding: 10px;
    text-align: initial;
    word-break: break-word;
    margin: 5px 0;
    font-size: 13pt;
}

#text_msg{
    height: 352px;
    overflow-y: scroll;
}

.sent_msg{
    width: fit-content;
    border-radius: 10px;
    padding: 10px;
    text-align: initial;
    color: #535353;
    text-shadow: 0px 2px 4px grey;
    box-shadow: -5px 2px 6px grey;
    word-break: break-word;
    background-color: #f5c33c;
    margin: 5px 0;
    font-size: 13pt;
}

::placeholder{
    direction: rtl;
}

.text_row{
    width: 100%;
    display: inline-block;
}

.text_user{
    text-align: right;
    direction: rtl;
}

.date {
    margin-bottom: 3px;
    text-align: right;
    padding: 0px 5px;
    color: #636363;
    font-size: 9px;
}

.date-right{
    display: flex;
}

.datetime{
    text-align: center;
}

::-webkit-scrollbar {
    display: none;
}

#element::-webkit-scrollbar {
    display: none;
}

.tick{
    position: absolute;
    margin-top: 5%;
    width: 10%;
    right: 30px;
    display: block;
}

#logo_img{
    width: 20px;
}

#header_name{
    margin-right: 20px;
    padding-top: 4px;
}

#crypto{
    padding-left: 10px;
}

#backup_list{
    padding: 60px 20px 20px;
}


/* ////////////////////////media////////////////////// */

@media (min-width: 300px) and (max-width: 1000px){

    @media (min-width: 300px) and (max-width: 359px){
        #chat_img{
            width: 200%;
        }
        .chat_icon{
            right: 18%;
        }
    }

    @media (min-width: 360px) and (max-width: 449px){
        #chat_img{
            width: 200%;
        }
        .chat_icon{
            right: 18%;
        }
    }

    @media (min-width: 450px) and (max-width: 599px){

        .chat_icon{
            right: 13%;
        }
    }

    @media (min-width: 600px) and (max-width: 800px){

        .chat_icon{
            right: 7%;
        }
    }

    @media (min-width: 801px) and (max-width: 1000px){

        .chat_icon{
            right: 4%;
        }
    }
    #live_chat_container{
        width: 320px;
        right: 0%;
    }

    .logo_header{
        width: 320px;
        font-size: 12px;
    }

    .logo_text{
        font-size: 12px;
    }

    #close_chat{
        margin-right: -8px;
        margin-top: -6px;
    }

    #chat_textarea{
        right: 0%;
        width: 320px;
    }

    .main_section{
        padding: 60px 10px 20px;
    }

    .chat_icon{
        text-align: right;
    }
}

@media (min-height: 320px) and (max-height: 500px){
    #live_chat_container{
        height:320px;
    }

    #chat_textarea{
        height: 50px;
    }

    #text_msg{
        height: 210px;
    }
}

@media (min-width: 1001px) and (max-width: 1300px){

    .chat_icon{
        right: 0%;
    }
}

