html, body {
    height: 100%;
    margin: 0;
}

.image-container {
    overflow: hidden;
}

.image-container img {
    transition: transform 0.3s ease-in-out;
}

.menu-horizontal > li > a {
    border-radius: 0 !important;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-indicator button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    padding: 0;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator button.active {
    background-color: white;
}

.modal-box {
    display: flex;
    flex-direction: column;
}

.modal-content {
    flex-grow: 1;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-actions .btn {
    margin-top: 0.5rem;
}

.progress {
    background-color: #e5e7eb; /* 设置灰色背景 */
}

.progress-value {
    height: 100%; /* 确保进度条高度占满整个进度条 */
}

.note-item {
    background-color: #fffacd;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.note-item:hover {
    transform: translateY(-5px);
}

.note-item-finish {
    background-color: #a6dd9a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.note-item-finish:hover {
    transform: translateY(-2px);
}

.btn-small {
    min-height: 1rem;
    height: 2rem;
}

#toolbar_panel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #333;
    color: white;
}

#toolbox {
    width: 220px;
    padding: 5px;
    overflow: hidden;
    font-size: 14px;
}

.category {
    margin-bottom: 5px;
}

.category-header {
    background-color: #000;
    cursor: pointer;
    padding: 5px;
    border: 1px solid #5f5f5f;
    color: #ccc;
}

.block {
    margin: 3px 0;
    padding: 3px 5px 3px 10px;
    background-color: #dedede;
    cursor: move;
}

#editor {
    height: 80vh;
    border-bottom: 1px solid #282a2d;
}

#output {
    height: 200px;
    background-color: #000;
    border-top: 1px solid #ccc;
    padding: 5px;
    overflow-y: auto;
    color: white;
}

#editor-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    
}

@media (min-width: 1301px) {
    #editor-container {
        max-width: 95vw;
    }
}

@media (min-width: 1000px) and (max-width: 1300px) {
    #editor-container {
        max-width: 90vw;
    }
}

@media (max-width: 1000px) {
    #editor-container {
        max-width: 80vw;
    }
}

#bottom-output-tabs {
    max-width: 1000px;
}

.small-text {
    font-size: 10px;
}

#side-panel {
    width: 400px;
    background-color: #ccc;
    padding: 5px;
    border-right: 1px solid #ccc;
    position: relative;
    overflow-y: auto;
    overflow-x:hidden;
    height: 99vh;
}

#btn-hide-side-panel {
    top: 5px;
    right: 0px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    display: block;
    height: 24px;
    margin-left: -12px;
    position: absolute;
    text-align: center;
    width: 24px;
    z-index: 999;
}

#btn-show-side-panel {
    display: none;
    position: absolute;
    top: 13px;
    left: 20px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    height: 24px;
    margin-left: -12px;
    padding: 5px;
    text-align: center;
    width: 24px;
    z-index: 1000;
}

#tabs-panel {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ccc;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
}

#btn-hide-bottom-output {
    bottom: 27%;
    right: 30%;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    display: block;
    height: 24px;
    margin-left: -12px;
    position: absolute;
    text-align: center;
    width: 24px;
    z-index: 999;
}

#btn-show-bottom-output {
    display: none;
    bottom: 10px;
    right: 50%;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    height: 24px;
    margin-left: -12px;
    position: absolute;
    text-align: center;
    width: 24px;
    z-index: 999;
}

.btn-toggle {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    display: block;
    height: 24px;
    right: 35%;
    margin-left: -12px;
    position: absolute;
    text-align: center;
    width: 24px;
    z-index: 999;
}

.btn-toggle .btn-icon svg {
    fill: currentColor; /* 让 SVG 继承父元素的颜色 */
}

.btn-toggle:hover .btn-icon svg {
    fill: green; /* 在鼠标悬停时将 SVG 的填充颜色更改为绿色 */
}

.bg-dark {
    background-color: #000;
}

.custom-mockup-code {
    background-color: #000; /* 设置背景为黑色 */
    padding-left: 0px;
    border-radius: 0; /* 去掉圆角，视情况而定 */
}

.custom-mockup-code pre{
    padding-left:10px;
}

.custom-mockup-code code {
    padding-left: 10px;
}

.custom-mockup-code::before {
    display: none; /* 去掉头部的三个按钮 */
}

.input_type {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
}

.input_V {
    width: 40px; /* 调整宽度 */
    height: 30px; /* 调整高度，依据需要修改 */
    margin-left: 10px; /* 添加左边距 */
    padding: 5px; /* 调整内边距 */
    box-sizing: border-box; /* 确保padding不影响元素总宽度 */
}

.success-message, .next-button {
    position: absolute;
    font-size: 3em;
    z-index: 1;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.next-button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    display: none;
}

#matrix_canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#success_panel {
    display: none;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: black;
    color: #4CAF50;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fall {
    animation: fall 2s forwards;
}

@keyframes fall {
    from {
        top: 0;
        opacity: 1;
    }

    to {
        top: 1000px;
        opacity: 0;
    }
}

/*----------teacher-------------*/
#toolbar_panel_left {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 50px;
    background-color: #333;
    color: white;
    padding-left: 30px;
}

