/* styles.css */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000; /* 黑色背景 */
    color: #00ff00; /* 绿色文本 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5); /* 绿色阴影 */
    width: 80%;
    max-width: 600px;
    animation: flicker 1.5s infinite alternate; /* 闪烁效果 */
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00; /* 绿色发光效果 */
}

#stringToType {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff; /* 白色文本 */
}

input[type="text"] {
    width: calc(100% - 22px); /* 全宽 */
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
    border: 1px solid #00ff00;
    background-color: #000;
    color: #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* 绿色阴影 */
    outline: none; /* 移除默认边框 */
}

button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* 绿色阴影 */
    transition: background-color 0.3s, color 0.3s; /* 过渡效果 */
}

button:hover {
    background-color: #00ff00;
    color: #000;
}

#medal {
    font-size: 2em;
    margin-top: 20px;
    text-shadow: 0 0 10px #00ff00; /* 绿色发光效果 */
}

/* 闪烁效果 */
@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
