
body {
    font-family: 'Roboto', sans-serif, Calibri;
    background: lightblue url("https://i.pinimg.com/originals/3c/24/46/3c24462450c2a902bf7e18f3d9aada81.jpg");
    background-size: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /*height: 100vh;*/
    color: #ffffff;
    overflow: hidden;
    margin: 0;
    max-width: 1000px;
}

#logo{
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    width: 60px;
    height: auto;
}
#logo img{
    width: 100%;
    height: auto;
}

#messenger{
    position: absolute;
    top: 2em;
    left: 50%;
    -webkit-transform: translate(-50%);
    -moz-transform: translate(-50%);
    -ms-transform: translate(-50%);
    -o-transform: translate(-50%);
    transform: translate(-50%);
    margin-left: 0;
    margin-right: 0;
    margin-top: 15px;
    padding: 0;
    min-width: 200px;
    width: 98%;
    max-width: 800px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}
#messages{
    width: 100%;
    height:100%;
    overflow-y: auto;
    border-radius: 5px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #eee;
    background-color: rgba(255,255,255,0.2);
    word-wrap: normal;
    color: #000;
    vertical-align: bottom;

}
#messages::-webkit-scrollbar {
    width: 6px;
    border-radius: 50%;
}
#messages::-webkit-scrollbar-track {
    /*background: #f1f1f1;*/
}
#messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}
#messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.message_bubble{

    clear: both;
    min-width: 1em;
    max-width: 270px;
    border-radius: 20px;
    margin: 10px;
    padding: 5px 8px;
    word-break: break-word;
    overflow: hidden;
    transition: all ease-out 0.5s;

    display: flex;
    flex-direction: row;

}
.squized{
    height: 0;
    width: 0;
    padding: 0;
}
.me{
    text-align: left;
    color: #fff;
    background-color: #5d5;
    float: left;
    border-top-left-radius: 0;
}
.hai{
    text-align: right;
    color: #fff;
    background-color: #55f;
    float: right;
    margin-bottom: 1.5em;
    border-bottom-right-radius: 0;
}
#hai_status{
    color:#ccc;
    position: absolute;
    display:none;
    padding-left: 0.5em;
    padding-bottom: 1rem;
    align-items: center;
    text-align: center;
    bottom: 0.5em;
    right: -1rem;
    height: 1rem;
    margin-right: 1em;
    font-size: 2rem;
    font-weight: 600;
}

#hai_status div{
    display: inline-flex;
}

#hai_status div:nth-child(1){
    animation: moveDots infinite 2s ease;
    animation-delay: 0.2s;
}
#hai_status div:nth-child(2){
    animation: moveDots infinite 2s ease;
    animation-delay: 0.4s;
}
#hai_status div:nth-child(3){
    animation: moveDots infinite 2s ease;
    animation-delay: 0.6s;
}

@keyframes moveDots {
    0% {
        transform: translate(0,0);
    }
    30% {
        transform: translate(0,-10px);
    }
    50% {
        transform: translate(0,0);
    }
}


.rate{
    display:flex;
    z-index: 1000;
    left: -50px;
    padding: 5px;
    margin-right: 5px;
}
.select_rate{
    width: 3em;
    text-align: center;
    opacity: 0.3;
    background: none;
    color:#fff;
    padding: 5px;
    border-radius: 5px;
    transition: all ease 0.5s;
}

.select_rate:hover{
    opacity: 1;
}

.select_rate option{
    background: #55f;
}

#welcome{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2px);
    /*background-color: #ccf;*/
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 1px solid white;
    margin: 0;
    padding: 10px 0 10px 0;
    text-align: right;
    /*padding-right: 10px;*/
}


#insert{
    display: flex;
    flex-direction: row;
    margin-top:10px;
}
form input {
    display: inline-block;
    height: 2em;
    width: 100%;
    border-radius:20px;
    margin-right: 10px;
    padding: 3px 10px;
}
form input:focus{
    outline: none;
    /*background-color: #ddffdd;*/
}
form button{
    display: inline-block;
    /*height: 2em;*/
    padding: 6px 9px;
    /*width: 20%;*/

    border-radius: 50%;
    font-size: 110%;
}
@media only screen and (max-width: 700px) {
    *{
        /*font-size: 105%;*/
    }
    body{

    }
    form input{
        height: 2.5em;
    }
    #messenger{
        height: 90%;
    }

}

