:root {
    --darkest-color: #456;
    --dark-color: #369;
    --light-color: #abc;
    --near-lightest-color: #f0f8ff;
    --next-near-lightest-color: #dfefff;
    --lightest-color: #fff;
    --dark-link-color: #023;
    --dark-link-color-hover: #068;
    --dark-link-color-active: #04a;
    --light-link-color: #fff;
    --light-link-color-hover: #ace;
    --light-link-color-active: #7ad;
}

html {
}

body {
    background: var(--darkest-color);
    margin: 0;
    padding: 0;
    font-size: 12pt;
}

body, select, input {
    font-family: 'Roboto', sans-serif;
    font-size: 12pt;
}

select, input {
    min-width: 50%;
}

input[type="button"], input[type="submit"] {
    min-width: initial;
}

a {
    color: var(--dark-link-color);
    font-weight: bold;
}

a:hover {
    color: var(--dark-link-color-hover);
}

a:active {
    color: var(--dark-link-color-active);
}

#outer {
    position: relative;
    box-sizing: border-box;
    max-width: 1024px;
    background: var(--lightest-color);
    padding: 8px;
    margin: 16px auto 0 auto;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.50);
}

#inner {
    width: 100%;
}

#title {
    position: relative;
    margin: 8px 8px 8px 8px;
    height: calc(2rem+16px);
}

#title>h1 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

#title a {
    text-decoration: none;
}

#title #socm {
    position: absolute;
    right: -8px;
    top: -8px;
    padding: 0;
    height: 48px;
}

#title #socm a {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    width: 48px;
    height: 48px;
}

.socmImage {
    width: 100%;
    height: 100%;
}

#pathbar {
    background: var(--dark-color);
    color: var(--lightest-color);
    margin: 8px -8px 0 -8px;
    padding: 8px 16px;
    height: calc(1em+8px);
}

#pathbar a {
    color: var(--light-link-color);
}

#pathbar a:hover {
    color: var(--light-link-color-hover);
}

#pathbar a:active {
    color: var(--light-link-color-active);
}

#pathbar ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#pathbar ul>li {
    position: relative;
    display: inline-block;
}

#pathbar ul>li::after {
    content: '/';
    display: inline-block;
    padding-left: 0.25em;
    padding-right: 0.25em;
}

#pathbar ul>li:last-child::after {
    content: '';
}

#pageOuter {
    box-sizing: border-box;
    position: relative;
    margin: 0 -8px -8px -8px;
    padding: 16px;
}

#page {
}

#page>#pageInfo {
    display: none;
}

.navbar {
    background: var(--light-color);
    margin: -16px -16px 16px -16px;
    padding: 8px 16px;
    height: calc(1em+8px);
}

.navbar ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.navbar ul>li {
    position: relative;
    display: inline-block;
    margin-left: 0.75em;
    margin-right: 0.25em;
}

.navbar ul>li:first-child {
    margin-left: 0;
}

.navbar ul>li::before {
    content: '|';
    display: list-item;
    position: absolute;
    left: -0.75em;
    top: 0;
}

.navbar ul>li:first-child::before {
    content: '';
}

.content {
    margin: -8px;
    padding: 8px;
    border: 2px solid var(--light-color);
    border-radius: 4px;
    background-color: var(--near-lightest-color);
}

.content p {
    padding: 0;
    margin: 8px 0;
}

.content :first-child {
    margin-top: 0;
}

.content :last-child {
    margin-bottom: 0;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
    background: rgba(0,0,0,0.33);
    /* pointer-events: none; */
}

#loadingFirst {
    text-align: center;
}

.navtree {
    background: var(--next-near-lightest-color);
    border-radius: 4px;
    border: 1px solid var(--light-color);
    min-height: 1em;
    padding: 8px;
}

#page>.navtree {
    margin: 16px -8px -8px -8px;
}

.navtree:first-child {
    margin-top: -16px;
}

/*
.navtree:last-child {
    margin-bottom: -16px;
}
*/

.navtree ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.navtree ul>li {
    position: relative;
    display: block;
    margin-left: 1.00em;
    margin-right: 0.25em;
    padding-top: 0.25em;
}

.navtree ul>li::before {
    border-left: 1px solid black;
    content: '\2013';
    display: list-item;
    position: absolute;
    left: -1.00em;
    top: 0;
    height: 1.25em;
    padding-top: 0.25em;
}

.navtree ul>li:last-child::before {
    content: '';
    height: 0.50em;
    border-bottom: 1px solid black;
    width: 0.5em;
}

form {
    display: block;
    padding: 8px;
    margin: 4px;
    border-radius: 4px;
    border: 1px solid var(--light-color);
    background: var(--next-near-lightest-color);
}

input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

select {
    margin-bottom: 8px;
}

p.nothingThere {
    margin-left: 16px;
}

p.error {
    color: red;
    white-space: pre;
}

p.loading {
    margin-left: 16px;
    color: var(--light-color);
}

