* {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome and Opera */
    cursor: default !important;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.selectable {
    -webkit-touch-callout: text;
    /* iOS Safari */
    -webkit-user-select: text;
    /* Safari */
    -khtml-user-select: text;
    /* Konqueror HTML */
    -moz-user-select: text;
    /* Firefox */
    -ms-user-select: text;
    /* Internet Explorer/Edge */
    user-select: text;
    /* Non-prefixed version, currently
                                    supported by Chrome and Opera */
    cursor: text !important;
}

body {
    margin: 0 auto;
    padding: 0px;
    max-width: 800px;
}

.oj {
    margin-top: 5px;
    display: inline-block;
    width: fit-content;
    clear: both;
    border: 1px solid transparent;
}

.oj-box {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 6px;
    width: fit-content;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
}

.oj-box:hover {
    filter: brightness(120%);
}

.oj-enabled {
    border: 1px solid rgba(129, 204, 31, 0.671);
}

* {
    border-radius: 2px;
}

#app {
    margin-bottom: 100px;
}

.btn:hover {
    filter: brightness(115%);
}

.actions {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 15px;
    background: var(--vscode-menu-background);
    box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.3);
    border-top: 1px solid rgba(200, 200, 200, 0.2);
    border-radius: 0px !important;
}

.donate-box {
    margin: 10px;
    border-radius: 4px;
    padding: 10px;
    border: 1px solid rgba(70, 70, 70, 0.11);
    /*gradient from light pink ( transparentish ) to full transparent */
    background: linear-gradient(0deg, #f382e067, transparent);
}

.case {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.1),
        rgba(87, 87, 87, 0.2)
    );
    border-bottom: 1px solid rgba(78, 78, 78, 0.3);
    border-top: 1px solid rgba(22, 22, 22, 0.3);
    padding: 8px;
    margin-bottom: 2px;
}

.exec-time {
    background: #fbff001c;
    color: white;
    padding: 2px 5px 2px 5px;
    font-size: 80%;
    border-radius: 4px;
}

.remote-message a {
    text-decoration: underline;
    color: var(--vscode-textLink-foreground);
}

a.btn {
    display: inline-block;
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

a[href]:hover {
    text-decoration: underline;
    cursor: pointer !important;
}

.first-time-message {
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.first-time-message ul li {
    margin-bottom: 10px;
}

.pre,
pre,
textarea {
    background: var(--input-background);
    font-family: Consolas, 'Ubuntu Mono', monospace;
    width: 100%;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    outline: none !important;
    color: bisque;
    max-width: 100%;
    max-height: 250px !important;
    overflow-y: auto;
    resize: none;
    border: 1px solid rgba(100, 100, 100, 0.2);
    margin-bottom: 4px;
}

.meta {
    display: flex;
    align-items: center;
}

pre,
code {
    font-family: Consolas, 'Ubuntu Mono', monospace;
}

.clearfix {
    clear: both;
    content: '';
    width: 100%;
    display: block;
}

::-webkit-resizer {
    display: none;
}

textarea:focus,
textarea:active {
    background: black;
    outline: none !important;
    border: 1px solid #3393cc;
}

.case-metadata {
    display: flex;
}

.help {
    position: absolute;
    top: 15px;
    right: 5px;
}

.right {
    float: right;
}

.left {
    float: left;
}

.toggle-minimize {
    flex-grow: 1;
    padding: 8px;
    margin: -8px;
    margin-right: 0px;
}

.toggle-minimize:hover .case-title {
    filter: brightness(150%);
}

.feedback:hover {
    background-color: rgba(50, 50, 50, 0.3);
}

.time {
    color: rgb(185, 185, 84);
}

.fail {
    color: rgb(126, 38, 38);
}

.pass {
    color: rgb(37, 87, 37);
}

.p10 {
    padding: 10px;
}

.o50 {
    opacity: 0.5;
}

.pad-10 {
    padding: 10px;
    background: #9eabec0d;
}

.btn {
    padding: 2px 5px 2px 5px;
    background: #177bb4;
    color: white;
    outline: none;
    margin-right: 4px;
    margin-bottom: 5px;
    text-align: center;
    border: 2px solid transparent;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-green {
    background: #5c8b2d;
}

.btn-red {
    background: #b0203d;
}

.btn-black {
    background: #383838;
}

.btn-pink {
    background: #ae70ab;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
}

body.vscode-light .btn-pink {
    text-shadow: none;
}

.btn:focus {
    border-color: var(--vscode-focusBorder);
    outline: 3px solid var(--vscode-focusBorder);
    outline-offset: -1px;
}

.btn-orange {
    background: rgba(244, 164, 15, 0.781);
}

.btn-submit {
    margin: 10px;
}

.btn-w80 {
    width: 30px;
    text-align: center;
}

.margin-10 {
    margin: 10px;
}

.text-center {
    text-align: center;
}

h4 {
    padding: 5px;
}

#filepath {
    display: none;
}

#running-next-box {
    padding: 10px;
}

body.vscode-light * {
    color: black;
}

body.vscode-light .btn * {
    color: white !important;
}

body.vscode-light .btn {
    color: white !important;
}

body.vscode-light textarea,
pre {
    background: rgba(255, 255, 255, 0.5);
    outline: none !important;
    border: 1px solid lightgrey;
}

body.vscode-light .case {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9),
        rgba(220, 220, 220, 0.9)
    );
    box-shadow: none;
    border-left: 5px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

