* {
  font-family: sans-serif, "Times New Roman", Times, serif;
}

:root {
    --selectedColor: #00C895;
    --notSelectedColor: #333;
    --hoverColor: #CACACA;
    --backgroundColor: #F4F4F4;
	--darkBlueColor: #08223C;
	--deepBlueColor: #093B5F;
    --skyBlueColor: #C2F7FF;
	--brightGreenColor: #ABFF88;
	--classicGreenColor: #00C895;
    --tableHeaderTextColor: #FFF;
    --tableBackGroundColor: #EAEAEA;
    --oddTableBackgroundColor: #D6D6D6;
    --tableTextColor: #663300;
    --standardBlueColor: #0000FF;
    --standardRedColor: #FF0000;
    --standardGreenColor: #008000;
    --standardBlackColor: #000000;
    --standardWhiteColor: #FFFFFF;
}

.blue-text {
  color: var(--standardBlueColor);
}

.red-text {
  color: var(--standardRedColor);
}

body {
  color: var(--notSelectedColor);
  background-color: var(--backgroundColor);
  z-index: -1;
  font-size: 16px;
  font-size: clamp(10px, 1.5vw, 16px);

}

.spacer {
    flex: 1; /* Takes up all available space, pushing next items to the right */
}

input[type="submit"], button.commonButton, .drag-area button {
  background: linear-gradient(to right, var(--brightGreenColor) 0%, var(--classicGreenColor) 100%);
  color: var(--notSelectedColor);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
  font-size: clamp(10px, 2vw, 18px);
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: 1px;
  margin-bottom: 1px;
}

input[type="submit"]:hover, button.commonButton:hover, .drag-area button:hover {
  background: var(--selectedColor);
}

fieldset {
  border-radius: 20px;
}

p.indent {
  margin-left: 50px;
  line-height: 1.3;
}

/* header */

div.topBars {
   position: relative;
   display: flex;
   align-items: center;
   z-index: 999;
   width:100%;
   color: var(--standardWhiteColor);
   font-size: 18px;
   font-size: clamp(10px, 2vw, 20px);
   text-decoration: none;
}

div.firstBar {
   font-size: 16px;
   font-size: clamp(10px, 1.75vw, 16px);
}

div.secondBar, div.thirdBar {
   font-size: 18px;
   font-size: clamp(10px, 2vw, 18px);	
}

div.firstBar, div.firstBar ul {
   background-color: var(--darkBlueColor);
}

div.secondBar, div.secondBar ul {
   background-color: var(--deepBlueColor);
}

div.thirdBar, div.thirdBar ul {
   background-color: var(--darkBlueColor);
}

.responsive-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-left: 1vw;
  margin-right: 1vw;
  width: 100%;
  max-width: 15vw;
  aspect-ratio: 700 / 90;
}

.logo-link {
  display: inline-block;
  line-height: 0; 
  vertical-align: middle;
  border-radius: 4px;
  padding: 2px; 
  transition: box-shadow 0.2s ease; /* Makes the border fade in nicely */
}

.logo-link img {
  margin-top: 2px;
  margin-bottom: 2px;
  display: block; 
  max-height: 100%;
  width: auto;
}

/* This is for keyboard focus for accessibility */
*:focus-visible:not(.logo-link):not(button.commonButton) {
  outline: 4px solid var(--classicGreenColor);
}

button.commonButton:focus-visible {
  box-shadow: 0 0 0 4px var(--standardWhiteColor);
  outline: 4px solid var(--standardBlackColor);
  outline-offset: 4px;
}

.logo-link:hover,
.logo-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--classicGreenColor); 
  outline: none;
}

#logo{
   height: auto;
   width: auto;
   max-width: 15vw;
}

@media (min-width: 625px) {
  img {
    max-width: 500px;
  }
  input[type="submit"], button.commonButton, .drag-area button  {
      margin-left: 8px;
      margin-right: 8px
  }
}

.main-navigation  ul {
  margin-top: 0;
  margin-bottom: 0;
}

ul.main-navigation li {
  position: relative;
  z-index: 999;
  float: left;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
  align-items: center;
}

ul.main-navigation li a,.dropbtn {
  margin-left: 1vw;
  margin-right: 1vw;
}