.fiftyFifty {
    display: block;
    position: relative;
    white-space: nowrap;
    overflow-x: hidden;
    width: 100%;
}

.fiftyFiftyLeft {
    display: inline-block;
    box-sizing: border-box;
    width: calc(50% - 4px);
    margin-right: 4px;
    vertical-align: top;
}

.fiftyFiftyRight {
    display: inline-block;
    box-sizing: border-box;
    width: calc(50% - 4px);
    margin-left: 4px;
    vertical-align: top;
}

.fiftyFifty select, .fiftyFifty input {
    width: 100%;
}

#page>.media {
    margin: 16px -8px -8px -8px;
    overflow: auto;
    position: relative;
}

table.mediaList {
    background: var(--next-near-lightest-color);
    border-radius: 4px;
    border: 1px solid var(--light-color);
    min-height: 1em;
    padding: 8px;
    margin: 4px;
    width: calc(100% - 8px);
    border-spacing: 0;
}

.content table.mediaList:last-child {
    margin-bottom: 4px;
}

table.mediaList>tbody>tr>td {
    white-space: nowrap;
}

table.mediaList>tbody>tr>td>.cellOuter {
    position: relative;
    padding: 4px;
    border-bottom: 1px solid var(--light-color);
    height: 3em;
    overflow: hidden;
}

table.mediaList>tbody>tr>td>.cellOuter>.cellInner {
    position: relative;
    top: 1.5em;
    transform: translateY(-50%);
}

table.mediaList>tbody>tr:first-child>td>.cellOuter {
    margin-top: -8px;
}

table.mediaList>tbody>tr:last-child>td>.cellOuter {
    margin-bottom: -8px;
    border-bottom: none;
}

table.mediaList>tbody>tr>td.pieceName {
    font-weight: bold;
    width: 0px;
}

table.mediaList>tbody>tr>td.pieceName>.cellOuter {
    padding-right: 16px;
}

table.mediaList>tbody>tr>td.mediaName {
    width: 0px;
}

table.mediaList>tbody>tr>td.mediaName .mediaType {
    color: var(--light-color);
}

table.mediaList>tbody>tr>td.mediaName>.cellOuter {
    padding-right: 16px;
}

table.mediaList>tbody>tr>td.embed {
    width: 100%;
}

table.mediaList>tbody>tr>td.embed .noEmbedText {
    color: var(--light-color);
}

table.mediaList>tbody>tr>td.embed audio {
    height: 32px;
    width: 300px;
    outline: 1px solid var(--light-color);
    border-radius: 16px;
}

table.mediaList>tbody>tr>td.links {
    width: 0px;
    text-align: right;
}

#passwordBox {
    position: fixed;
    right: 12px;
    bottom: 12px;
    background: var(--lightest-color);
    padding: 4px;
    margin: 16px auto 0 auto;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.50);
}

.inputLabel {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.inputWithLabel input, .inputWithLabel select {
    margin-left: 16px;
}

.fiftyFifty .inputWithLabel input, .fiftyFifty .inputWithLabel select {
    width: calc(100% - 16px);
}

#lastMessage {
    font-weight: 600;
}
#lastMessage .error {
    color: red;
}
#lastMessage .success {
    color: green;
}

.photoPreview img, img.photoPreview {
    height: 48px;
}

.downloadArrow img, img.downloadArrow {
    padding-left: 4px;
    height: 1em;
    vertical-align: middle;
}

.youtubeEmbed img, img.youtubeEmbed {
    height: 32px;
}

.middleInlineBlock {
    display: inline-block;
    vertical-align: middle;
}

img.embeddedImage {
    object-fit: contain;
    width: 445px;
    height: 500px;
}

.sectionLabel {
    margin: 0;
    padding: 4px 0 4px 0;
}

.latestUploads {
    margin: 16px 0 0 -8px;
    border-radius: 4px;
    border: 2px solid var(--light-color);
    width: calc(100% - 4px);
    position: relative;
    overflow-x: auto;
    padding: 0 8px;
}

.latestUploads>.media {
    width: calc(100% + 22px);
    margin-left: -14px;
    margin-right: -10px;
    position: relative;
}

.latestUploads>.media>.mediaList {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: none;
    margin: 0px;
}

.socmFeeds {
    margin: 8px 0 -8px -8px;
    border-radius: 4px;
    border: 2px solid var(--light-color);
    width: calc(100% - 4px);
    position: relative;
    padding: 0 8px;
}

.socmFeedsInner {
    display: relative;
    text-align: center;
}

.socmFeed {
    background: white;
    display: inline-block;
    vertical-align: top;
    border: 1px solid var(--light-color);
    border-radius: 4px;
    margin: 0 4px 8px 4px;
    width: 475px;
}

@media only screen and (max-width: 1024px) {
    body {
        background: var(--lightest-color);
    }

    #outer {
        background: none;
        margin: 0;
        box-shadow: none;
    }
}
