body {
    font-family: "Source Han Sans", "Noto Sans CJK",  "Microsoft YaHei", "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(20, 20, 20, 0.95); /* 调暗背景颜色 */
    color: white; /* 设置默认文字颜色为白色 */
    user-select: none;
    -webkit-user-select: none;
}

h1, h2, h3 {
    color: white; /* 标题文字颜色为白色 */
}

/*MOBILE*/
@media screen and (orientation: portrait) {
    body {
        background-image: url('https://api.maao.cc/paimon?p=1');
    }
    .container {
        width: 80vw;
        max-width: 600px;
        min-width: 280px;
        margin: 5vh auto;
    }
    hr{
        width: 60vw;
    }
}

/*DESKTOP*/
@media screen and (orientation: landscape) {
    body {
        background-image: url('https://api.maao.cc/paimon?l=1');
    }
    .container {
        width: 50vw;
        max-width: 800px;
        margin: 5vh auto;
    }
    hr{
        max-width: 600px;
        width: 40vw;
    }
}

.card {
    margin-bottom: 5px;
    text-align: center;
    padding: 5px;
    border-radius: 20px;
    background-color: rgba(30, 30, 30, 0.96); /* 调暗卡片背景颜色 */
    color: white; /* 确保卡片内文字颜色也是白色 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}



.card:hover {
    background-color: rgba(45, 45, 45, 0.96); /* 悬停时颜色变浅 */
}

.link {
    color: white; /* 将链接颜色改为白色以保持一致 */
    text-decoration: underline; /* 添加下划线以增加可见性 */
}

hr{
    align-items: center;
    height: 2px;
    opacity: 0.8;
    background-color:gray;
    border: none;
}

.boom-button {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #007bff;
    background-color: rgba(50, 50, 50, 0.96); /* 稍微调亮背景 */
    color: #007bff;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.boom-button:hover {
    background-color: rgba(60, 60, 60, 0.96); /* 悬停时进一步调亮 */
    border-color: #0056b3;
}

#boomContainer {
    display: none;
    text-align: center;
    padding: 20px;
}

#boomContainer div {
    margin-bottom: 10px;
}

#boomContainer img {
    width: 150px;
    height: auto;
    border-radius: 15px; /* 圆角 */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* 轻微阴影 */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#boomContainer img:hover {
    transform: scale(1.1); /* 悬停时微微放大 */
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3); /* 悬停时阴影加深 */
}

#boomContainer img:active {
    transform: scale(0.95); /* 按下去时缩小 */
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4); /* 按下去时阴影变浅 */
}

#message {
    width: 80%;
    max-width: 300px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    margin-top: 10px; /* 增加与图片的间距 */
}

#message:focus {
    border-color: #007bff;
}

#timer, #count, #result {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.boom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}