:root {
    --primary-color: #2e95fb;
    --font-size: 16px;
}

* {
    padding: 0;
    margin: 0;
}

html,
body {
    width: 100%;
    background-color: #fff;
    height: 100%;
}

a {
    text-decoration: none;
    /* 清除下划线 */
    color: inherit;
    /* 继承父元素的文本颜色 */
    cursor: pointer;
    /* 修改光标为指针形状，表示可点击 */
}

.nav {
    height: 70px;
    /* padding: 10px 0; */
    background-color: #fcd97b;
    border-bottom: solid 1px #e6e6e6;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    box-sizing: border-box;
    /* max-height: 80px; */
    /* background-image: url("./images/cloud.png"); */
    background-size: 30%;
}

.nav img {
    height: 60px;
    padding: 5px 0;
    align-self: flex-start;
}

.nav .btns {
    width: auto;
    /* border: #2e95fb 1px solid; */
    margin-right: 10px;
    height: 50px;
}

.nav span {
    cursor: pointer;
    color: #495060;
    line-height: 50px;
    font-size: 20px;
    margin: 0 20px;
    width: 80px;
    border-radius: 10px;
}

.nav span button {
    cursor: pointer;
    height: 35px;
    font-size: 20px;

    border-radius: 10px;
    font-weight: bold;
    width: 80px;
    color: #fff;
    border: 0;
}

.nav span:first-child button {
    background-color: #f39c12;
}

.nav span:nth-child(2) button {
    background-color: #1abc9c;
}

.nav span:nth-child(3) button {
    background-color: #3498db;
}

/* .nav span:nth-child(4) button {
    background-color: #e74c3c;
} */





/* .nav span:hover,
.nav span button:hover {
    background-color: rgba(105, 45, 19, 1);
    color: #FFF0AB;
    cursor: pointer;
} */

input[type="file"] {
    display: none;
    margin-bottom: 10px;
    margin-left: -10px;
}



.ide {
    display: flex;
    flex-direction: row;
    /* flex-direction: column; */
}

.ide .input {
    height: 94vh;
    width: 72%;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
    border-bottom: solid 1px #e6e6e6;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    /* border-radius: 5%; */
}

.ide .input .editor {
    height: 96%;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.2)
}

.ide .input ul {
    background-color: #fff;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

li {
    list-style-type: none;
}

.ide .input .run-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    height: 35px;
    font-size: 20px;
    background-color: #1abc9c;
    border-radius: 10px;
    font-weight: bold;
    width: 80px;
    color: #fff;
    border: 0;
}

.ide .input .stop-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    height: 35px;
    line-height: 35px;
    font-size: 20px;
    background-color: #e74c3c;
    border-radius: 10px;
    font-weight: bold;
    width: 80px;
    color: #fff;
    display: none;
    border: 0;
}


.ide .input .run-button i {
    /* font-size: 12px; */
    line-height: 35px;
}

.ide .input .stop-button i {
    font-size: 12px;
    line-height: 35px;
}

.ide .input ul li {
    display: inline-block;
    white-space: nowrap;
    padding: 0 6px;
    /* 防止文本换行 */
    background: #ebebeb;
    /* width: 10%; */
    height: 100%;
    line-height: 170%;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
    border-radius: 10px 10px 0 0;
}




.ide .outputs {
    height: 94vh;
    width: 28%;
    display: flex;
    flex-direction: column;
    /* flex-direction: row; */
    padding: 0px 10px;
    box-sizing: border-box;
}

.ide .outputs .outone,
.ide .outputs .outtwo {
    height: 50%;
    width: 100%;
}

.ide .outputs .outone .output {
    height: 92%;
    width: 100%;
    border-top: solid 1px #e6e6e6;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    /* margin-bottom: 10px; */
}

.ide .outputs .outone .title {
    background-color: #7F7F7F;
    color: #fff;
    height: 25px;
    line-height: 24px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

.ide .outputs .outone .title .buttonone {
    position: absolute;
    top: 0;
    right: 4px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 20px;
    background-color: #7F7F7F;
    /* border-radius: 10px; */
    color: #fff;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

/* 
其他情况隐藏按钮
.ide .outputs .outone .buttonone,
.ide .outputs .outtwo .buttontwo {
    display: none;
} */

.ide .turtleCanvas {
    height: 100%;
    width: 100%;
    background-color: #fff;
    border-top: solid 1px #e6e6e6;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    overflow: auto;
    /* 设置溢出时显示滚动条 */
}


.ide .outputs .outtwo {
    height: 96%;
    width: 100%;
    position: relative;
}


.ide .outputs .outtwo .buttontwo {
    position: absolute;
    top: 25px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    background-color: #f7f7f7;
    border-radius: 10px;
    color: #d4d4d4;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
    z-index: 99999;
}


.output::-webkit-scrollbar,
.turtleCanvas::-webkit-scrollbar {
    width: 3px;
    /* 设置滚动条宽度 */
}

.turtleCanvas::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* 设置滚动条轨道背景颜色 */
}

.turtleCanvas::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    /* 设置滚动条拖动块颜色 */
}

.turtleCanvas::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    /* 设置鼠标悬停时滚动条拖动块颜色 */
}


/* 适应平板横屏模式 */
@media screen and (max-width: 1180px) and (orientation: landscape) {
    .ide {
        display: flex;
        flex-direction: column;
    }

    .ide .input {
        height: 62vh;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        border-bottom: solid 1px #e6e6e6;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .ide .input .editor {
        height: 94%;
        width: 100%;
    }

    .ide .input ul {
        height: 35px;
    }

    .ide .outputs {
        height: 32vh;
        width: 100%;
        display: flex;
        flex-direction: row;
        padding: 10px 10px 0 10px;
        box-sizing: border-box;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        border: solid 1px #e6e6e6;
    }


    .ide .outputs .outone,
    .ide .outputs .outtwo {
        height: 96%;
        width: 100%;
        position: relative;
    }

    .ide .outputs .outone .buttonone,
    .ide .outputs .outtwo .buttontwo {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
        background-color: #f7f7f7;
        border-radius: 10px;
        color: #d4d4d4;
        border: none;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        display: block;
        z-index: 99999;
    }

    .ide .outputs .outone .output {
        height: 89%;
        width: 100%;
        overflow: auto;
        /* overflow: hidden; */
    }

    .ide .outputs .turtleCanvas {
        height: 100%;
        width: 100%;
        font-size: 12px;
        overflow: auto;
        /* 设置溢出时显示滚动条 */
    }

}