hr.vertical {
  float: left;
  color: var(--standardWhiteColor);
  background-color: var(--standardWhiteColor);
  width: 1px;
  height: 20px;
  max-height: 40px;
  margin-left: 1vw;
  margin-right: 1vw;
}

#diverror {
  color: var(--standardRedColor);
}

#divsuccess {
  color: var(--standardGreenColor);
}

fieldset.login {
  border-width: 2px;
  display: inline-block;
  border-style: solid;
  border-color: var(--standardBlackColor);
}

/* license */

iframe {
    position: relative;
    width: 100%;
    height: 400px;
    border: 1px solid var(--standardBlackColor);
    white-space: normal;
    overflow-y: auto; overflow-x:hidden;
}

/* menu */

.div-center {
  position: absolute;
  left: 10px;
  top: 10px;
}

.main-navigation { 
  z-index: 1000
}

#menu-overlay {
  display: none;
  position: fixed;
  background-color: var(--backgroundColor);
  width: 100%;
  height: 100%;
  z-index: 100;
  top: 0px;
  left: 0px;
}

.parent {
  position: relative;
}

.main-navigation li a:hover,a.active {
  color: var(--selectedColor);
}

.main-navigation li button.dropbtn:hover,button.dropbtn:focus,button.dropbtn.active {
  color: var(--selectedColor);
}

ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
  background: var(--standardWhiteColor);
  z-index: 999;
}

.verticallist {
  display: none;
  margin: 0px;
  padding: 0px;
}

.verticallist ul li {
  left: 0px;
}

.verticallist > li:first-child {
  margin-top: 25px;
}

.div-center ul li {
  position: relative;
  z-index: 999;
  float: left;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

ul li a,.dropbtn {
  display: block;
  padding: 3px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--standardWhiteColor);
  z-index: 999;
  margin-left: 15px;
  margin-right: 15px;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

ul ul ul {
  left: 100%;
  top: 0px;
}

li > ul {
  display: block;
  position: absolute;
}

.dropdown {
  position: relative;
  display: inline-block;
  color: var(--standardBlackColor);;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--standardWhiteColor);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: var(--standardBlackColor);
  padding: 6px 6px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: var(--hoverColor);}

/* Show the dropdown menu on hover and keyboard focus */
.dropdown:hover .dropdown-content,.dropdown-content.is-open {display: block;}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 30%, 250px), auto));
  align-items: stretch;
  justify-content: start;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--standardBlackColor);  
}

.tile {
  display: flex;          /* Added: Makes the link behave like a box */
  flex-direction: column; /* Added: Stacks SVG and Text vertically */
  box-sizing: border-box;
  width: 90%;
  height: 90%;
  align-items: center;
  padding: 20px;
  background-color: var(--darkBlueColor);
  border: 4px solid transparent;
  border-radius: 8px;
  margin: 15px 0px 0px 0px;
  text-decoration: none; /* Removes default link underline */
  color: var(--standardWhiteColor);
}

.tile:hover {
  outline: 4px solid var(--classicGreenColor);
}

.tile:hover h3 {
  color: var(--classicGreenColor);
}

.tile a {
  color: inherit;
  margin: 0 0 0 0; 
}

.tile-icon {
  width: clamp(30px, 8vw, 70px); 
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: clamp(5px, 2vw, 15px);
}

.tile-content {
   margin: 0 0 0 0; 
}

.tile-content h3 {
  margin: 8px 0 8px 0;
  font-size: clamp(10px, 2vw, 18px);
}

.tile-content p {
  font-size: clamp(8px, 1.5vw, 14px);
  margin-top: 0px;
  margin-bottom: 0px;
}

/* directory */

.radio {
  display: inline-block; 
}

.checkbox {
  display: inline-block; 
}

fieldset.group  { 
  margin: 0; 
  padding: 0; 
  margin-bottom: 1.25em; 
  padding: .125em; 
} 

fieldset.group legend { 
  margin: 0; 
  padding: 0; 
  font-weight: bold; 
  margin-left: 20px; 
  font-size: 100%; 
  color: var(--standardBlackColor); 
}

