.ns-top {
    margin-bottom: 20px;
}

.cc-editor-component .margin-top {
    margin-top: 20px;
}

.cc-editor-component .margin-bottom {
    margin-bottom: 20px;
}

.cc-editor-component .full-width-box {
    margin-bottom: 20px;
    padding: 10px;
    background: rgb(248, 249, 250);
    border: 1px solid rgb(213, 213, 213);
}

.cc-editor-component .problem-statement {
    padding: 40px;
    background: white;
}

.cc-editor-component .ace_editor, .cc-editor-component .ace_editor div {
    font-family: monospace;
}

.cc-editor-component .cc-editor {
    position: relative;
}

.cc-editor-component .large {
    height: 400px;
}

.cc-editor-component .with-min-max-bg-ht {
    min-height: 100px;
    border: 1px solid rgb(213, 213, 213);
    background: beige;
}

.cc-editor-component .with-min-max-ht {
    min-height: 100px;
    border: 1px solid rgb(213, 213, 213);
}

.cc-editor-component .float-right {
    float: right;
}

.cc-editor-component .cc-text-editor {
    border: 1px solid rgb(213, 213, 213);
}

.cc-editor-component .header {
    padding: 10px;
    border-bottom: 1px solid rgb(213, 213, 213);
    width: auto;
    background: rgb(248, 249, 250);
    height: 32px;
}

.cc-text-editor {
    height: 504px;
    position: relative;
}

.cc-editor-component .selectize-control.single .selectize-input, .cc-editor-component .selectize-dropdown.single {
    border-color: rgb(213, 213, 213);
}

.cc-editor-component .selectize-control.single .selectize-input {
    background-color: #f9f9f9;
    background-image: none;
    background-repeat: repeat-x;
    filter: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0px;
}

.selectize-control.single .selectize-input, .selectize-control.single .selectize-input input {
    cursor: pointer;
}

.cc-text-editor .editor-status {
    padding: 10px;
    font-size: 12px;
    font-family: 'monaco', monospace;
    width: auto;
    border-top: 1px solid rgb(213, 213, 213);
    background: rgb(248, 249, 250);
}

.cc-editor-component .selectize-dropdown, .cc-editor-component .selectize-input, .cc-editor-component .selectize-input input {
    font-size: 12px;
    line-height: 14px;
}

.cc-editor-component .small {
    width: 400px;
    height: 100px;
}

.cc-editor-component .language_selector {
    width: 200px;
}

.cc-editor-component .ns-button {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 1px 15px;
    font-size: 12px;
    font-weight: bold;
    height: 37px;
    width: 100px;
    color: #eee;
    background-color: #333;
    outline: none;
}

.cc-editor-component .ns-button:hover {
    background: #666;
}

.cc-editor-component .ns-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 143, 255, 1);
    -webkit-box-shadow: 0 0 5px rgba(0, 143, 255, 1);
    -moz-box-shadow: 0 0 5px rgba(0, 143, 255, 1);
    border: 1px solid rgba(63, 171, 255, 0.77);
}

.cc-editor-component .filePicker, .cc-editor-component .submit-run, .cc-editor-component .custom-input {
    display: inline-block;
}

.cc-editor-component .button {
    margin-left: 10px;
}

.cc-editor-component .submit-run {
    display: inline-block;
    margin-left: 8px;
}

.cc-editor-component .items div {
    width: auto;
}

.cc-editor-component .items input {
    display: inline;
}

.cc-editor-component .chosen-container {
    font-size: 12px;
}

.selectize-control.plugin-remove_button [data-value] {
    position: relative;
    padding-right: 4px !important;
}

.selectize-dropdown .active {
    color: #495c68;
    background-color: #DBEEFA !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.cc-editor-component .ns-button:disabled {
    cursor: not-allowed;
    background: #888 !important;
}

.cc-editor-component .run-details-info {
    display: inline-block;
    margin-right: 10px;
}

.cc-editor-component .run-output-info {

}

.cc-editor-component .run-details {
    padding: 10px;
    background: rgb(248, 249, 250);
}

