/* 引入 CascadiaMonoPL-SemiBold 字体 */
@font-face {
    font-family: 'CascadiaMonoPL-SemiBold';
    src: url('./CascadiaMonoPL-SemiBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    background-color: #000;
    color: #0f0;
    font-family: 'CascadiaMonoPL-SemiBold', monospace; /* 使用指定字体 */
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80%; /* 将整体字体缩小到原来的 80% */
}

/* 全局选中文本样式 */
::selection {
    background-color: rgba(0, 255, 0, 0.45); /* 45% 透明度的绿色光条 */
}

#terminal {
    width: 95%;
    height: 90%;
    background-color: #111;
    border: 1px solid #444;
    padding: 10px;
    overflow-y: auto;
    scroll-behavior: smooth; /* 添加平滑滚动效果 */
}

#output {
    white-space: pre-wrap;
    margin-bottom: 10px;
}

#input-line {
    display: flex;
    align-items: center;
}

#prompt {
    margin-right: 5px;
}

#user-input {
    background: none;
    border: none;
    color: #0f0;
    outline: none;
    flex: 1;
    font-family: 'CascadiaMonoPL-SemiBold', monospace; /* 明确设置输入框字体 */
    font-size: 1em; /* 保持与整体一致的字体缩放 */
    caret-color: #0f0; /* 设置光标颜色为绿色 */
}
