.chatbox__wrapper {
    float:left;
}

.chatbox {
    width: 300px;
    margin: 20px 0px 0px 20px;
}

.chatbox-open {
    display: block;
}

.chatbox-hidden {
    display: none;
}

.chatbox__header {
    position: relative;
    height: 35px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px 20px 0px 0px;
}

.chatbox__closebutton {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 15px;
    height: 25px;
    padding: 10px 10px 0px 10px;
    background: rgba(160, 0, 0, 1);
    border-radius: 0px 20px 0px 0px;
    text-align: center;
}

.chatbox__title {
    padding: 10px;
}

.chatbox__messages {
    background: rgba(0, 0, 0, 0.8);
    height: 330px;
    color: rgba(255, 255, 255, 0.5);
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
}

.chatbox__messages::-webkit-scrollbar {
    width: 10px;
}

.chatbox__messages::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.chatbox__messages::-webkit-scrollbar-thumb {
    background-color: black;
    border: 0px solid;
}

.chatbox__message {
    width: 100%;
    clear: both;
}

.chatbox__message--bounce {
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-animation: bounce 500ms linear both;
    animation: bounce 500ms linear both;
}

.chatbox__message__text {
    border-radius: 20px 20px 20px 0px;
    float: left;
    margin: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.chatbox__message__text--right {
    float: right;
    border-radius: 20px 20px 0px 20px;
    color: #fff;
    background: linear-gradient(120deg, #248A52, #257287);
}


.chatbox__footer {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0px 0px 20px 20px;
    height: 35px;
}

.chatbox__newmessage {
    width: 210px;
    outline: none;
    box-shadow: none;
    border: none;
    margin-left: 20px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0);
}

.chatbox__send {
    border: none;
    color:#fff;
    background: #1d7745;
    border-radius: 10px;
    text-transform: uppercase;
}
