* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: Arial, sans-serif;
}

#nav {
    width: 250px;
    text-align: center;
}

#nav img {
    text-align: center;
    padding: 30px;
    padding-top: 0;
}

#nav ol {
    text-align: left;
    list-style-type: none;
}

#nav ol li {
    padding: 10px;
    padding-left: 25px;
}

#nav ol li:hover {
    background: #32b5ad;
    color: white;
}

#nav ol li.active {
    background: #2b9b94;
    color: white;
}

#nav ol li a {
    color: inherit;
    text-decoration: none;
}

table {
    border-collapse: collapse;
}

.problem table tr:nth-child(2n) {
    background: #EEE;
}

.problem table td, .problem table th {
    padding: 7px;
    padding-right: 15px;
    text-align: left;
}

p, h1, h2, h3, table, ul, ol {
    margin-bottom: 20px;
}


.not-submitted {
    background: white;
    padding: 3px 10px;
    color: purple;
    border: 1px solid purple;
    border-radius: 100px;
}

.submitted {
    background: white;
    padding: 3px 10px;
    color: teal;
    border: 1px solid teal;
    border-radius: 100px;
}

button, input, select {
    padding: 2px;
}

input {
    font-family: Arial, sans-serif;
}

.charis {
    font-family: CharisSILW, 'Times New Roman', serif;
    line-height: 90%;
}

.upcase-first::first-letter {
    text-transform: uppercase;
}

#layout {
    height: 100%;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: none;
}

#layout > tbody > tr > td {
    height: 100%;
}

#nav {
    width: 250px;
    background: #e6f0ef;
}

#aside {
    width: 120px;
    padding: 20px;
    padding-left: 0;
}

iframe {
    height: 96%;
    border: none;
    border-collapse: collapse;
    display: block;
}

#aside > iframe {
    width: 120px;
}

#main > iframe {
    width: 90%;
    height: 90%;
    margin: 0 auto;
}

.incorrect {
    border: 1px solid red;
}

.correct {
    border: 1px solid green;
}

.analysis-notice {
    background: #f7f3d4;
    padding: 15px;
    margin-bottom: 20px;
    margin-right: 15px;
}

.points {
    font-weight: normal;
}

.invalid {
    background: #ffe4d3;
}

.selected-twice {
    background: #ffe4d3;
    padding: 15px;
    margin-bottom: 20px;
    margin-right: 15px;
}

.problem ol {
    margin-left: 20px;
}

.problem ol li {
    margin-bottom: 10px;
}

.padded {
    /* margin: 20px; */
}

.jigsaw-piece > * {
    display: inline-block;
    vertical-align: top;
}

.jigsaw-piece {
    overflow: auto;
    margin: 10px;
    float: left;
    filter: grayscale(60%);
    -webkit-filter: grayscale(60%);
    transition: filter 0.1s linear;
}

.jigsaw-piece:hover {
    cursor: pointer;
    filter: grayscale(30%);
    -webkit-filter: grayscale(30%);
}

.jigsaw-piece.active {
    filter: none;
    -webkit-filter: none;
}

.jigsaw-text {
    background: #41aaff;
    color: white;
    height: 32px;
    line-height: 32px;
    padding: 0 5px;
}

.jigsaw {
    overflow: auto;
    padding: 15px;
    height: 110px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: #EEE;
}

.jigsaw-toolbar button {
    margin: 0 2px;
    border-radius: 5px;
    width: 24px;
    background: white;
    border: 1px solid #CCC;
}

.jigsaw-toolbar {
    background: #DDD;
    padding: 7px;
    line-height: 1em;
    overflow-x: auto;
    overflow-y: clip;
    height: 25px;
    white-space: nowrap;
}

.jigsaw-toolbar > * {
    display: inline-block;
    vertical-align: top;
}

.jigsaw-toolbar img {
    /* vertical-align: middle; */
}

.jigsaw-toolbar button.active, .jigsaw-toolbar button:active {
    outline: none;
    background: #d3e6e0;
    border-color: white;
}

.jigsaw-toolbar .separator {
    margin: -2px 10px;
    width: 1px;
    height: 28px;
    background: #999;
}

.jigsaw-toolbar a:hover {
    filter: brightness(120%);
    -webkit-filter: brightness(120%);
}

.jigsaw-toolbar a {
    transition: filter 0.3s linear;
}

.jigsaw-toolbar .remove img {
    padding: 2px;
}

.jigsaw-textarea {
    display: block; height: calc(100vh - 203px); min-width: calc(100% - 20px); max-width: calc(100% - 20px); padding: 10px;
    border: none;
    outline: none;
    font: inherit;
    font-size: smaller;
    /* border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px; */
    resize: none;
}

.jigsaw-container {
    border: 1px solid #778;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* margin-bottom: 20px; */
}

.unfilled {
    color: gray;
}
