@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,400);
body {
  margin: 0;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 14px;
}

.background {
  position: relative;
  background: linear-gradient(to bottom, #1a2238 40%, #222 100%);
  border-radius: 5px;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25);
  width: 100px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

 {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            border: 0;
            overflow: hidden; /* 隐藏溢出内容 */
            position: relative; /* 使子元素可以相对于此元素定位 */
        }


        /* 应用程序容器的样式 */
        .app {
            text-align: center; /* 文本居中对齐 */
            margin: 10px; /* 外边距 */
        }


        /* 雪花效果 */
        .snowflake {
            position: absolute; /* 绝对定位 */
            width: 10px; /* 宽度 */
            height: 10px; /* 高度 */
            background-color: white; /* 白色背景 */
            border-radius: 50%; /* 圆形 */
            opacity: 0.8; /* 透明度 */
            animation: fall linear infinite; /* 下落动画 */
        }


        /* 雪花下落动画 */
        @keyframes fall {
            0% {
                top: -10px; /* 从顶部开始 */
                opacity: 0.8; /* 透明度 */
            }
            100% {
                top: 100vh; /* 下落到屏幕底部 */
                opacity: 0; /* 透明度逐渐消失 */
            }
        }


        /* 消息文本的样式 */
        .message {
            position: absolute; /* 绝对定位 */
            top: 40%; /* 从顶部偏移 */
            left: 50%; /* 从左边偏移 */
            transform: translate(-50%, -50%); /* 精确居中 */
            color: white; /* 白色文字 */
            font-size: 48px; /* 字体大小 */
            font-family: Arial, sans-serif; /* 字体 */
            text-shadow: 0 0 10px white; /* 发光效果 */
            animation: fadeInOut 4s infinite; /* 渐隐渐现动画 */
        }


        /* 消息文本渐隐渐现动画 */
        @keyframes fadeInOut {
            0%, 100% {
                opacity: 0; /* 完全透明 */
            }
            50% {
                opacity: 1; /* 完全不透明 */
            }
        }
}

