﻿:root {
  --main-bg-color: #191919;
  --text-color: #eee;
  --theme-primary-bg: #0c5460;
  --theme-primary-fg: #62cede;
}

html {
  font-size: 13px;
  background: var(--main-bg-color);
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--main-bg-color);
  color: var(--text-color);
}


a {
  color: yellow;
  font-weight: bold;
  text-decoration-line: none;
  
  /*text-decoration-line: underline;*/
  /*text-decoration-style: dotted;*/
  /*text-decoration-color: #666;*/
}

a:hover {
  color: yellow;
  font-weight: bold;

  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: white;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}


button, input[type=submit], input[type=button], input[type=file]{
  background: green;
  color: lightgreen;
  font-weight: bold;
  border: none;
  box-shadow: 3px 3px rgba(0, 60, 0, 1);
  margin-bottom: 4px;
  margin-right: 10px;
}

code {
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: lightgreen;
  background: #06282c;

  padding: 2px 8px;
}
pre code {
  display: block;
  color: lightcyan;
  white-space: pre-wrap;
}




/* Page Structure
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  /*margin-bottom: 60px;*/
}


header{
  position: fixed;
  top: 0;
  left: 0;
}

#search {
  width: calc(100vw);
  height: 25px;
  
  font-family: "JetBrains Mono", monospace;
  background: var(--theme-primary-bg);
  color: cyan;
  border: 3px  solid var(--theme-primary-bg);
  border-radius: 0;
  padding-left: 20px;

  outline: none;
}

#search:focus {
  color: yellow;
  font-size: large;
  font-weight: bold;
  border-radius: 0;
}

#search::selection { 
  background: cyan;
  color: black;
}


#search-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 25px;
  width: 60px;
}

#main {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  bottom: 15px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: calc(100vw - 30px);
  padding: 2px 20px 2px 10px;

  white-space: nowrap;
  height: 15px;
  background: #002752;
}

/* Root/Universal Browser ----------------------------------- */
a.resource-type-File {
  color: cyan;
}

a.resource-type-Folder {
  color: mediumpurple;
}

.ui-element + .ui-element
{
  margin-bottom: 20px;
  border-top: 2px solid lightgray;
  padding-top: 10px;
}


/* Payload -------------------------------------------------- */

.list-horz li {
 display: inline-block;
}

#ele-Parents .list-horz li:before { content: '/' }



#panel-console-keys {
  color: magenta;
}

#panel-console-flags:before {
  content: 'flags:';
}

#panel-console-flags {
  color: greenyellow;
  float: right;
}

#panel-container {
  width: 100%;
  height: 100%; 
}

.panel-container-2 {
  display: grid;

  /* https://www.w3schools.com/cssref/pr_grid-template-columns.asp 
   */
    grid-template-columns:  250px auto;
}

.panel-container-3 {

    /*  https://css-tricks.com/auto-sizing-columns-css-grid-auto-fill-vs-auto-fit/   */
    display: grid;  
    grid-template-columns: 250px minmax(250px, 2fr) minmax(250px, 2fr)
}

.panel {
  height: calc(100vh - 25px - 15px);
  background: #222;
  color: #eee;
  padding: 0;
  margin: 0;
}

#panel-left {
  
}

#panel-top {
  padding-left: 10px;
}


.panel-text {
  overflow: auto;
  width: calc(100% - 10px);
  height: 100%;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
  
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
   background: #a9a980;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: white;
}



/*.panel + .panel {*/
/*  border-left: 4px solid #555;*/
/*}*/

.panel-text {
  padding: 0 5px;
}

.data-image-view {
  max-width: 100%;
  max-height: 100%;
}
.command-result-name {
  color: lightgoldenrodyellow;
}

.command-result-name:before {
  content: '>> ';
  color: yellow;
  
}
.command-result-name:after{
  content: ' <<';
  color: yellow;
}


/* Lists ul, ol, dl
-------------------------------------------------- */
dl {
  display: flex;
  flex-flow: row wrap;
  border: solid #333;
  border-width: 1px 1px 0 0;
}
dt {
  flex-basis: 20%;
  padding: 2px 4px;
  background: #333;
  text-align: right;
  color: #fff;
}
dd {
  flex-basis: 70%;
  flex-grow: 1;
  margin: 0;
  padding: 2px 4px;
  border-bottom: 1px solid #333;
}


/* Helpers 
-------------------------------------------------- */

.data-filesize {
  display: inline-block;
  font-family: monospace;
}

.data-filesize-suffix
{
  font-size: smaller;
}
.data-filesize-suffix:before {
  content: ' ';
}
.data-filesize-b {   color:#666; }
.data-filesize-mb {   color:darkcyan; }
.data-filesize-kb {   color:darkgoldenrod; }



/* MARKDOWN ------------------------------------------------------
 */

.markdown {
  background: #1b1e21;
  color: #eee;
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
  padding: 10px;
}

.markdown a {
  font-weight: bold;
  color: yellow;
}


.markdown h1 {
  font-size: 13pt;
  color: deepskyblue;
  border-bottom: solid 2px deepskyblue;
  text-transform: uppercase;
}

.markdown h2, .markdown h3, .markdown h4, .markdown h5 {
  color: cyan;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: solid 1px #003434;
}


.markdown h2 {
  font-size: 12pt;
}

.markdown h3 {
  font-size: 11pt;
  font-weight: bold;
}

.markdown h4 {
  font-size: 11pt;
}

.markdown .contains-task-list {
  list-style: none;
  padding-left: 10px;
}
.markdown .task-list-item input[type=checkbox]:disabled {
  display: inline-block;
  width: 12px !important;
  height: 12px !important;
  margin: 1px 1px;
  appearance: none;
  outline: 2px solid gray;
  box-shadow: none;
  text-align: center;
  /*line-height: 1em;*/
  
}

.markdown .task-list-item input[type=checkbox]:checked {
  outline: 2px solid lightgreen;
}


.markdown .task-list-item input[type=checkbox]:checked:after {
  content: '✔';
  color: lightgreen;
}
.markdown ul {
  margin: 0;
}

.markdown blockquote {
  display: block;
  margin-left: 10px;
  border-left: 5px solid #7abaff;
  border-right: 5px solid #7abaff;;
  padding: 10px;
  background: #0c5460;
}


.markdown img { 
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 10px auto;
  padding: 0px;

  box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.14) , 0px 1px 10px 0px rgba(0,0,0,0.12) , 0px 2px 4px -1px rgba(0,0,0,0.2);
} 


 /* EDITOR ------------------------------------------------------------------------- 

 */

#editor-container {
  height: 100%;
  width: 100%;
}

#editor-main {
  width: calc(100% - 20px);
  height: calc(100% - 75px);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: #062c33;
  border: 3px  solid #062c33;
  color: #eee;
  outline: none;
  
  border-radius: 0;
  
  resize: none;
}
#editor-main:focus {
  border: 3px  solid #62cede;
  border-radius: 0;

}

/* MISC ------------------------------------------------------------------------- 

 */
.prefix {
  display: inline-block;
  min-width: 40px;
  text-align: right;
  font-size: smaller;
  color: #999;
}

.view-content-Text {
  white-space: pre-line;
}


.data-search {
    list-style: none;
  padding: 0;
}

.data-search li b {
  color: forestgreen;
  display: inline-block;
  text-align: right;
  min-width: 50px;
}


.docs {
  padding: 10px;
  font-size: 14px;
  display: block;
  background: #0b2e13;
  font-family: 'Robotoo', sans-serif;
  color: white;
}

.docs b {
  color: lightgreen;
}

.docs i {
  color: lightblue;
}