/* Non-admin page styles */
a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Page layout. */
body {
    font: 10pt sans-serif;
    color: #000;
    text-align: justify;
    overflow: hidden;
    border: 0;
    padding: 0;
    margin: 0;
}

.flex-container {
    display: flex;
    height: 100vh;
}

/* Drag-bar layout. */
.left-column {
    width: 25%;
    overflow: auto;
}

.right-column {
    width: 75%;
    overflow: auto;
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.drag-bar {
    width: 10px;
    background-color: darkgrey;
    cursor: col-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tree-view styling. */
.tree-view {
    background-color: lightgrey;
}

/* Folders in the tree view. */
.folder {
    cursor: pointer;
}

/* Expand/collapse span. */
.expand-collapse {
    font-weight: bold;
}

li.collapsed > ul {
    display: none;
}

li.expanded > ul {
    display: block;
}

/* Bolding for selected items. */
li.selected > .path-link {
    font-weight: bold;
}

/* Override bolding for children of selected items. */
.path-link {
    font-weight: normal;
}

/* Files in the tree view. */
.file {
    cursor: default;
}

/* Content styling. */
.content {
    background-color: lightblue;
}


div.spacer {
    clear: both;
}

div.thumb-pad { /* The containing rectangle for the thumbs. Without it, the bottom right looks wrong. */
    border-radius: 30px;
    background-color: #BDCEFB;
    /* margin:0px 10px 0px 10px; /* Spacing around it on the page. */
}

div.thumb { /* Each thumbnail's rectangle of text and image. */
    float: left; /* Makes them grid instead of vertical. */
    padding: 0 0 0 10px; /* Padding against left of thumb-pad */
    text-align: center;
    width: 170px; /* Keeps 'em aligned on the grid */
}

div.thumb p { /* Reduces spacing around the thumb text */
    margin: 0;
    border: 0;
    padding: 0;
}

/* Image styling. */
img.file {
    /* Sane size */
    max-width: 100%;
    max-height: 70vh; /* % of visible height */
    width: auto;
    height: auto;
    /* Center */
    display: block;
    margin: 0 auto;
}

div.thumb img {
    margin: 4px 6px 6px 4px; /* Positioning relative to text */
    background-color: #fff; /* White border */
    padding: 4px; /* White border */
    border: 1px solid #a9a9a9; /* Black border outside the white one. */
    box-shadow: 10px 5px 5px #777777; /* Drop shadow */
}

figure {
    margin: 0;
    padding: 0;
    display: block;
}

figcaption {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
    color: #333;
}

/* Broken image indicator. */
.broken-image {
    display: none; /* Starts out hidden. */
}

/* Loading spinner, via https://loading.io/. */
.lds-roller,
.lds-roller div,
.lds-roller div:after {
    box-sizing: border-box;
}

.lds-roller-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80px; /* Match the height of the spinner */
}

.lds-roller {
    /* display: none; */ /* Starts out hidden. */
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: currentColor;
    margin: -3.6px 0 0 -3.6px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 62.62742px;
    left: 62.62742px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 67.71281px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 70.90963px;
    left: 48.28221px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 70.90963px;
    left: 31.71779px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 67.71281px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 62.62742px;
    left: 17.37258px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12.28719px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
