body {
    display: block;
    margin: 0px;
}
.login-backdrop {
    height: 100vh;
    position: relative;
    background: beige;
}
.login {
    background: lightcoral;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 100px;
    margin: -80px -160px;
    padding: 30px 10px;
    font-family: sans-serif;
}
.login-line div {
    font-weight: bold;
    display: inline-block;
    width: 100px;
    height: 30px;
}
.login-line input {
    width: 190px;
}
.login-submit {
    text-align: center;
    margin-top: 20px;
}
.login-submit input {
    font-weight: bold;
}
.menubar {
    display: flex;
    background: yellowgreen;
    width: calc(100% - 16px); /* less the body margin */
    height: 24px;
    padding: 6px 0 6px 0;
}
.menubar .show-access-log, .menubar .print:not(.disabled), .menubar .new-topic:not(.disabled), .menubar .new-lesson:not(.disabled), .menubar .publish-lesson:not(.disabled), .menubar .redo:not(.disabled), .menubar .rename:not(.disabled), .menubar .rotate-left:not(.disabled), .menubar .rotate-right:not(.disabled), .menubar .threshold:not(.disabled), .menubar .trash:not(.disabled), .menubar .upload-corrections:not(.disabled)  {
    cursor: pointer;
}
.menubar .logout {
    cursor: pointer;
    margin-left: 1em;
    margin-right: 1em;
}
.menubar .spacer {
    flex-grow: 5;
}
.topics {
    width: calc(100%); /* less the body margin */
    background: beige;
    height: calc(100vh - 16px - 24px - 12px - 12px); /* body margin, ht of menubar, menubar padding, our padding h*/
    padding: 6px 0 6px 0;
}
.topic-tree {
    display:inline-block;
    vertical-align: middle;
    font-family: Sans-Serif;
    width: 240px;
    height: calc(100% - 8px);
    overflow: auto;
    white-space: nowrap;
    border: 1px solid black;
    padding: 3px;
}
.topic-tree .file > .clickable::before {
    content: "\25c9  ";
}
.topic-tree .file.islink > .clickable::before {
    font-family: Material Icons;
    content: "link";
}
.topic-tree .bench.student .file .corrections {
    float: right;
}
.topic-tree .bench.student .file.selected .can-correct .upload-corrections {
    font-family: Material Icons;
    display: inline;
}
.topic-tree .bench.student .file .have-corrections .view-corrections {
    font-family: Material Icons;
    display: inline;
}
.view-corrections, .upload-corrections {
    display: none;
}
.topic-tree .folder > .clickable span.with-icon::before {
    content: "\25B6  ";
}
.topic-tree .folder.open > .clickable span.with-icon::before {
    content: "\25BC  ";
}
.topic-tree .folder > .clickable.unpublished span.with-icon::before {
    font-family: Material Icons;
    content: "unpublished";
}
.topic-tree .tdm {
    margin: 0em 0 0.2em 1em;
    display: none;
}
.topic-tree .tdm.show {
    display: block;
}
.topic-tree .folder.open > .tdm {
    display: block;
}
.image {
    display:inline-block;
    vertical-align: middle;
    text-align: center;
    width: calc(100% - 252px);
}
.show-image {
    width: auto;
    height: auto;
    max-width: calc(80vw - 252px);
    max-height: 80vh;
}
.other-content {
    display:inline-block;
    vertical-align: middle;
    text-align: center;
    width: calc(100% - 252px);
    height: calc(100% - 8px);
}
.other-content iframe {
    display:inline-block;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: 100%;
    border: none;
}
.topics .access-log {
    display:inline-block;
    vertical-align: middle;
    text-align: left;
    overflow: auto;
    width: calc(100% - 252px);
    height: calc(100% - 8px);
}
.upload-photo {
    display: inline-block;
    cursor: pointer;
}
.upload-photo input[type="file"], .menubar input[type="file"] {
    display: none;
}
.insert-link {
    display: inline-block;
    cursor: pointer;
}
.edit-link {
    height: 140px;
    position: relative;
    top: 50%;
    margin: -70px;
}
.edit-link input[type='text'] {
    width: 250px;
    height: 30px;
    font-size: 18px;
}
.edit-link div {
    margin-bottom: 10px;
}
.edit-link input[type='submit'] {
    text-align: center;
    margin-top: 20px;
}
.feedback {
    background: green;
    color: white;
    display:inline-block;
    vertical-align: middle;
    text-align: center;
    width: calc(100% - 252px);
    height: calc(100% - 8px);
    text-align: center;
    overflow: auto;
}
.feedback.error {
    background: red;
    color: white;
}
.hidden, .material-icons.hidden, .access-log.hidden {
    display: none;
}
.clickable {
    cursor: pointer;
    font-weight: normal;
}
.clickable.unpublished .title {
    font-style: italic;
}
.disabled {
    color: gray;
}
.selected > .clickable {
    font-weight: bold;
}
input.new-item {
    border: 5px solid black;
    display: block;
}
.adjust-align {
    vertical-align: top;
    position: relative;
    top: 4px;
}
.menubar .threshold.selected {
    font-weight: bold;
    background: white;
}
.spinner {
    margin: auto;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}