body, html {
    height: 100%;
    margin: 0;
    overflow: hidden; /* 隐藏滚动条并去除滚动 */
}
#big-title {
    color: white;
}
#header {
    background-color: #0d6efd;
    padding: 0;
}
.sidebar {
    border-right: 1px solid #ddd;
    padding: 0;
    overflow-y: auto; /* 侧边栏内部滚动 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 使内容靠上和靠下分布 */
    height: 90%; /* 确保sidebar填满整个父容器的高度 */
}
.active {
    background-color: #ddd; /* 选中的背景颜色 */
    margin: 0 5px;
    border-radius: 5px;
}
.nav-item {
    flex-grow: 1;
}
.nav-link:hover {
    background-color: #fff; /* 鼠标悬停的背景颜色 */
    margin: 0 5px;
    border-radius: 5px;
}
.main-content {
    padding: 20px;
    height: calc(100vh - 40px); /* 减去padding的高度 */
    overflow: hidden; /* 隐藏不必要的滚动 */
}
.input-matrix {
    border: 2px solid #ddd; /* 边框颜色 */
    padding: 20px;
    margin-bottom: 20px; /* 与下一个元素的间距 */
}
.input-matrix:focus {
    border-color: #ff0000; /* 聚焦时的边框颜色 */
    box-shadow: none; /* 移除Bootstrap的阴影 */
}
/* 适当调整以符合图片的布局 */
#matrix1, #matrix2 {
    width: 100%; /* 输入框宽度 */
    min-height: 100%; /* 输入框最小高度 */
    min-width: 120px; /* 输入框最小宽度 */
    margin: 0 10px 0 10px; /* 与其他输入框的间距 */
    padding: 5px;
    border-radius: 5px;
    height: fit-content;
    max-height: 200px; /* 最大高度 */
    z-index: 1;
}
.content {
    display: none;
}
.show {
    display: block;
}
.banner {
    text-align: left;
    margin: 0;
    padding: 0;
}
.input-matrix-container {
    position: relative;
    width: 100%; /* 或者具体宽度 */
    margin: 0 5px; /* 根据需要调整 */
    max-height: 200px; /* 最大高度 */
}

.matrix-preview {
    max-height: 100%; /* 图片高度不超过父容器 */
    max-width: 100%; /* 图片宽度不超过父容器 */
    object-fit: cover; /* 图片缩放 */
    margin: 0 auto; /* 图片居中 */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 9px;
  height: 20px;
  width: 2px;
  background-color: #ddd;
}

.close-button::before {
    transform: rotate(45deg);
}
  
.close-button::after {
    transform: rotate(-45deg);
}

.input-matrix-container img {
    margin: 0 auto;
    border: #ddd 2px solid;
    border-radius: 5px;
}

#result {
    overflow-x: auto; /* 当内容溢出时在x轴方向（水平方向）显示滚动条 */
    max-width: 100%; /* 限制最大宽度，确保div不会超出其容器的宽度 */
    white-space: nowrap; /* 防止内部的文本或其他元素换行，确保了如果内容超出了当前宽度，就会显示滚动条 */
}

.github-corner {
    background: transparent;
}

.github-corner {
    border-bottom: 1px solid #999;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-decoration: none;
    overflow-wrap: break-word;
}

.github-corner svg {
    color: #fff;
    fill: #000;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2000;
}

svg {
    width: 80;
    height: 80;
}

svg:not(:root) {
    overflow-clip-margin: content-box;
    overflow: hidden;
}

#github-link {
    text-align: center; /* 居中链接文本 */
    margin-bottom: 20px; /* 在底部留出一些空间 */
}

#github-link a {
    text-align: center;
}

.btn-group span{
    margin: 0 20px 0 20px;
}