.cc-editor-component .run-output {
    padding: 15px 30px 30px 30px;
    border-top: 1px solid rgb(213, 213, 213);
}

.cc-editor-component .run-info {
    border: 1px solid rgb(213, 213, 213);
    margin-top: 17px;
    background: white;
}

.cc-editor-component .run-details-info .key {
    display: inline-block;
    margin-right: 5px;
    font-weight: bold;
}

.cc-editor-component .run-details-info .value {
    display: inline-block;
}

.cc-editor-component .run-output-info .key {
    font-weight: bold;
}

.cc-editor-component .run-output-info .value {

}

.cc-editor-component .chosen-container .chosen-drop {
    box-shadow: none;
}

.cc-editor-component .chosen-container .chosen-results li {
    line-height: 13px;
    font-size: 12px;
}

.cc-editor-component .chosen-container-single .chosen-single {
    height: 30px;
    line-height: 30px;
    border: 1px solid rgb(213, 213, 213);
    border-radius: 0px;
    background-color: #fff;
    background: white;
    background-clip: padding-box;
    box-shadow: none;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.cc-editor-component .chosen-container .chosen-results {
    margin: 0;
    padding: 0;
}

.chosen-container .chosen-results li.highlighted {
    background-color: #EFEFEF;
    background-image: none;
    color: #828282;
}

.cc-editor-component .chosen-container .chosen-drop {
    border: 1px solid rgb(213, 213, 213);
    border-top: 0;
    box-shadow: none;
    border-radius: 0;
}

.cc-editor-component .custom-file-input {
    color: transparent;
}

.cc-editor-component .custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.cc-editor-component .custom-file-input::before {
    content: 'Open File';
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 22px 9px #eee;
    font-size: 12px;
    border: none;
}

.cc-editor-component .custom-file-input {
    vertical-align: middle;
    padding: 0;
    border: none;
}

.cc-editor-component .custom-file-input:hover::before {
    border: none;
}

.cc-editor-component .custom-file-input:focus {
    border: none;
}

.cc-editor-component .chosen-container .chosen-results li em {
    font-style: normal;
    font-weight: bold;
    text-decoration: none;
    color: rgb(61, 61, 61);
}

.cc-editor-component .right-header {
    float: right;
}

.cc-editor-component .left-header {
    float: left;
}

.cc-editor-component .small-editor-button {
    margin-left: 10px;
    background: white;
    border: 1px solid rgb(213, 213, 213);
    padding: 0px 8px;
    width: 30px;
    height: 30px;
    color: #888;
    transition: all 300ms;
    vertical-align: middle;
    cursor: pointer;
}

.focussed-btn {
    color: #555 !important;
    background: #EEE !important;
    border-color: #ccc !important;
    outline: 0px !important;
    -webkit-appearance: none !important;
}

.cc-editor-top-fixed {
    position: fixed;
    top: 0px;
    padding-right: 20px;
    left: 0px;
    width: 99% !important;
    z-index: 11;
}

.cc-editor-code-fixed {
    position: fixed;
    top: 52px; /*  to be calculated too*/
    width: 100%;
    height: 100%;
}

.cc-editor-bottom-fixed {
    position: fixed;
    width: 100% !important;
    bottom: 0px;
    left: 0px;
    z-index: 11;
}

#ace_settingsmenu, #kbshortcutmenu {
    background-color: #F7F7F7;
    color: black;
    box-shadow: 0px !important;
    padding: 1em 0.5em 2em 1em;
    overflow: auto;
    margin: auto 40%;
    margin-top: 100px;
    position: relative !important;
    float: right;
    z-index: 10;
    cursor: default;
}

.cc-editor-component .settings-menu {
    width: 180px;
    height: auto;
    font-size: 20px;
    position: absolute;
    background: #FFF;
    box-shadow: 0 .125rem .3125rem 0 rgba(0, 0, 0, .25);
    z-index: 5;
    -webkit-transition: all .25s ease-out;
    border: 1px solid #d3d3d3;
    min-width: 180px;
    word-wrap: break-word;
    margin: 8px -217px 0;
    padding: 10px 15px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    top: 40px;
}

