body {
    font-size: 20px;
}

.fa-comments,
.fa-book {
    font-size: 24px;
    line-height: 29px;
}

.fa-book {
    font-size: 22px;
}

li .fa-comments {
    margin: 0 3px;
}

li .fa-book {
    margin: 0 5px 0 4px;
}

.course {
    position: fixed;
    top: 55%;
    right: 2rem;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    z-index: 999;
}

.course a {
    text-decoration: none;
    display: inline-block;
    width: 3.5rem;
    height: 3.6rem;
    padding-top: .2rem;
    color: #fff;
    background-color: rgba(233, 197, 97, 0.5);
    box-shadow: 0 6px 10px 0 rgba(211, 182, 96, 0.4);
    border-radius: .3rem;
    text-align: center;
    line-height: 2.3rem;
    font-size: 1.7rem;
}

.course a:focus,
.course a:visited,
.course a:hover {
    outline: none;
    color: #fff;
    background-color: #fdbd0f;
}

.menu-box {
    width: 100%;
    background: #61A3A4;
    box-sizing: border-box;
}

.menu-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1.25rem;
    margin: 0 auto;
}

.logo img {
    border-radius: 1.1rem;
    height: 3.4rem;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.menu-left {
    color: #fff;
    font-weight: bold;
}

.menu-left .logo {
    margin-left: 0;
}

.menu-left>span,
.menu-left input,
.menu-left select,
.menu-left>div {
    margin-left: 1.8rem;
}

.menu-left>span.v-line {
    height: 2rem;
    border-left: 1px solid #F1A70B;
}

.menu-left input::-webkit-input-placeholder {
    color: #fff;
    font-weight: bold;
}

.menu-left input::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #fff;
    font-weight: bold;
}

.menu-left input:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #fff;
    font-weight: bold;
}

.menu-left input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #fff;
    font-weight: bold;
}

.menu-left input {
    height: 2.4rem;
    width: 12rem;
    border-radius: 1.2rem;
    border: 0;
    background: #fff;
    padding-left: 2rem;
    padding-right: .5rem;
    box-sizing: border-box;
    color: #000;
}

.menu-left .select::after {
    padding-right: .5rem;
}

.menu-left .select {
    display: inline-block;
    height: 1.4rem;
    width: 12rem;
    border: 0;
    background: #fff;
    padding-left: .5rem;
    padding-right: .5rem;
    box-sizing: border-box;
    position: relative;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    color: #555;
    text-shadow: none;
    transition: box-shadow 0.25s ease;
    z-index: 2;
}

.menu-left .select:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.menu-left .select:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    top: 14px;
    right: 10px;
    cursor: pointer;
    z-index: -2;
}

.menu-left .select select {
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    background: transparent;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.menu-left .select select:focus {
    outline: none;
}

.menu-left input:focus,
.menu-left select:focus {
    outline: none;
}

.menu-left>div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.menu-left>div>span {
    padding-left: .2rem;
}

.menu-left>div a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #fff;
}

.menu-left>div a>span {
    padding-left: .2rem;
}

.menu-left>div:hover,
.menu-left>div:active,
.menu-left>div:focus,
.menu-left>div:visited {
    text-decoration: none;
    color: #fff;
    outline: none;
}

.menu-left>div a:hover,
.menu-left>div a:active,
.menu-left>div a:focus,
.menu-left>div :visited {
    text-decoration: none;
    color: #fff;
    outline: none;
}

.menu-right {
    float: right;
    color: #fff;
    font-weight: bold;
    padding-right: 1rem;
}

.menu-right>div {
    margin-left: 1rem;
}

.menu-right>div a {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    text-decoration: none;
    color: #fff;
}

.menu-right>div a>span {
    padding-left: .2rem;
}

.menu-right>div a:hover,
.menu-right>div a:active,
.menu-right>div a:focus,
.menu-right>div a:visited {
    text-decoration: none;
    color: #fff;
    outline: none;
}

@media screen and (min-width: 1450px) and (max-width: 1679px) {
    // .menu-nav .logo {
    //     display: none;
    // }
    .menu-left input {
        margin-left: 0;
    }
    .menu-right {
        margin-left: 1rem;
    }
    .v-line {
        display: none;
    }
}

@media screen and (min-width: 1165px) and (max-width: 1449px) {
    .menu-nav {
        padding: .6rem 0;
    }
    // .menu-nav .logo {
    //     display: none;
    // }
    .menu-left>span,
    .menu-left input,
    .menu-left select,
    .menu-left>div {
        margin-left: .5rem;
    }
    .menu-right {
        margin-left: 1rem;
    }
    .menu-right>div {
        margin-left: .5rem;
    }
    .v-line {
        display: none;
    }
}

