/* 展示区 */
.show {
    height: 90%;
    overflow: hidden;
}

.send {
    height: 2em;
}

.danmu {
    transition: all;
    transition-duration: 3000ms;
    justify-content: space-around;
    transition-timing-function: cubic-bezier(0.37, 0.36, 0.59, 0.58);
    /* 控制滑动用 */
    margin-left: 100%;
}

.danmu>div {
    /* 每行 */
    display: flex;
    /* flex-grow: 1; */
    margin-top: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.danmu p {
    /* 弹幕<p> */
    /* flex-grow: 1; */
    text-align: center;
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 1em;
    white-space: nowrap;
    padding: 0 1.5em;
    font-size: small;
}

.userSentContent {
    font-size: small;
}

.danmu .spaceLeft {
    /* 弹幕交错 */
    margin-left: 5em;
}

.avoidShake {
    margin-left: 0em;
    width: 100%;

}

.avoidShake p {
    opacity: 0%;
    white-space: nowrap;
    margin-left: 25em;
}

/* 发送区 */
input {
    width: 80%;
    /* display: flex; */
}

.send-btn {
    width: 20%;
    padding: 0;
    /* margin-top: 0; */

    /* 由媒体查询决定 */
    /* font-size: 1em; */

    cursor: pointer;
    text-align: center;
}

/* 装饰输入框 */
.input {
    line-height: 28px;
    border: 2px solid transparent;
    border-bottom-color: #777;
    padding: .2rem 0;
    outline: none;
    background-color: transparent;
    color: #0d0c22;
    transition: .3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.input:focus,
input:hover {
    outline: none;
    padding: .2rem 1rem;
    border-radius: 1rem;
    border-color: #7a9cc6;
}

.input::-webkit-input-placeholder {
    color: #777;
}

.input::-moz-placeholder {
    color: #777;
}

.input:-ms-input-placeholder {
    color: #777;
}

.input::-ms-input-placeholder {
    color: #777;
}

.input::placeholder {
    color: #777;
}

.input:focus::-webkit-input-placeholder {
    opacity: 0;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
}

.input:focus::-moz-placeholder {
    opacity: 0;
    -moz-transition: opacity .3s;
    transition: opacity .3s;
}

.input:focus:-ms-input-placeholder {
    opacity: 0;
    -ms-transition: opacity .3s;
    transition: opacity .3s;
}

.input:focus::-ms-input-placeholder {
    opacity: 0;
    -ms-transition: opacity .3s;
    transition: opacity .3s;
}

.input:focus::placeholder {
    opacity: 0;
    transition: opacity .3s;
}

/* 装饰发送按钮 */
.send-btn {
    position: relative;
    display: inline-block;
    border: none;
    /* font-size: 16px; */
    background-color: inherit;
    border-radius: 3em;
    font-weight: 600;
    color: #ffffff40;
    box-shadow: 0 0 0 2px #ffffff20;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.send-btn span:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #2196F3;
    border-radius: 50%;
    opacity: 70%;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.send-btn span:first-child {
    position: relative;
    z-index: 1;
}

.send-btn:hover {
    box-shadow: 0 0 0 5px #2195f360;
    color: #ffffff;
}

.send-btn:active {
    scale: 0.95;
}

.send-btn:hover span:last-child {
    width: 150px;
    height: 150px;
    opacity: 1;
}

.userSent {
    margin-left: -20%;
}

/* 防止发送弹幕突兀 */
aside {
    transition: height .5s;
}