.cc-editor-component .small-editor-button:hover {
    color: #555;
    background: #EEE;
    border-color: #ccc;
    outline: 0px !important;
    -webkit-appearance: none;
}

.cc-editor-component .arrow_box {
    font-size: 12px;
    background: #fff;
    border: 1px solid #d3d3d3;
}

.cc-editor-component .arrow_box:after, .cc-editor-component .arrow_box:before {
    bottom: 100%;
    left: 96%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.cc-editor-component .arrow_box:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 8px;
    margin-left: -8px;
}

.cc-editor-component .arrow_box:before {
    border-color: rgba(211, 211, 211, 0);
    border-bottom-color: #d3d3d3;
    border-width: 9px;
    margin-left: -9px;
}

.cc-editor-component .input-style:focus, .cc-editor-component .chosen-search > input:focus {
    box-shadow: 0 0 5px rgba(0, 143, 255, 1);
    -webkit-box-shadow: 0 0 5px rgba(0, 143, 255, 1);
    -moz-box-shadow: 0 0 5px rgba(0, 143, 255, 1);
}

.cc-editor-component .chosen-search > input:focus {
    border: 1px solid #D5D5D5;
}

.cc-editor-component .input-style {
    font-weight: 400;
    font-size: 13px;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    padding: 6px 13px;
    width: 150px;
    height: 16px;
    outline: 0;
    border: 1px solid #D5D5D5;
}

