﻿@font-face {
    font-family: 'LXGW WenKai';
    src: url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/lxgwwenkairegular.woff2') format('woff2');
}

body {
    margin: 0;
    padding: 0;
    font-size: 15px;
    overflow: hidden;
    background: #ffe;
    overscroll-behavior: none;
}

#mainDiv {
    width: 100%;
    height: 100%;
}

#loveHeart {
    float: left;
    width: 670px;
    height: 625px;
}

#garden {
    width: 100%;
    height: 100%;
}

#elapseClock {
    font-family: "digit";
    font-weight: 400;
    text-align: right;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#elapseClock .digit {
    font-family: "digit";
    font-size: 32px;
}

#words {
    font-family: "sans-serif";
    width: 500px;
    font-size: 24px;
    color: #666;
}

#messages {
    display: none;
    font-family: 'LXGW WenKai', "Droid Serif", serif;
    font-weight: bolder;
}

#loveu {
    padding: 5px;
    font-family: 'LXGW WenKai', "Droid Serif", serif;
    font-size: 22px;
    font-weight: bolder;
    margin-top: 80px;
    margin-right: 125px;
    text-align: right;
    display: none;
}

#loveu .signature {
    margin-top: 10px;
    font-size: 20px;
    font-style: italic;
}

#clickSound {
    display: none;
}

#code {
    float: left;
    width: 440px;
    height: 400px;
    color: #333;
    font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", "sans-serif";
    font-size: 12px;
}

#code .string {
    color: #2a36ff;
}

#code .keyword {
    color: #7f0055;
    font-weight: bold;
}

#code .placeholder {
    margin-left: 15px;
}

#code .space {
    margin-left: 7px;
}

#code .comments {
    color: #3f7f5f;
}

#copyright {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    color: #666;
}
@media (min-width: 300px) {
    #copyright {
        margin-left: 8%;
    }
}

#errorMsg {
    width: 100%;
    text-align: center;
    font-size: 24px;
    position: absolute;
    top: 100px;
    left: 0;
}

#copyright a {
    color: #666;
}

/* 让 body 和 html 占满全屏 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

/* 爱心 Canvas - 背景层 */
#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 主内容 - 前景层 */
#mainDiv {
    position: relative;
    z-index: 1;
    background: transparent;
}