@media screen and (min-width: 964px) and (max-width: 1164px) {
    .menu-nav {
        padding: .6rem 0;
    }
    // .menu-nav .logo {
    //     display: none;
    // }
    .menu-left>span,
    .menu-left input,
    .menu-left select,
    .menu-left>div {
        margin-left: .6rem;
    }
    .menu-right {
        text-align: center;
        margin-left: 1rem;
    }
    .menu-right>div {
        margin-left: .3rem;
    }
    .v-line {
        display: none;
    }
}

@media screen and (max-width: 963px) {
    .menu-nav {
        // width:95rem;
        padding: .6rem 0;
    }
    // .menu-nav .logo {
    //     display: none;
    // }
    .menu-left>span,
    .menu-left input,
    .menu-left select,
    .menu-left>div {
        margin-left: .6rem;
    }
    .menu-left input {
        margin-left: 0;
    }
    .menu-right {
        text-align: center;
        margin-left: 1rem;
    }
    .menu-right>div {
        margin-left: .3rem;
    }
    .v-line {
        display: none;
    }
}

#right_menu_list {
    display: none;
}

#right_menu_list ul {
    background-color: #58BCC1;
    left: -9rem;
}

#right_menu_list ul a {
    flex-direction: row;
    justify-content: flex-start;
}

#right_menu_list ul>li>a:focus,
#right_menu_list ul>li>a:hover {
    background-color: #64D6DB;
}

@media (max-width: 1104px) {
    .w930 {
        display: none;
    }
    #right_menu_list {
        display: block;
    }
}

@media screen and (max-width: 801px) {
    .menu-nav {
        width: 78rem;
    }
}

@media (max-width: 720px) {
    // .menu-nav .logo {
    //     display: none;
    // }
    .menu-nav .logo_c51 {
        display: block;
    }
}

.vex.vex-theme-wireframe .vex-content {
    border-width: 2px;
}

.vex.vex-theme-wireframe .vex-content i,
.vex.vex-theme-wireframe .vex-content th,
.vex.vex-theme-wireframe .vex-content strong {
    color: #FFCC33;
}

.vex.vex-theme-wireframe .vex-close {
    color: #FFCC33;
}

.vex.vex-theme-wireframe .vex-close:before {
    color: #FFCC33;
}

.vex.vex-theme-wireframe .vex-close:hover:before,
.vex.vex-theme-wireframe .vex-close:active:before {
    color: #61A3A4;
}

p .share-label {
    width: 3.5rem;
}

.vex-content p>button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    width: 10rem;
    line-height: 1.5rem;
    height: 2.2rem;
    border-radius: 1.1rem;
    color: #fff;
    background: #F5BB3E;
    border: 1px solid #F5BB3E;
}

.vex-content p>button:hover,
.vex-content p>button:focus,
.vex-content p>button:active,
.vex-content p>button:visited {
    background: #F5BB3E;
    border: 1px solid #F5BB3E;
    outline: none;
}

.pythonboard-toolbox #toolbox {
    background: #61A3A4;
}

.pythonboard-toolbox #toolbox #commands a {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: .5rem;
}

.pythonboard-toolbox #toolbox #commands a:hover {
    background-color: transparent;
}

.pythonboard-toolbox img {
    display: inline-block;
    margin: 0 auto;
    width: 30px;
    height: 30px;
    text-align: center;
}

.pythonboard-toolbox i {
    display: inline-block;
    margin: 0 auto;
    width: 30px;
    height: 30px;
    text-align: center;
    color: #fff;
    font-size: 30px;
}

@media (max-width: 890px) {
    .pythonboard-toolbox .roundlabel {
        display: inline-block;
    }
}


/* �ȴ����� */

.waitingBox {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 150px;
    transform: translate(-50%, -50%);
    border: 1px solid #999;
    display: none;
    z-index: 999;
    background: #fff;
    border-radius: 5px;
}

.waitingBox img {
    display: block;
    margin: 0 auto;
    margin-top: 10px;
    width: 80px;
    height: 80px;
}

.waitingBox p {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.2rem;
}

.icon_search {
    margin-top: .5rem;
    width: 60%;
}

.course a:nth-child(2),
.course a:nth-child(2),
.course a:nth-child(2) {
    background-color: rgba(38, 89, 211, .5);
}

.course a:nth-child(2):focus,
.course a:nth-child(2):visited,
.course a:nth-child(2):hover {
    background-color: rgba(38, 89, 211, 1);
}

.course a:nth-child(3),
.course a:nth-child(3),
.course a:nth-child(3) {
    background-color: rgba(239, 93, 93, .5);
}

.course a:nth-child(3):focus,
.course a:nth-child(3):visited,
.course a:nth-child(3):hover {
    background-color: rgba(239, 93, 93, 1);
}