.cc-editor-component .settings-pair, .settings-label {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cc-editor-component .tick-label {
    display: inline;
}

.cc-editor-component .custom-input {
    margin-right: 10px;
    vertical-align: middle;
    display: inline;
    width: 130px;
    margin-top: 2px;
}

.cc-editor-component .tick-check {
    display: flex;
    float: left;
    margin-top: 12px;
}

.ns-checkbox .tick-check label {
    margin-top: 6px;
}

.no-select, .no-select .ns-button, .editor-status, .run-details, .cc-editor-component .header {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.settings-menu .settings-label {
    font-weight: bold;
}

.growl-notification p {
    color: white;
}

.cc-text-editor.full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.cc-editor-component .overlay {
    background: rgba(251, 251, 251, 1);
    opacity: 0.7;
    z-index: 12;
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url('https://cdn.codechef.com/misc/ajax_loader_d.gif');
    background-repeat: no-repeat;
    background-position: center;
}

.cc-editor-component .info-view {
    background: rgba(89, 89, 89, 0.7);
    z-index: 13;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
}

.cc-editor-component .info-view .inset {
    position: relative;
    margin: auto;
    background: white;
    z-index: 14;
    min-width: 300px;
    vertical-align: middle;
    display: inline-block;
    min-height: 30%;
    top: 180px;
    border: 1px solid rgb(213, 213, 213);
    opacity: 1;
    max-width: 938px;
    text-align: left;
}

.cc-editor-component .info-view .key-binding {
    font-size: 12px;
    line-height: 14px;
    margin: 10px 0;
    padding: 0 20px;
    min-width: 400px;
}

.cc-editor-component .info-view .key-binding .key-binding-name {
    display: inline-block;
    font-weight: 600;
}

.cc-editor-component .info-view .key-binding .key-binding-info {
    display: inline-block;
    float: right;
    margin-left: 50px;
}

.cc-editor-component .info-view .inset .content {
    padding: 10px 10px;
    min-width: 300px;
    max-width: 938px;
    min-height: 200px;
    max-height: 300px;
    overflow: auto;
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.cc-editor-component .info-view .inset .close {
    float: right;
    cursor: pointer;
}

.cc-editor-component .chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 5px;

}

.cc-editor-component .chosen-container-single .chosen-single div b {
    background-position: 0px 5px;
}

.cc-editor-component .drop-file-view {
    background: rgba(251, 251, 251, 1);
    opacity: 0.7;
    z-index: 12;
    width: 100%;
    height: 80%;
    position: absolute;
    text-align: center;
}

.cc-editor-component .template-actions {
    float: right;
}

.submit-error {
    border: 1px solid red;
    background-color: rgb(252, 241, 241) !important;
}

.submit-correct {
    border: 1px solid rgb(113, 185, 104);
    background-color: rgb(228, 250, 225) !important;
}

.submit-partial-correct {
    border: 1px solid rgb(185, 182, 29);
    background-color: rgb(229, 250, 191) !important;
}

.cc-editor-component .submit-partial-correct .run-details-info .value > img {
    position: relative;
    top: 6px;
}

.input > div > input, #cc-auto > input {
    width: 312px !important;
}


.tab-input {
    font-weight: normal;
    font-size: 13px !important;
    color: #666 !important;
    background: none;
    height: 30px;
    padding: 0px 5px;
    outline: none;
    transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    border: none;
    width: 42px;
}

.tab-label {
    color: #666;
    font-size: 13px !important;
    padding: 9px 10px 9px 0;
    width: 42px;
    text-align: left;
}


.tab-button {
    background: white;
    border: 1px solid #ECEAEA;
    padding: 0px 13px;
    height: 30px;
    color: #888;
    transition: all 300ms;
    vertical-align: middle;
    outline: none;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    float: left;
}

.tab-button:hover {
    background: #f5f3f3;
}

.tab-active {
    background: #ECEAEA;
    border-color: #ECEAEA;
}

.tabs {
    border-bottom: 1px solid #D5D5D5;
    height: 31px;
}

i.tab-close.fa.fa-close {
    position: relative;
    right: 18px;
    top: 10px;
    font-size: 12px;
    margin: 0;
    padding: 0;
    width: 0px;
    vertical-align: middle;
    float: left;
    cursor: pointer;
}

.tab-edit {
    background-color: #F9F4CB !important;
}

.ns-top {
    border: none;
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.tab-plus {
    width: 12px;
    padding: 8px 0;
}

/*below is to hide a patch on the ide, it comes from the blocks*/
#block-block-68 {
    display: none;
}

.footer-container {
    z-index: 10;
}

.ide-heading-desc-container {
    margin: 32px auto 24px auto;
    width: 800px;
    padding-bottom: 24px;
}

.ide-ads-container {
    width: 700px;
    margin: 0 auto;
}

.no-ads-premium-strip {
    margin-top: 4px;
    font-family: 'Open Sans', serif;
    background: rgba(255, 235, 180, 0.1);
    border: 1px solid rgba(107, 64, 36, 0.3);
    border-radius: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    gap: 24px;
    margin-bottom: 30px;
}

.no-ads-premium-strip .title {
    font-family: 'Open Sans', serif;
    font-weight: 600;
    font-size: 12px;
    color: #4A4A4A;
}

.external-link {
    display: flex;
    flex-direction: row;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #2A67B1;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.external-link-icon-container {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #2A67B115;
    margin-left: 7px;
}

.external-link:hover .external-link-icon-container {
    margin-right: 6px;
    margin-left: 10px;
}

.external-link-icon {
    background: url('https://cdn.codechef.com/images/icons/external-link-blue-small.svg') no-repeat;
    display: inline-block;
    width: 8px;
    height: 8px;
}

.ide-heading {
    font-size: 20px;
    border: none;
    color: #666666;
    font-weight: 400;
    margin: 0 0 12px 0;
    padding: 0 0 12px 0;
    max-width: 680px;
    width: 100%;
}

.ide-desc {
    margin: 0;
    width: 100%;
    font-size: 14px;
    max-width: 680px;
    line-height: 26px;
    font-weight: 400;
    color: #666666;
    padding: 0;
}

.submit-complete-box {
    margin-top: 16px;
    padding: 10px;
    background: #d3e1ff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #000;
}

.submit-complete-box .submit-complete-message {
    color: #544a4a;
    margin: 0;
    padding: 0;
    max-width: 580px;
}

.submit-complete-box .submit-complete-link {
    padding: 2px 8px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    background: #4a90e2;
}

.submit-complete-box .submit-complete-link:hover {
    background: #2a6fc3;
    text-decoration: none;
}


.generic-dialog-box .content {
    text-align: center !important;
}

.generic-dialog-box .ccl-border-bottom {
    border-bottom: 1px solid #969696;
    margin-bottom: 10px;
    padding: 8px;
}