ul.checkbox  {
  background-color: var(--backgroundColor);
  margin: 0; 
  padding: 0; 
  margin-left: 0px; 
  list-style: none; 
} 

ul.checkbox li input { 
  margin-right: .45em; 
} 

ul.checkbox li { 
  border: 1px transparent solid; 
  display:inline-block;
  width:24em;
} 

ul.checkbox li label { 
  margin-left: 0; 
} 

p.dirname {
   text-align: center;
   font-size: 1.5em;
   font-size: clamp(10px, 2.5vw, 20px);
   font-weight: bold;
}

#container {
  box-shadow: 0px 5px 10px -5px rgba(0,0,0,0.5);
  position: relative;
  background: var(--standardWhiteColor); 
}

table {
  background-color: var(--tableBackGroundColor);
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0px;
}

table.narrow {
  width: auto;
}

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after { 
    content: " \25B4\25BE" 
}

table#dirtable.sortable {
   font-size: 16px;
   font-size: clamp(10px, 2vw, 18px);
}

th {
  background-color: var(--deepBlueColor);
  color: var(--tableHeaderTextColor);
  color: var(--tableHeaderTextColor);
  cursor: pointer;
  padding: 5px 10px 0px 0px;
}

.narrow {
  padding-top: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.narrowright {
	text-align: right;
}

td, th {
  text-align: left;
}

td.deletebutton {
  vertical-align: middle;
}

button.deletebutton {
  border: 0px; 
  background: transparent;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 10px;
}

a {
  text-decoration: none;
}

td a {
  color: var(--tableTextColor);
  display: block;
  padding: 5px 0px;
}
th a {
  padding-left: 0px;
}

td:first-of-type a {
  background: url(./.images/file.png) no-repeat 10px 50%;
}

td:not(:first-of-type) a {
  background-image: none;
} 

tr:nth-of-type(odd) {
  background-color: var(--oddTableBackgroundColor);
}

tr:hover td {
  background-color: var(--hoverColor);
}

fieldset.dir {
  border-width: 1px;
  display: inline-block;
  border-style: solid;
  border-color: var(--standardBlackColor);
}

td.td_image, th.td_image {
  padding: 0px 0px 0px 0px; 
  border-spacing: 0px 0px;
  width: 25px !important;
  max-width: 25px !important;
}

td.td_image img {
  padding: 0px 0px 0px 0px; 
}

/* directories */
table tr.dir td:first-of-type a
{background-image: url(./.images/folder.png);}

/* file upload progress */
.drag-area{
  border: 2px dashed var(--notSelectedColor);
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--tableBackGroundColor);
}
.drag-area.active{
  border: 2px solid var(--notSelectedColor);
}
.drag-area header{
  #font-size: 1.5em;
  font-weight: bold;
  font-size: 25px;
  font-size: clamp(10px, 2.5vw, 25px);	
  color: var(--notSelectedColor);
}
.drag-area span{
  #font-size: 1.2em;
  font-size: 20px;
  font-size: clamp(10px, 2vw, 20px);	
  font-weight: 500;
  color: var(--notSelectedColor);  
  margin: 10px 0px 15px 0px;
}

div .row{
  margin-bottom: 10px;
  background: var(--skyBlueColor);
  list-style: none;
  padding: 5px 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
div .details span{
  font-size: 14px;
}
.progress-area{
  width: 100%;
}
.progress-area .row .content{
  width: 100%;
  margin-left: 15px;
}
.progress-area .details{
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  justify-content: space-between;
}
.progress-area .content .progress-bar{
  height: 6px;
  width: 100%;
  margin-bottom: 4px;
  background: #fff;
  border-radius: 30px;
}
.content .progress-bar .progress{
  height: 100%;
  width: 0%;
  background: var(--deepBlueColor);
  border-radius: inherit;
}
.uploaded-area{
  width: 100%;
  max-height: 232px;
  overflow-y: scroll;
}
.uploaded-area .cancelled{
  color: var(--standardRedColor);
}
.uploaded-area::-webkit-scrollbar{
  width: 0px;
}
.uploaded-area .row .content{
  display: flex;
  align-items: center;
}
.uploaded-area .row .details{
  display: flex;
  margin-left: 15px;
  flex-direction: column;
}