body.vscode-light textarea:focus {
    background: white;
    outline: none !important;
    border: 1px solid rgb(28, 145, 184);
}

button:disabled {
    background: rgb(66, 66, 66) !important;
    opacity: 0.1 !important;
}

#problem,
#results {
    display: none;
}

.result-data {
    font-size: 1.15em;
}

.result-pass {
    color: greenyellow;
    padding-right: 5px;
}

.result-fail {
    color: red;
    padding-right: 5px;
}

.running-text {
    color: yellow;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 1.15em;
}

.problem-name {
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    margin: 5px;
    padding: 2px;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pass-rate {
    margin-top: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    background-color: rgba(200, 200, 200, 0.2);
    font-size: 0.9em;
    float: right;
    margin-right: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pass-all {
    color: var(--vscode-notebookStatusSuccessIcon-foreground);
    border-color: var(--vscode-notebookStatusSuccessIcon-foreground);
}

.case {
    border-left: 5px solid var(--vscode-input-background);
}

.case.running {
    border-left-color: yellow !important;
}

.case.passed {
    border-left-color: green !important;
}

.case.failed {
    border-left-color: red !important;
}

.signal {
    padding: 4px;
}

.loader {
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-top: 2px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.5s linear infinite;
    display: inline-block;
    margin: 0px 10px 0px 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.clipboard {
    filter: grayscale(100%);
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 4px;
    cursor: pointer;
    opacity: 0.5;
    font-size: 80%;
}

.expectedoutput {
    filter: grayscale(100%);
    position: absolute;
    top: 0px;
    right: 35px;
    padding: 4px;
    cursor: pointer;
    opacity: 0.5;
    font-size: 80%;
}

.expectedoutput:hover {
    opacity: 1;
}

.textarea-container {
    position: relative;
}

.clipboard:hover {
    opacity: 1;
}

.compiling {
    color: orange;
}

.timeout-av-suggestion {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgb(206, 40, 95);
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification,
body.vscode-light .notification {
    padding: 5px;
    position: fixed;
    top: 5px;
    right: 5px;
    background: rgb(58, 57, 57);
    color: white !important;
    border: 1px solid rgb(92, 95, 97);
}

/* @keyframes runs {
    50% {
        border-color: orange;
    }
    100% {
        border-color: var(--input-background);
    }
} */

.case-number {
    font-weight: bolder;
    color: rgb(25, 152, 211) !important;
}

body.vscode-light .case-number {
    color: rgb(11, 93, 131) !important;
}

.icon,
.codicon {
    vertical-align: middle;
    font-size: 80%;
}

.row {
    display: inline;
}

.page {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1000;
    background-color: var(--vscode-panel-background);
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow-y: auto;
}

.page pre {
    color: var(--vscode-menu-foreground);
    background-color: var(--vscode-menu-background);
    padding: 2px;
    border: 0px;
    margin: 5px 0px;
    overflow: auto;
}

hr {
    border: none;
    border-top: 1px solid var(--vscode-menu-border);
    margin: 10px -10px;
}

.liveUserCount {
    text-align: center;
    opacity: 0.5;
}

.color-green {
    color: rgb(64, 175, 64);
}

@media only screen and (max-width: 400px) {
    .row {
        display: grid;
        grid-auto-columns: 1fr;
        grid-auto-flow: column;
    }

    .size-warning {
        display: block;
    }

    .fallback {
        display: block !important;
    }
}
