main.shadow {
    z-index: 0;
    position: relative;
    box-shadow: 0 0 0 1000px rgba(0,0,0,.4), inset 0 0 0 1000px rgba(0,0,0,.4) !important;
}

main.shadow .end, main.shadow .problem_header td {
    border-bottom-style: none !important;
}

main.shadow pre {
    background-color: rgba(0,0,0,0)
}

#sidenav {
    /* border-right-style: solid;
    border-right-color: #eaecef; */
    height: 100%;
    width: 0%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #fafbfe;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: clip;
    transition: 0.2s;
    padding-top: 60px;
}

#sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    font-weight: 600;
}

#sidenav a:hover {
    color: #660000;
}

#sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#sidenav nav {
    margin-top: 50px;
}

.sidebar-button {
    display: flex;
}

#navbar {
    z-index: 2;
    background-color: #fff;
    position: fixed;
    width: 100%;
    /* border-bottom-style: solid;
    border-bottom-color: #eaecef; */
    padding-bottom: 10px;
    padding-top: 0.6rem;
    top: 0px;
}

#navbar .logo {
    height: 1.5rem;
    margin-right: 2rem;
    margin-left: 1.3rem;
    min-width: 2rem;
    vertical-align: top;
}

#navbar svg {
    height: 1.5rem;
    width: 1.5rem;
}

#navbar .sitename {
    font-size: 1.3rem;
    font-weight: 600;
}

nav .indent {
    margin-left: 30px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.sticky + .content {
    padding-top: 102px;
}

@media screen and (max-height: 450px) {
    #sidenav { padding-top: 15px; }
    #sidenav a { font-size: 18px; }
}

.home .banner img {
    display: block;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    max-height: 5rem;
    max-width: 100%;
}

.banner {
    padding-bottom: 0px;
    padding-top: 25px;
}

.home .banner h1 {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 19.2px;
    margin-top: 19.2px;
    /* width: 95%; */
    text-align: center; 
}

.home .banner p {
    display: block;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 35rem;
    text-align: center;
}

.home {
    overflow: auto;
    display: block;
    width: 98%;
    margin: auto;
    text-align: left;
}

.home h2, .home h3 {
    text-align: center;
}

.home p {
    display: block;
    line-height: 1.3;
    text-align: left;
}

.home ul, .home ol {
    list-style-position: inside;
    line-height: 1.3;
    text-align: left;
}

li code {
    font-size: 0.7rem !important;
}

pre[class*="language-"] {
    border-radius: 6px !important;
}

.home .special {
    padding-left: 15%;
}

.home .end {
    border-bottom-style: solid;
    border-bottom-color: #cccccc; 
    padding-bottom: 20px;
}

/* code:not(main.dark code) {
    font-family: Consolas, "courier new";
    background-color: #f1f1f1;
    border-radius: 7px;
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
} */

.overflow {
    overflow: auto !important;
    padding-left: 0%;
}

a {
    color: #0b70be;
}

#toggle {
    text-align: center;
    font-size: 0.8rem;
}

body.dark {
    background-color: #121212;
    color: #ffffff;
}

body.dark #navbar, body.dark #sidenav {
    background-color: #121212;
}

body.dark img:not(td.result img), body.dark svg {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(232deg) brightness(106%) contrast(103%);
}
.replit {
    position: fixed;
    z-index: 1;
    top: 4rem;
    right: 0rem;
    /* overflow: hidden; */
}

.replit-frame-collapsed {
    width: 0px;
    height: 0px;
}

@media screen and (orientation:portrait) {
    .replit {
        width: 0rem;
        height: 0rem;
    }
    div.resize {
        position: absolute;
        left: -0.5rem;
        top: 2rem;
        height: 28rem;
        width: 0.5rem;
        background: #600;
        display: none;
    }
    .replit-collapse {
        position: absolute;
        left: -2rem;
        top: 0rem;
        padding: 4px;
        background: rgba(0,0,0,.2);
        transform: rotate(-90deg);
        transition-duration: 250ms;
        display: none;
    }
    
    .replit-expand {
        position: absolute;
        left: -2rem;
        top: 0rem;
        padding: 4px;
        background: rgba(0,0,0,.2);
        transform: rotate(90deg);
        transition-duration: 250ms;
        display: none;
    }
}