.course a:nth-child(4),
.course a:nth-child(4),
.course a:nth-child(4) {
    background-color: rgba(88, 216, 88, .5);
}

.course a:nth-child(4):focus,
.course a:nth-child(4):visited,
.course a:nth-child(4):hover {
    background-color: rgba(88, 216, 88, 1);
}

#libraryBox {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 130px;
    height: 45px;
    font-size: 1.45rem;
    color: #fff;
    font-weight: bold;
    line-height: 45px;
    text-align: center;
    background: #17A7AF;
    border-radius: 5px;
    cursor: pointer;
}

.blocklyTreeRoot {
    margin-bottom: 60px;
}


/* 工具下载 */

.toolDownload {
    position: fixed;
    transform: translateY(-50%);
    z-index: 999;
    bottom: 1%;
    background: #fff;
    width: 3.6rem;
    height: 8rem;
    text-align: center;
    right: 1.59rem;
    cursor: pointer;
    border: 1px solid #ccc;
}

.toolDownload a {
    text-decoration: none;
    color: #000;
}

.toolBox .iconfont {
    color: #f00;
    font-size: 3rem;
}

.tool-name {
    /* // color:#fff; */
    font-size: .85rem;
}

.twdown {
    display: none;
    position: absolute;
    right: 3.63rem;
    top: -93px;
    background: #fff;
    padding: 2rem 0;
    width: 17rem;
    cursor: pointer;
    border: 1px solid #ccc;
}

.tool-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tool-icon .iconfont {
    font-size: 6rem;
    color: #f22;
}

.tool-icon .icon-yiwen {
    font-size: 6rem;
    color: #f00;
}

.tool-des {
    font-size: 1.2rem;
    margin-top: .5rem;
}

.toolDownload:hover .twdown {
    display: block;
}


/* 编译进度条 */

.firmwareList>div {
    line-height: 5rem;
}

.progress-striped {
    position: fixed;
    top: 10rem;
}

.container {
    margin: 300px auto;
    width: 340px;
    position: absolute;
    top: 0;
    left: calc(50% - 170px);
    z-index: 1000;
}

.container>div {
    margin-bottom: 20px;
    position: relative;
}

.proClose {
    position: absolute;
    top: -45px;
    right: -30px;
    border: 2px solid #008CFF;
    border-radius: 20px;
    margin-top: -10px;
    line-height: 22px;
    color: #008CFF;
    display: inline-block;
    padding: 0;
    height: 30px;
    width: 30px;
    text-align: center;
    font-size: 28px;
    cursor: pointer;
    font-style: normal;
}

.progress {
    height: 20px;
    background: #eaeaea;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-radius: 10px;
}

.progress>span {
    position: relative;
    float: left;
    margin: 0 -1px;
    min-width: 30px;
    height: 20px;
    line-height: 16px;
    text-align: right;
    background: #cccccc;
    border: 2px solid;
    border-color: #bfbfbf #b3b3b3 #9e9e9e;
    border-radius: 10px;
    background-image: -webkit-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
    background-image: -moz-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
    background-image: -o-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
    background-image: linear-gradient(to bottom, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
    -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress>span>span {
    padding: 0 8px;
    font-size: 11px;
    font-weight: bold;
    color: #404040;
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px rgba(255, 255, 255, 0.4);
}

.progress>span:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 18px;
    /* background: url("../img/progress.png") 0 0 repeat-x; */
    border-radius: 10px;
}

.progress .green {
    background: #85c440;
    border-color: #78b337 #6ba031 #568128;
    background-image: -webkit-linear-gradient(top, #b7dc8e 0%, #99ce5f 70%, #85c440 100%);
    background-image: -moz-linear-gradient(top, #b7dc8e 0%, #99ce5f 70%, #85c440 100%);
    background-image: -o-linear-gradient(top, #b7dc8e 0%, #99ce5f 70%, #85c440 100%);
    background-image: linear-gradient(to bottom, #b7dc8e 0%, #99ce5f 70%, #85c440 100%);
}

.progress .blue {
    background: #5aaadb;
    border-color: #459fd6 #3094d2 #277db2;
    background-image: -webkit-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
    background-image: -moz-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
    background-image: -o-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
    background-image: linear-gradient(to bottom, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
}


/* 分隔条 */

#blockly:after {
    border: none;
}

#blockly {
    position: absolute;
    margin-right: 0;
    padding-right: 0;
    resize: none;
}

.flex1 {
    position: relative;
}

#blockly {
    width: 85%;
    top: 0;
    bottom: 0;
}

#editor {
    margin-left: calc(85% + 5px);
}

#line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 85%;
    width: 5px;
    background: #d3cece;
    cursor: w-resize;
}