@font-face {
    font-family: "consolas";
    src: url("../font/CONSOLA.TTF");
}

.second_section {
    background-color: rgba(37, 36, 35, 0.871);
    padding: 0px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
    font-family: "Montserrat"
}

.example_title {
    margin-top: 70px;
}

.ex_text {
    margin-bottom: 20px;
    color: #ff626c;
    font-size: 26px;
    font-weight: 900;
    text-align: center
}

.example_desc {
    font-size: 16px;
    font-weight: 100;
    color: white;
}

.example {
    font-family: "consolas";
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.codebox {
    font-family: "consolas";
    background-color: #191921;
    width: 48%;
    max-width: 750px;
    height: 330px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
    color: white
}

.codebox.code {
    margin-right: 20px;

}

.codebox.result {
    margin-left: 20px;
    position: relative;
    color: black
}

.codebox_top {
    height: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5px;
}

.round_btn {
    border-radius: 50%;
    width: 15px;
    height: 15px;
    margin: 0px 5px 0px 5px;
}

.round_btn:nth-child(1) {
    background-color: #ff5f57;
}

.round_btn:nth-child(2) {
    background-color: #ffbd2e;
}

.round_btn:nth-child(3) {
    background-color: #2ace42;
}

.html_js_tab {
    width: 100%;
    display: flex;
    height: 25px;
}

.tab {
    width: 30%;
    text-align: center;
    line-height: 25px;
    border: solid 1px rgba(0, 0, 0, 0.472);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    font-size: 14px;
    background-color: #282B37;
    border-bottom: solid 2px #282B37;
    z-index: 150;
    transform: translateY(2px);
    -webkit-transform: translateY(2px);
    -moz-transform: translateY(2px);
    -ms-transform: translateY(2px);
    -o-transform: translateY(2px);
}

.tab:nth-child(2) {
    margin-left: 20%;
}

.tab img {
    margin-right: 5px;
    margin-top: 5px
}

.tab span {
    margin-top: 5px
}

.code_content {
    display: flex;
    width: 100%;
    height: 275px;
}

.code_content div {
    height: 100%;
    width: 50%;
    background-color: #282B37;
}

.html_content {
    border: solid 1px #191921;
    scrollbar-color: rgba(184, 183, 183, 0.2) #282B37;
    scrollbar-width: thin;
}

.js_content {
    border: solid 1px #191921;
    scrollbar-color: rgba(184, 183, 183, 0.2) #282B37;
    scrollbar-width: thin;
}

.scrollable {
    overflow-y: scroll
}

.result_content {
    width: 100%;
    background-color: white;
    border-top: solid 1px rgba(0, 0, 0, 0.472);
}

.result_content {
    height: 300px;
}

.result_content {
    padding: 10px;
}


.example1_container .item,
.example_drag_container .item {
    padding: 15px;
    border: solid 1px black;
    border-radius: 5px;
    margin-bottom: 4px;
    text-align: center;
    margin-bottom: 7px;
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, .4);
}

.example1_container .item {
    background-color: #e9e9e9;
}

.example_drag_container .item {
    padding: 10px;
    width: 50%;
    margin: 0 auto 15px auto;
    color: white;
    font-size: 25px
}

.red {
    background-color: #c0392b
}

.green {
    background-color: #16a085
}

.yellow {
    background-color: #f39c12
}

.blue {
    background-color: #2980b9
}

.example3_container .item {
    float: left;
    display: inline-block;
    width: 100px;
    padding: 15px;
    border: solid 1px black;
    margin: 4px;
    background-color: #e9e9e9;
    text-align: center;
}

.example3_container {
    width: 100%;
    height: 280px;
    overflow-y: scroll;
}

.add_btn {
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.example2_container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    height: 280px;
    width: auto;
    overflow-y: scroll;
}

.cat {
    margin: 4px
}

.example2_container .cat img {
    width: 200px;
    height: 170px;

}

.example4_container {
    overflow-y: hidden;
    height: 280px;
}

.example4_container div {
    display: inline-block;
    padding: 10px;
    width: 29%;
    border: solid 1px black;
    margin: 4px;
    background-color: #e9e9e9;
    text-align: center;
}



.refresh_btn {
    position: absolute;
    bottom: 5px;
    right: 30px;
    z-index: 10;
    background-color: #ffffff;
    padding: 5px;
    border: solid 1px rgba(0, 0, 0, 0.342);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.refresh_1,
.refresh_4 {
    right: 5px;
}

.refresh_btn:hover {
    background-color: rgb(130, 188, 255);
    transition: background-color 0.1s ease;
}

.language-html {
    padding-left: 20px !important;
    padding-top: 0px !important
}

@media screen and (max-width: 1000px) {
    .language-html {
        padding-left: 20px !important;
        padding-top: 10px !important
    }

    .second_section {
        padding: 10px;
        padding-top: 30px;
    }

    .example_title:nth-child(1) {
        margin-top: 30px;
    }

    .example_title {
        font-size: 18px !important
    }

    .example_desc {
        font-size: 14px
    }

    .example {
        flex-direction: column;
    }

    .codebox {
        width: 100%;
    }

    .codebox.code {
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .codebox.result {
        margin-left: 0px;
        margin-top: 10px;
    }

    pre {
        font-size: 10px;
    }

    .tab {
        width: 50%;
        border-top-left-radius: 15px;
        background-color: #282B37;
    }

    .tab:nth-child(2) {
        margin-left: 0%;
    }


    .code_content div {
        height: 100%;
        width: 100%;
        background-color: #282B37;
    }

    .code_content div.hide {
        display: none
    }

    .tab {
        cursor: pointer;
        max-width: 150px;
        background-color: rgb(65, 68, 80);
        border-bottom: none;
        z-index: 150;
        transform: translateY(0px);
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
    }

    .tab.selected {
        background-color: #282B37;
        border-bottom: solid 2px #282B37;
        z-index: 150;
        transform: translateY(2px);
        -webkit-transform: translateY(2px);
        -moz-transform: translateY(2px);
        -ms-transform: translateY(2px);
        -o-transform: translateY(2px);

    }

    .tab img {
        margin-top: 1px
    }

    .tab.selected img {
        margin-top: 5px
    }

    .tab span {
        margin-top: 1px
    }


    code[class*="language-"],
    pre[class*="language-"] {
        font-size: 12px;
        text-align: left;
        white-space: pre-wrap;
        word-spacing: normal;
        word-break: normal;
        word-wrap: break-word;
        line-height: 1.2;

    }
}