@media screen and (orientation:landscape) {
    .replit-frame-expanded {
        /* resize: horizontal;
        overflow: auto; */
        width: 25rem;
        height: 30rem;
    }
    div.resize {
        position: absolute;
        left: -0.5rem;
        top: 2rem;
        height: 28rem;
        width: 0.5rem;
        background: #600;
        display: inherit;
    }
    .replit-collapse {
        position: absolute;
        left: -2rem;
        top: 0rem;
        padding: 4px;
        background: rgba(0,0,0,.2);
        transform: rotate(-90deg);
        transition-duration: 250ms;
        display: inherit;
    }
    
    .replit-expand {
        position: absolute;
        left: -2rem;
        top: 0rem;
        padding: 4px;
        background: rgba(0,0,0,.2);
        transform: rotate(90deg);
        transition-duration: 250ms;
        display: inherit;
    }
}

.exercise {
    background-color: rgb(240, 237, 229);
    border-radius: 6px;
    font-size: 1.25em;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75em;
    overflow-x: auto;
    padding-bottom: 1em;
    padding-left: 26px;
    padding-right: 26px;
    padding-top: 1em;
}

.exercise .title {
    color: rgb(117, 117, 117);
    font-size: 0.9em;
    padding-bottom: 0.5em;
    text-transform: capitalize;
}

.exercise .tasks_table .problem_header td {
    border-bottom-color: rgb(220, 220, 220);
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-spacing: 0;
    color: rgb(68, 68, 68);
    font-family: Ruda, "Segoe UI", Calibri, "Trebuchet MS", Helvetica, Verdana, sans-serif;
    font-size: 0.9em;
    font-stretch: normal;
    font-style: normal;
    padding-left: 0px;
}

table.tasks_table {
    border-collapse: collapse;
}

td.task {
    font-size: 0.9em;
    padding-right: 1.5em;
    text-align: center;
    text-transform: capitalize;
    vertical-align: top;
    width: 1em;
}

td.text {
    color: black;
    padding-right: 0.5em;
    vertical-align: top;
    white-space: pre;
    font-size: 0.8em;
}

input.exercise_input_field {
    outline: none;
    box-sizing: border-box;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-top-width: 0px;
    font-family: monospace;
    font-size: 1.125em;
    height: 2.125em;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    /*border-radius: 6px;*/
}

input.continue.disabled {
    background-color: rgb(201, 201, 201);
    color: rgb(249, 249, 249);
    font-size: 1.125em;
    height: 2.125em;
    width: fit-content;
    text-align: center;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-top-width: 0px;
    border-radius: 6px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    transition-delay: 0s;
    transition-duration: 225ms;
    transition-property: background-color;
    transition-timing-function: ease;
}

@media only screen and (max-width: 600px) {
    .col-xs-12 {
        width: 100%;
    }
}

body.dark .exercise {
    background-color: rgb(30, 30, 30);
}

body.dark td.text {
    color: white;
}

body.dark div.title, body.dark .problem_header td {
    color: rgb(200, 200, 200) !important;
}

body.dark input.continue.disabled {
    background-color: #444;
}

body.dark input.exercise_input_field {
    background-color: #111;
    color: white;
}

main.shadow .exercise {
    background-color: rgba(0, 0, 0, 0);
}

img.taskImg {
    width: 2rem;
    height: 2rem;
    aspect-ratio: 1;
}

body input.continue {
    outline: none;
    border: 0; 
    width: 100%;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-size: 1.125em;
    height: 1.5em;
    background-color: rgb(201, 201, 201);
    color: rgb(249, 249, 249);
    /*border-radius: 6px;*/
}

body.dark input.continue {
    background-color: rgb(6, 6, 6);
    color: rgb(200, 200, 200);
}

body form.cssmatch {
    display: flex;
    flex-direction: column;
}

body input.continue.green {
    background-color: green;
}
