/* joke-egg.css */
.joke {
    color:#242b58;
    cursor: pointer;
    padding: 0 5px;
}

.joke-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #12152F;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90%;  /* 从80%改为90%以更好地适应小屏幕 */
    width: auto;    /* 从固定300px改为auto，根据内容自适应 */
    min-width: 250px; /* 添加最小宽度防止内容过窄 */
    max-height: 90vh; /* 限制最大高度为视口的90% */
    overflow-y: auto; /* 如果内容过多添加滚动条 */
    text-align: center;
    box-sizing: border-box; /* 确保padding不增加额外宽度 */
}

.joke-modal h3 {
    margin-top: 0;
    color: white;
}

.joke-modal p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
    word-wrap: break-word; /* 确保长单词或URL能换行 */
    color: white;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

