body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    background-image: url('{{ url_for('static', filename='img/background.jpg') }}');
}

.content {
    width: 43%;
    background-color: white;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 20px;
    transition: transform 0.3s ease;
    font-family: "经典隶变简", sans-serif;
    margin: 0 auto;
}

.proverb-container {
    font-size: 18px;
    width: 80%;
    background-color: #f3f3f3;
    padding: 10px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 30px;
    border-radius: 2px;
}

.publish-button {
    margin: 10px 10px 10px 85%;
    display: block;
    padding: 10px 20px;
    background-color: #a7b6a8;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.publish-button-2 {
    display: block;
    padding: 10px 20px;
    background-color: #a7b6a8;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.publish-button:hover {
    background-color: #45a049;
}

.publish-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.publish-form textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.publish-form-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/*flash信息提醒*/
.flashes {
    position: fixed;
    top: 20px;
    left: 45%;
    margin: 0 auto;
    z-index: 1000;
}

.flashes li {
    list-style: none;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin-bottom: 5px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* 手机端的响应式优化 */
@media (max-width: 768px) {
    body {
        background-size: cover;
    }

    .content {
        width: 90%; /* 调整卡片宽度以适应小屏幕 */
        padding: 15px; /* 减少内边距以更好地利用空间 */
    }

    .proverb-container {
        width: 100%; /* 使容器在手机端占据整个屏幕宽度 */
        font-size: 16px; /* 调整字体大小以提高手机端的可读性 */
    }

    .publish-button {
        margin: 10px auto; /* 将按钮居中 */
        display: block;
        width: 80%; /* 增加按钮宽度，便于点击 */
    }

    .publish-form {
        width: 90%; /* 缩小表单宽度以适应手机屏幕 */
    }

    .flashes {
        left: 20%; /* 在手机端将flash信息居中 */
        width: 60%;
    }
}
