* {
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    
}

.head{
    text-align: center;
    margin-bottom: 3vh;
}
#poem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 65vh;
    padding: 20px;
    border-radius: 12px;
    overflow: hidden;               /* 外层保持不溢出 */
}

#side-button-container {
    width: 8%;
    height: 50%;
    /* background-color: red; */
    position: absolute;
    left: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#feedback-button {
    background-color: transparent;
    color: white;
    border-radius: 10%;
    width: 40px;
    height: 35px;
    font-size: 30px;
    cursor: pointer;
    padding: 0%;
    border: 1px solid transparent;
    padding: 3px 0px 0px 0px;
    /* transition: all 0.3s ease; */
}

#feedback-button:hover {
    background-color: white;
    color: black;
}

#feedback-icon {
    background-color: inherit;
    color: inherit;
}

#feedback-icon:hover {
    background-color: inherit;
    color: inherit;
}


/* 可滚动的内部容器 */
#poem-scroll-wrapper {
    overflow-y: auto;               /* 开启垂直滚动 */
    max-height: 100%;               /* 撑满父容器高度 */
    width: 80%;
    padding-right: 10px;            /* 给滚动条预留空间 */
}

/* 内容样式 */
#poem-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
    text-align: center;
}

#poem-author {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    color: #bbbbbb;
    text-align: center;
}

#poem-content {
    font-size: 18px;
    line-height: 1.8;
    color: #eeeeee;
    text-align: center;
    white-space: pre-wrap;
}

/* 滚动条美化（可选） */
#poem-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}
#poem-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}
#poem-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* 响应式：小屏适配 */
@media (max-width: 600px) {
    #poem-title {
        font-size: 22px;
    }
    #poem-author {
        font-size: 14px;
    }
    #poem-content {
        font-size: 16px;
    }
}


#waiting-container {
    /* background-color: red; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 70vh;
    /* background-color: red; */
    overflow: hidden;
    padding: 5px;
    display: none;
    gap:10px;
}


.dot {
    width: 15px;
    height: 15px;
    background-color: #3498db;
    border-radius: 50%;
    opacity: 0.9;
    animation-name: flash;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 2s;
}

/* 从右到左依次延迟 */
.dot:nth-child(4) { animation-delay: 0s; }
.dot:nth-child(3) { animation-delay: 0.2s; }
.dot:nth-child(2) { animation-delay: 0.4s; }
.dot:nth-child(1) { animation-delay: 0.6s; }

/* 闪动动画 */
@keyframes flash {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.5); }
}

#button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
    flex-direction: row;  /* 默认：横排 */
    gap: 10px;            /* 保证按钮和用户信息有间距 */
}

#connect-button {
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px 15px 10px 15px;
    font-size: 18px;
    cursor: pointer;
    margin: 7px;
    flex-shrink: 0;        /* 防止按钮被压缩 */
}

#connect-button:hover {
    background-color: black;
    border: white 2px solid;
    color: white;
}

#online-count {
    font-size: 15px;
    white-space: nowrap;   /* 不换行，避免被挤变形 */
    flex-shrink: 0;        /* 防止被压缩 */
}

/* 窄屏：改为竖排 */
@media (max-width: 600px) {
    #button-container {
        flex-direction: column;
        gap: 5px;
    }

    #connect-button {
        margin: 5px;  /* 缩小按钮上下边距 */
    }
}

#online-count-number {
    color: lightgreen;
}

#total-user-number {
    color: white;
}

#user-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    /* background-color: white; */
    /* height: 5vh; */
}

/* #login-button {
    font: 18px 'Courier New', Courier, monospace;
    border-radius: 5px;
    cursor: pointer;
} */

#login-button {
    background-color: transparent;
    font-size: 32px;
    color: white;
    cursor: pointer;
    border: none;
}

#login-button:hover {
    background-color: #f7f7f7;
    color: rgb(0, 0, 0);
}

#welcome-message {
    font-size: 16px;
    text-align: center;
    margin-bottom: 4px;
}

#logout-button {
    background-color: transparent;
    font-size: 12px;
    color: lightgray;
    cursor: pointer;
    border: none;
}

#logout-button:hover {
    background-color: #f7f7f7;
    color: rgb(0, 0, 0);
}