#side-panel_left {
    background-color: #f7f7f7;
    padding: 10px;
    border-right: 1px solid #ccc;
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
}

#btn-hide-side-panel_left {
    top: 13px;
    right: 15px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    display: block;
    height: 24px;
    margin-left: -12px;
    position: absolute;
    text-align: center;
    width: 24px;
    z-index: 1;
}

#btn-show-side-panel_left {
    display: none;
    position: absolute;
    top: 13px;
    left: 20px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    height: 24px;
    margin-left: -12px;
    padding: 5px;
    text-align: center;
    width: 24px;
    z-index: 1;
}

#content-panel {
    display: flex;
    height: 95vh;
}

.category-content {
    max-height: 50vh; /* 设置最大高度 */
    overflow-x: hidden;
    overflow-y: auto; /* 启用垂直滚动条 */
}

.text-blue-500 {
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity));
}

.rounded-full {
    border-radius: 9999px;
}
/*AI分析 Panel*/
.aiAnalyzecontainer {
    display: flex;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
}

.aiAnalyzeSteps {
    flex: 1;
    border-right: 1px solid #ccc;
    padding-right: 10px;
    margin-right: 10px;
}

.mindmap {
    flex: 2;
    padding-left: 10px;
}

.mermaid {
    min-height: 500px;
}

/*变量查看Panel*/
#watchModal {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

#watchModal th, td {
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    width: 88px;
}

#watchModal th {
    border-top: 1px solid #ddd;
    background-color: #eee;
    color: #333;
    width: 88px;
}

#watchModal tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#watchModal tr:hover {
    background-color: #f1f1f1;
}

#watchModal td.left_td {
    width: 100px;
    background-color: #eee;
}

.pseudocode-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.pseudocode-container ol {
    counter-reset: item;
    padding-left: 20px;
    list-style-type: none;
}

.pseudocode-container li {
    counter-increment: item;
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.pseudocode-container li::before {
    content: counter(item) ".";
    position: absolute;
    left: -20px;
    font-weight: bold;
    color: #333;
}

.pseudocode-container li {
    line-height: 1.6;
}

/*计时器样式*/
.clock_face p {
    font-size: 40px;
    font-weight: 400;
    position: absolute;
    top: -5px;
    width: 260px;
    left: 40px;
    color: wheat;
}

.clock_face span {
    font-size: 40px;
    font-weight: 400;
    position: absolute;
    top: -5px;
    left: 220px;
    color: #9dfff5;
}

/*原:disabled样式有误，更正*/
.btn:disabled, .btn[disabled] {
    --tw-border-opacity: 0;
    background-color: oklch(0.82 0 0);
    --tw-bg-opacity: 0.2;
    --tw-text-opacity: 0.5;
}

/*做完题飞金币*/
@keyframes spinAndFly {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }

    100% {
        top: 0;
        left: 100%;
        transform: translate(-100%, 0) scale(0);
        opacity: 0;
    }
}

.coin {
    position: absolute;
    width: 100px;
    height: 100px;
    display: none;
}

.coin.animation {
    animation: spinAndFly 2s forwards;
}

.flex-bottom {
    position: relative;
}

#outputTab {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 20;
}

#selftestTab {
    position: absolute;
    bottom: 0;
    left: 80px;
    z-index: 20;
}

#codeLogTab {
    position: absolute;
    bottom: 0;
    left: 80px;
    z-index: 20;
}

.editorBottomContent {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 55vw;
    height: 300px;
    background-color: #000000;
    border: 1px solid #3f3f3f;
    z-index: 20;
}

.vertical-line {
    border-left: 1px solid #000;
    height: 50px;
    display: inline-block;
    margin: 0 10px;
}

.sub-title {
    writing-mode: vertical-rl; /* 竖排文字 */
    text-align: center;
    margin: 0 10px;
}

.horizontal-line {
    border-top: 1px solid #000;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 15px; /* 与子主题的间距 */
}

#questionContent img {
    max-width: 400px; /* 设置最大宽度 */
    max-height: 100px; /* 设置最大高度 */
    width: auto; /* 保持自适应宽度 */
    height: auto; /* 保持自适应高度 */
}

#toolbox .tab {
    color: #969696 !important;
}

#toolbox .tab-active {
/*    background-color: #d1e7fd !important;*/    
    color: black !important;
}

#toolbox .tab-active:hover {
    color: #555;
}

.user-ai-content {
    background-color: #86dfba;
/*    text-align: right;*/    
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.user-ai-content pre {
    background-color: #86dfba;
    padding: 0px;
    overflow: auto;
    font-size: 100%;
    line-height: 1.5;
}

.ai-waiting-text {
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: opacity 0.5s; /* 透明度过渡效果 */
}

@media (max-width: 768px) {
    .mathtix_header_hiden {
        display:none;
    }
}


.btn:is(input[type=radio]:checked) {
    border-color: #008c50;
    background-color: #007443;
    color: whitesmoke;
}

.btn:is(input[type=radio]:checked):hover {
    border-color: #00bb6b;
    background-color: #00984b;
}