* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fbfbfb;
}

.content {
    width: 300px;
    height: 250px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.content #message {
    color: #817e70;
    font-size: 18px;
}

.content #clock {
    color: #817e70;
    font-size: 60px;
    font-family: 'Unispace-Bold', sans-serif;
}

button {
    border: none;
    border-radius: 10px;
    height: 40px;
    width: 100px;
    cursor: pointer;
    color: #fff;
    outline: none;
}

#bntStart {
    background-color: #83af67;
}

#bntReset {
    background-color: #cab55a;
}

/* 弹窗 */
#alertBox {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: opacity .5s,
        visibility .5s;
    visibility: visible;
    opacity: 1;
}

#alertBox .alert {
    width: 250px;
    height: 200px;
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    color: #666;
    border: 1px solid rgb(245, 245, 245);
}

.alert button {
    background-color: #83af67;
}

#alertBox.hide {
    visibility: hidden;
    opacity: 0;
}

/* 第一次使用提示弹窗 */
#tips {
    position: fixed;
    width: 100vw;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.2); */
    backdrop-filter: blur(5px);
    transition: opacity .5s,
        visibility .5s;
    visibility: visible;
    opacity: 1;
}

#tips.hide {
    visibility: hidden;
    opacity: 0;
}

#tips .content {

    width: 240px;
    height: auto;
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 40px;
    color: #666;
    border: 1px solid rgb(245, 245, 245);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#tips .content p {
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.5;
}

#tipsClose {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

#tipsClose:hover::before,
#tipsClose:hover::after {
    background-color: #e45151;
}

#tipsClose::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 9px;
    transform: rotate(45deg);
    width: 10px;
    height: 1px;
    background-color: #757575;
}

#tipsClose::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 9px;
    transform: rotate(-45deg);
    width: 10px;
    height: 1px;
    background-color: #757575;
}

#tips img {
    height: 80px;
    width: 80px;
}