body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    margin-top: 20px;
    font-size: 2.5em;
}

.main-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50%;
    width: 90%;
    max-width: 850px;
    border-radius: 10px;
    padding: 20px;
}

.question-container {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items:flex-start;
    justify-content: center;
}

.question {
    font-size: 1.4em;
    line-height: 1.5;
    text-align: center;
}

.down-opti-count {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.countdown {
    min-width: 60px;
    min-height: 60px;
    font-size: 3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.option-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    width: 100%;
}

.option {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    background-color: #333;
    transition: box-shadow 0.3s ease;
    width: 40%;
    box-sizing: border-box;
    text-align: left;
}

.option:hover {
    box-shadow: 0 0 20px #00ffff;
}

.user-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 700px;
}

.user-input {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: gray;
    border-radius: 50%;
    margin-right: 10px;
    transition: box-shadow 0.3s ease;
    background-image: url(/static/imges/user_1.png);
    background-size: cover; /* 确保图片覆盖整个元素 */
    background-position: center; /* 图片居中 */
}

.avatar:hover {
    box-shadow: 0 0 20px #00ffff;
}

.username-input {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    background-color: #333;
    color: white;
    outline: none;
    font-size: 1em;
    max-width: 150px;
    transition: box-shadow 0.3s ease;
    border: none;
}

.username-input:hover {
    box-shadow: 0 0 20px #00ffff;
}

.start-button {
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #333;
    color: white;
    cursor: pointer;
    font-size: 1em;
    white-space: nowrap;
    min-width: 100px;
    transition: box-shadow 0.3s ease;
    border: none;
}

.start-button:hover {
    box-shadow: 0 0 20px #00ffff;
}

.footer {
    width: 100%;
    background-color: rgb(48, 47, 47);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

.footer>a {
    text-decoration: none; /* 去掉下划线 */
    color:rgb(255, 255, 255);
}
.footer>a:hover,footer>a:active {
    color:rgb(255, 255, 255);
}

/* 媒体查询以适应小屏幕 */
@media (max-width: 600px) {
    body {
        font-size: 0.9em;
    }

    .logo {
        margin-top: 10px;
        font-size: 2em;
    }

    .user-action {
        flex-direction: column;
        align-items: center;
    }

    .start-button {
        margin-top: 20px;
    }

    .options {
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .option-group {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .option {
        width: 75%;
    }
}