.s2s{
    width: 100%;
}

.s2s .top {
    display: block;
}

.s2s .top .action .chathistory {
    display: inline-block;
    margin-left: 20px;
    vertical-align: top;
}

.s2s .top .action .chathistory .desc {
    display: block;
    font-size: small;
    color: gray;
}
.s2s .top .setting {
    position: absolute;
    top: 20px;
    right: 70px;
}

.s2s .chatarea {
    display: inline-block;
    width: 100%;
    margin: 1%;
    padding: 10px;
    vertical-align: top;
    height: 600px;
    background-color: #f5f4f4;
    overflow-y: auto;
}
.s2s .events {
    display: inline-block;
    width: 100%;
    margin: 1%;
    padding: 10px;
    vertical-align: top;
    height: 600px;
    overflow-y: auto;
    background-color: #f5f4f4;
}

.s2s .chatarea .item { position: relative; width: 100%; padding: 10px; overflow: hidden; }
.s2s .chatarea .item .user { 
    display: block; 
    float: left; 
    text-align: left; 
    background-color: #b1dafc; 
    width: 40%; 
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}
.s2s .chatarea .item .bot { 
    display: block; 
    float: right; 
    text-align: left; 
    background-color: #bbdfbc; 
    width: 40%; 
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.s2s .chatarea .loading-bubble {
    background-color: #bbdfbc; 
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: 5px;
    position: relative;
    float: right;
}

.s2s .chatarea .loading-dots {
    display: inline-block;
}

.s2s .chatarea .loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.s2s .chatarea .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.s2s .chatarea .loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.s2s .chatarea .endbar {
    display: block;
}
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.s2s .events .event-in {
    position: relative;
    display: inline-block;
    padding: 10px;
    color: white;
    cursor: pointer;
    background-color: #4CAF50; 
    border-radius: 10px;
    width: 60%;
    margin: 5px;
    font-weight: bold;
    float: right;
}
.s2s .events .event-out {
    position: relative;
    display: inline-block;
    padding: 10px;
    background-color: #277aee; 
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
    width: 60%;
    margin: 5px;
}
.s2s .events .event-tool {
    position: relative;
    display: inline-block;
    padding: 10px;
    background-color: #ee6927; 
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
    width: 60%;
    margin: 5px;
    font-weight: bold;
    float: right;
}
.s2s .events .event-int {
    position: relative;
    display: inline-block;
    padding: 10px;
    background-color: #cc7b01; 
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
    width: 70%;
    margin-left: 5px;
    margin-right: 10%;
    margin-bottom: 5px;
}
.s2s .events .tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px;
    white-space: pre-wrap;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}
.eventdetail {
    overflow: auto;
}