


#codepad {
    height: auto;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.io-div {
    width: 100%;
    height: auto;
    margin-top: 5px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



#code-div {
    width: 100%;
    height: auto;
    margin-top: 5px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#code-head {
    width: 56rem;
    max-width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #code-head input {
        color: black;
        font-weight: bold;
    }

#import-code {
    width: 56rem;
    max-width: 80%;
}

#editor {
    width: 56rem;
    max-width: 80%;
    height: 38rem;
    font-size: 18px;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    resize: both;
    border: 3px solid black;
}

#right-side {
    min-width: 260px;
    height: fit-content;
    user-select: none;
    top: 55px;
    position: -webkit-sticky;
    position: sticky;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
}


    #right-side #setting {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        color: white;
        border: 2px solid black;
        padding: 5px;
        padding-left: 8px;
        width:100%;
    }

    #right-side #marking {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        color: white;
        border: 2px solid black;
        padding: 5px;
        padding-left: 8px;
        width: 100%;
    }

    #right-side .line {
        width: 100%;
        height: 1px;
        background: black;
    }


@media (max-width: 1200px) {
    #codepad {
        width: 100%;
    }

    #right-side {
        width: 100%;
        position: relative;
    }

    #editor {
        max-width: 95%;
    }

    .tab-pane {
        max-width: 95% !important;
    }

    #test-case-results{
        width: 80%;
    }

}






.cfg-option {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.3rem;
    margin-left: 0.2rem;
    margin-bottom: 0.3rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.cfg-title {
    width: 50%;
    text-align: left;
    display: flex;
    align-items: center;
}

.cfg-content {
    display: flex;
    align-items: center;
}

#wrap {
    max-width: 400px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.selector {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 16px;
    color: black;
    width: 100px;
    height: 32px;
    border-radius: 20px;
    text-align: center;
}

tr td {
    border: none;
    justify-content: center;
}

#myTabContent {
    width: 100%;
    text-align: -webkit-center;
}

.tab-pane {
    border: 1px solid #55595C;
    max-width: 80%;
    width: 56rem;
    height: fit-content;
    
}

.io-child-div {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow: hidden;
    justify-content: center;
}

#ioput-file-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


#input-data {
    padding: 5px;
    height: 10rem;
    border: 1px solid gray;
    resize: both;
}

#output-data {
    padding: 5px;
    height: 10rem;
    border: 1px solid gray;
    resize: both;
}

#error {
    padding: 5px;
    height: 10rem;
    border: 1px solid gray;
    resize: both;
}

.nav-tabs .nav-link.active {
    background: rgb(52,58,64);
    color: white;
}

.align-center {
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
}


#save-file-input {
    margin-top: 1rem;
    border: 1px solid black;
    border-radius: 10px;
    height: 3rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
}

#save-file-name {
    border: none;
    width: 85%;
    height: 95%;
    font-size: 20px;
}

    #save-file-name:focus {
        border: none;
        outline: none;
        border-color: initial;
        box-shadow: none;
        padding-left: 5px;
    }

#save-file-input span {
    background-color: #696f71;
    color: white;
    border-radius: 10px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    text-align: center;
}







.cfg-option {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.3rem;
    margin-left: 0.2rem;
    margin-bottom: 0.3rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.cfg-title {
    width: 50%;
    text-align: left;
    display: flex;
    align-items: center;
}

.cfg-content {
    display: flex;
    align-items: center;
}

#wrap {
    max-width: 400px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.selector {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 16px;
    color: black;
    width: 100px;
    height: 32px;
    border-radius: 20px;
    text-align: center;
}

tr td {
    border: none;
    justify-content: center;
}

.align-center {
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
}


#select-tab {
    width: 100%;
    height: 2.5rem;
    background-color: var(--bs-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0.1rem 0.2rem 0.2rem;
    border-bottom: 2px solid black;
    position: sticky;
    top: 0;
    z-index: 1000;
    user-select: none;
}
#select-tab>span{
    color: white;
    font-size: 17px;
}
    #select-tab > a {
        position: absolute;
        left: 4%;
    }

        #select-tab > a:hover {
            color: #fff200;
            text-shadow: 0 0 10px #fff200, 0 0 40px #fff200, 0 0 80px #fff200;
        }

@media (max-width: 600px) {
    #select-tab{
        gap: 2rem;
    }
        #select-tab span b {
            display: none;
        }
    #select-tab > a {
        font-size: 15px;
        position: relative;
    }
}

span.active{
    color: #fff200 !important;
    text-shadow: 0 0 10px #fff200, 0 0 40px #fff200, 0 0 80px #fff200;
}



#content-section{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    overflow: hidden;
}
#content-container {
    margin: 1rem;
    width: 80%;
    box-shadow: 0.3rem 0.3rem 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}

@media (max-width: 999px) {
    #content-container {
        width: 100%;
    }
}


#header-content {
    width: 100%;
    max-width: 100%;    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3px;
    padding: 16px;
    justify-content:center;
}

.header-content-child {
    display: flex;
    flex-wrap: wrap;
    /* padding: 10px; */
    position: relative;
    box-sizing: border-box;
    gap: 0.8rem;
    /* font-size: 19px; */
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}
#inner-content{
    width: 90%;
    
}



.progress {
    height: 10px;
    background-color: #2c3e50;
    border-radius: 5px;
    margin-top: 1rem;
    width: 80%;
}

.test-case-result {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

    .test-case-result.passed {
        border-left-color: #28a745;
    }

    .test-case-result.failed {
        border-left-color: #dc3545;
    }

    .test-case-result:hover {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .test-case-result .status-icon {
        font-size: 1.2rem;
        margin-right: 8px;
        vertical-align: middle;
    }

    .test-case-result .details {
        font-size: 0.9rem;
        color: #6c757d;
        margin-top: 5px;
    }

#btn-marking:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#marking-status {
    font-size: 0.9rem;
}

.comments-section {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.comment-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 10px solid;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.comment-header {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.comment-content {
    margin-bottom: 5px;
    color:black;
}

.comment-actions {
    font-size: 0.85rem;
}

.replies {
    margin-top: 1rem;
}

.reply-btn, .like-btn, .dislike-btn, .remove-cmt {
    padding: 0;
}

    .like-btn.active, .dislike-btn.active {
        color: #007bff;
        font-weight: bold;
    }

#cancel-reply {
    margin-left: 10px;
}

.progress{
    width: 80%;
    height: 10px;
}