/* 基础样式 */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* 标题区域样式 */
#title-area {
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 10vh;
}

#game-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 0 20px;
    text-align: left;
}

/* 游戏设置区域样式 */
#game-setting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #34495e;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#game-setting label {
    font-size: 16px;
}

#game-setting select {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
}

#game-setting button {
    padding: 15px 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#game-setting button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 游戏设置区域收缩样式 */
#game-setting.shrink {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    gap: 10px;
}

#game-setting.shrink label {
    font-size: 12px;
}

#game-setting.shrink select {
    padding: 3px 5px;
    font-size: 12px;
}

#game-setting.shrink button {
    padding: 5px 10px;
    font-size: 12px;
}

/* 游戏中心内容区域样式 */
#center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    padding: 40px 0;
    margin: 0 auto;
    width: 80%;
    position: relative;
}

/* 单词和释义区域样式 */
#word-area, #definition-area {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
}

#word-area {
    align-items: flex-end;
}

#definition-area {
    align-items: flex-start;
}

#word-display, #definition {
    font-size: 72px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}

#definition {
    font-size: 40px;
    align-self: flex-start;
}

.correct-letter {
    color: red;
}

#word-display span {
    min-width: 20px;
    display: inline-block;
}

/* 消息区域样式 */
#message-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
    background-color: #2c3e50;
    color: white;
    height: 10vh;
}

#message, #word-count {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
    color: white;
}

#message {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

#word-count {
    text-align: right;
}

/* 设置按钮样式 */
#settings-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

#settings-btn:hover {
    background-color: #2980b9;
}

/* 设置页面样式 */
#settings-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#settings-page.hidden {
    display: none;
}

.settings-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: #3498db;
}
