html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  display: flex;
  flex-direction: column;
  align-items: center; /* Align items to the top */
  justify-content: flex-start;
  font-size: 16px;
  color: silver;
  background-color: black;
}

#headerTable {
  margin: 0 auto;
  /*border-collapse: collapse;*/
}

#tdMsgBox {
  text-align: right;
  padding-right: 12px;
  vertical-align: middle;
}

#tdLogo {
  padding: 0 12px;
  text-align: center;
  vertical-align: middle;
}

#tdDateTime {
  text-align: left;
  vertical-align: middle;
}

#spanMsgBox {
  width: fit-content;
  padding: 0 8px;
  border: 3px solid red;
}

.content {
  flex: 1; /* This makes the content area take up the remaining space */
  width: 100%;
  height: 100%;
}

.content ul li {
  position: relative;
  /* Optional: set a min-height or padding for larger clickable area */
  min-height: 40px;
}

.content ul li a {
  display: block; /* Makes the <a> fill the <li> horizontally */
  width: 100%; /* Ensures the <a> takes the full width */
  height: 100%; /* Optional: fills the height if <li> has a set height */
  box-sizing: border-box;
  padding: 10px 16px; /* Optional: adjust for desired spacing */
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
}

footer {
  position: relative;
  background-color: black;
  color: silver;
  padding: 10px;
  text-align: center;
}

h1 {
  cursor: pointer;
  font-size: 1.25rem;
  text-align: center;
  margin: 0 auto;
}

h2 {
  margin: 0 auto;
}

h3 {
  color: black;
  background-color: chartreuse;
  border: 1px dotted silver;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 1rem;
  max-width: 800px;
  text-align: center;
}

a {
  font-size: 1rem;
  color: silver;
  text-decoration: none;
  padding: 6px;
}

a:hover {
  cursor: pointer;
  color: chartreuse;
  background-color: black;
  border-color: chartreuse;
}

a:visited {
  color: silver;
  text-decoration: none;
}

#divContents {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 100%; /* Ensure the div takes the full height of its container */
}

#divLogin {
  margin: 12px auto;
}

ul {
  background-color: inherit;
  color: inherit;
  list-style-type: none;
  padding: 0;
  text-align: center; /* Center text inside ul */
  margin: 0; /* Remove default margin */
}

/* Media query for mobile screens */
@media (max-width: 600px) {
  #divContents {
    flex-direction: column; /* Stack items vertically */
  }

  ul {
    width: 100%; /* Ensure ul takes full width */
    text-align: center; /* Center text inside ul */
  }
  h3 {
    max-width: 580px;
  }
}

li {
  color: silver;
  font-size: 1.25rem;
  margin: 10px 0;
}

#aBackTo {
  cursor: pointer;
  font-size: 10px !important;
  white-space: nowrap;
}

#liBackTo a:hover {
  border: 3px solid white;
  border-radius: 8px;
}

.aBtn {
  font-size: 0.8rem;
  background-color: transparent;
  border: 1px solid silver;
  color: silver;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#avlogo {
  display: block;
  margin-bottom: 20px;
  height: 60px;
}

#lblAudio {
  color: silver;
  text-align: center;
  margin: auto;
  font-size: 1.2rem;
  font-weight: bold;
  height: fit-content;
  border-bottom: 2px solid silver;
}

#audioTime {
  background-color: black;
  color: chartreuse;
  padding: 4px;
  border: 2px solid chartreuse;
  border-radius: 6px;
}

.aLink {
  background-color: black;
  color: silver;
  cursor: pointer;
}

.aLink:hover {
  border: 3px solid chartreuse;
  border-radius: 6px;
}

.dynamic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 columns */
  gap: 4px;
  list-style-type: none;
  padding: 0;
}

@media (max-width: 450px) {
  .dynamic-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
  h3 {
    max-width: 420px;
  }
  .dynamic-list-opts {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

.dynamic-list li {
  background-color: rgb(10, 10, 10);
  color: silver;
  border: 2px solid silver;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
}

.dynamic-list li:hover {
  background-color: black;
  color: chartreuse;
  padding: 10px;
  border: 2px solid chartreuse;
  border-radius: 5px;
  text-align: center;
}

.dynamic-list-opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 4px;
  list-style-type: none;
  padding: 0;
}

.dynamic-list-opts li {
  background-color: rgb(10, 10, 10);
  color: silver;
  padding: 6px;
  border: 2px solid silver;
  border-radius: 5px;
  text-align: left;
}

.dynamic-list-opts li:hover {
  background-color: black;
  color: chartreuse;
  padding: 10px;
  border: 2px solid chartreuse;
  border-radius: 5px;
  text-align: left;
}

.custom-audio-player {
  display: none; /* Initially hidden */
  background-color: #000;
  color: #fff;
  height: fit-content;
  padding-left: 10px;
  padding-right: 10px;
  border: 6px inset silver;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.25em;
  min-width: 410px;
}

.custom-audio-player button {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 5px 10px;
  margin: 5px;
  cursor: pointer;
  border-radius: 3px;
}
.custom-audio-player button:hover {
  background-color: #777;
}
.custom-audio-player progress {
  width: 100%;
  height: 16px; /* Twice the default height */
  margin-top: 10px;
}
.custom-audio-player progress::-webkit-progress-value {
  background-color: chartreuse;
}
.custom-audio-player progress::-moz-progress-bar {
  background-color: chartreuse;
}
.custom-audio-player progress::-ms-fill {
  background-color: chartreuse;
}

#divContent {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: 100%;
}

/* Media query for mobile devices */
@media (max-width: 425px) {
  #divAud,
  #divContent {
    max-width: 405px;
    width: 100%; /* Ensure it takes full width up to 400px */
    height: fit-content;
    margin: 0 auto; /* Center the div */
  }
  h3 {
    max-width: 400px;
  }
}

#chkListView {
  margin: 10px auto;
}

#selTracks {
  display: none; /* Initially hidden */
  width: fit-content;
  font-size: 13px;
  font-weight: bold;
  background-color: darkslategray;
  color: chartreuse;
  margin: 10px auto;
}

#menuLinks {
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
  display: flex; /* Use flexbox to create a horizontal list */
  justify-content: space-around; /* Distribute space evenly between items */
}

#menuLinks li {
  display: inline; /* Ensure list items are displayed inline */
}

#menuLinks a {
  text-decoration: none; /* Remove underline from links */
  color: silver; /* Set link color */
  padding: 4px 8px; /* Add padding to links */
  border: 1px dotted white;
  border-radius: 8px;
  display: block; /* Ensure the entire area is clickable */
}

#menuLinks a:hover {
  background-color: #ddd; /* Change background color on hover */
  color: #000; /* Change text color on hover */
  border: 4px solid silver;
  border-radius: 8px;
}

#pBtns {
  white-space: nowrap;
}

#pBtns img {
  cursor: pointer;
  width: 40px;
  max-height: 30px;
  padding: 4px;
}

#pBtns img:hover {
  cursor: pointer;
  width: 40px;
  max-height: 30px;
  padding: 4px;
  border: 3px solid chartreuse;
  border-radius: 6px;
}

#ulBtnRow2 {
  display: flex;
  justify-content: space-between; /* Distribute space evenly between items */
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
  max-height: 36px;
}

#ulBtnRow2 li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0 10px; /* Adds a bit of space between the sliders */
}

#ulBtnRow2 img {
  max-height: 30px;
}

#ulBtnRow2 li {
  border: none;
}

#ulBtnRow2 img:hover {
  cursor: pointer;
  width: 40px;
  max-height: 30px;
  padding: 4px;
  border: 3px solid chartreuse;
  border-radius: 6px;
}

/* General checkbox styling */
input[type='checkbox'] {
  -webkit-appearance: none; /* Remove default styling in WebKit browsers */
  -moz-appearance: none; /* Remove default styling in Firefox */
  transform: scale(1.5);
  appearance: none; /* Remove default styling in other browsers */
  width: 11px; /* Set the width of the checkbox */
  height: 11px; /* Set the height of the checkbox */
  font-size: 14px; /* Set the font size for the checkmark */
  border: 1px solid silver; /* Set the border color and width */
  border-radius: 3px; /* Optional: Make it slightly rounded */
  outline: none; /* Remove the outline */
  cursor: pointer; /* Change the cursor to pointer */
  position: relative; /* Position it relative for the inner checkmark */
  vertical-align: middle; /* */
}

input[type='checkbox']:checked {
  background-color: chartreuse; /* Set background color when checked */
  border-color: chartreuse; /* Set border color when checked */
}

input[type='checkbox']:checked::before {
  content: '✔'; /* Unicode character for checkmark */
  font-size: 14px; /* Adjust the size of the checkmark */
  color: black; /* Set the color of the checkmark */
  position: absolute; /* Position it absolutely */
  top: 50%; /* Center it vertically */
  left: 50%; /* Center it horizontally */
  transform: translate(-50%, -50%); /* Adjust the position */
}

.chkFolders {
  -webkit-appearance: none; /* Remove default styling in WebKit browsers */
  -moz-appearance: none; /* Remove default styling in Firefox */
  appearance: none; /* Remove default styling in other browsers */
  width: 12px; /* Set the width of the checkbox */
  height: 12px; /* Set the height of the checkbox */
  border: 1px solid silver; /* Set the border color and width */
  border-radius: 3px; /* Optional: Make it slightly rounded */
  outline: none; /* Remove the outline */
  cursor: pointer; /* Change the cursor to pointer */
  position: relative; /* Position it relative for the inner checkmark */
  vertical-align: middle; /**/
}

.chkFolders:checked {
  background-color: chartreuse; /* Set background color when checked */
  border-color: chartreuse; /* Set border color when checked */
}

.chkFolders:checked::before {
  content: '✔'; /* Unicode character for checkmark */
  font-size: 10px; /* Adjust the size of the checkmark */
  color: black; /* Set the color of the checkmark */
  position: absolute; /* Position it absolutely */
  top: 50%; /* Center it vertically */
  left: 50%; /* Center it horizontally */
  transform: translate(-50%, -50%); /* Adjust the position */
}

#ulOptions {
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
  display: none; /* Initially hidden */
  position: absolute; /* Position it absolutely */
  color: white;
  background-color: rgb(8, 8, 8); /* Background color */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown effect */
  z-index: 1; /* Ensure it appears above other elements */
  font-size: 10px !important;
  width: fit-content; /* Set a width for the dropdown */
  border: 2px dotted chartreuse;
  border-radius: 12px;
  position: fixed; /* Fixed position relative to the viewport */
  top: 20%; /* 20% below the top of the page */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust horizontal centering */
  width: fit-content; /* Adjust width as needed */
  padding: 10px; /* Optional: padding */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: shadow for better visibility */
  z-index: 1000; /* Ensure it is above other elements */
}

#ulOptions li {
  font-size: 12px;
  text-align: left;
  padding: 2px 10px; /* Add padding to list items */
  border-bottom: 1px dotted #999; /* Add a border between items */
}

#ulOptions li:last-child {
  border-bottom: none; /* Remove border from the last item */
}

#ulOptions li:hover {
  border: 3px solid chartreuse;
  border-radius: 8px;
  cursor: pointer;
}

#ulOptions a {
  height: 14px !important;
}

#imgPlayOptions {
  background-color: black;
  border: 1px dotted chartreuse;
  border-top: none;
  border-radius: 6px;
  padding: 2px;
  cursor: pointer !important;
  width: 50px;
}

.PageOpts {
  display: inline;
  font-size: 12px;
}

#divPageOpts {
  text-align: center;
  margin: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: normal;
}

#btnSelectAll {
  margin-left: 12px;
  margin-bottom: -8px;
}

input[type='radio'] {
  -webkit-appearance: none; /* Remove default styling in WebKit browsers */
  -moz-appearance: none; /* Remove default styling in Firefox */
  appearance: none; /* Remove default styling in other browsers */
  width: 12px; /* Set the width of the radio button */
  height: 12px; /* Set the height of the radio button */
  border: 2px solid silver; /* Set the border color and width */
  border-radius: 50%; /* Make it circular */
  outline: none; /* Remove the outline */
  cursor: pointer; /* Change the cursor to pointer */
  position: relative; /* Position it relative for the inner circle */
}

input[type='radio']:checked::before {
  content: '';
  width: 10px; /* Set the width of the inner circle */
  height: 10px; /* Set the height of the inner circle */
  background-color: chartreuse; /* Set the background color of the inner circle */
  border-radius: 50%; /* Make the inner circle circular */
  position: absolute; /* Position it absolutely */
  top: 50%; /* Center it vertically */
  left: 50%; /* Center it horizontally */
  transform: translate(-50%, -50%); /* Adjust the position */
}

#aStartShuffle {
  font-size: 12px;
  font-weight: normal;
  padding: 4px;
  margin: 4px auto;
  border: 1px dotted white;
  border-radius: 6px;
}

#aStartShuffle:hover {
  border: 3px solid white;
}

.TracksForRandom {
  border: 2px solid white;
  color: white;
  background-color: #202020;
  cursor: default;
}

.chkBoxText {
  font-size: 12px;
  font-weight: normal;
}

.btnSelect {
  display: none; /* hide on first load */
  height: 24px;
  margin: 8px auto 0 auto;
}

#imgFolderOrShuffle,
#imgSelectAll,
#imgCarMode,
#imgSetMode {
  height: 20px;
  cursor: pointer;
  margin: 8px;
  margin-bottom: -6px;
}

#imgStartShufflePlay {
  height: 28px;
  cursor: pointer;
  margin: auto 8px;
  margin-bottom: -12px;
}

#selMaxDur {
  color: whitesmoke;
  background-color: black;
  width: fit-content;
  height: 16px;
  padding: 0;
  border: 1px solid chartreuse;
  border-radius: 6px;
  font-size: 9px;
  display: inline-block;
}

#pMaxDur {
  font-size: 9px;
}

#imgLogoNext {
  position: fixed;
  top: 10px;
  opacity: 0.3;
}

#liCountdown {
  color: chartreuse;
  font-weight: bold;
}

#pPageID {
  height: 1em;
  margin: 0;
}

#divCarModeBackPanel {
  height: 1600px;
  width: 1400px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: black;
  z-index: 98;
  display: none;
}

#divOptsRow,
#divOptsRow2 {
  display: flex;
  justify-content: center; /* Center the images horizontally */
  align-items: center; /* Center the images vertically */
  gap: 10px; /* Add space between the images */
  padding: 10px; /* Optional: Add padding around the control row */
  background-color: black;
  width: fit-content;
  max-width: 1000px;
}

#divOptsRow img,
#divOptsRow2 img {
  width: 0.9in; /* Set the width of the images */
  height: 0.35in; /* Set the height of the images */
  cursor: pointer; /* Change the cursor to pointer on hover */
}

#btnPlaylists {
  width: 0.4in !important;
  height: 0.25in !important;
}

/* Override width and height for id=BtnCar */
#BtnCar {
  width: 0.2in !important;
  height: 0.35in !important;
}

#selTracksPlayed,
#selectPlayListForAdd {
  text-align: center;
  margin: 6px auto;
  background-color: black;
  color: silver;
  border: 2px solid silver;
}

#container {
  display: flex;
  justify-content: space-between; /* Distribute space between items */
  align-items: center; /* Align items vertically */
  width: 100%; /* Ensure the container takes the full width of the screen */
}

#divMsgBox {
  width: fit-content;
  margin-top: 12px;
  max-width: 400px;
  border: 3px outset red;
  background-color: black;
  color: silver;
  text-align: right;
  font-size: 0.8rem;
  padding: 6px;
  display: inline-block;
}

#txtSysDateTime {
  width: fit-content;
  margin-top: -8px;
  max-width: 400px;
  border: 4px outset chartreuse;
  color: chartreuse;
  background-color: black;
  text-align: center;
  font-size: 1rem;
  padding: 6px;
  display: inline-block;
  box-sizing: border-box;
}

#divStatusBox {
  /* Add any additional styles for divStatusBox */
  top: 5px;
  width: fit-content;
  max-width: 400px;
  border: 3px outset red;
  background-color: black;
  text-align: left;
  font-size: 0.8rem;
  padding: 6px;
}

#divDiag {
  position: fixed; /* Fixed position relative to the viewport */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust the position to center */
  padding: 1em; /* 1.0 em of padding */
  background-color: white; /* White background */
  color: black; /* Black letters */
  font-size: 1.25em; /* Font size of 1.25em */
  width: fit-content; /* Width sized to fit-content */
  max-width: 600px; /* Maximum width of 600px */
  border: 3px outset red; /* Border for visual distinction */
  text-align: left; /* Text alignment */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: shadow for better visibility */
  z-index: 1000; /* Ensure it is above other elements */
}
#divFullPanelDisplay {
  position: fixed; /* Fixed position relative to the viewport */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
  width: 100%; /* Full width of the viewport */
  height: fit-content; /* only as high as needed */
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  color: white; /* White text color */
  display: none; /* Initially hidden */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  z-index: 999; /* Ensure it appears above other elements */
  padding: 20px; /* Optional: padding around the content */
  box-sizing: border-box; /* Include padding in width and height calculations */
  font-size: 2rem; /* Font size of 2.0em */
  text-align: center; /* Center text alignment */
  overflow: auto;
}

#divFullPanelDisplay a {
  text-decoration: none; /* Remove underline from links */
  color: #555; /* Set link color */
  background-color: #000;
  padding: 4px 8px; /* Add padding to links */
  border: 2px dotted #555;
  border-radius: 8px;
  display: inline-block; /* Ensure it takes only the width of the text */
  width: fit-content;
  font-size: 1rem; /* Font size of 1.5em */
  margin: auto 0.5em; /* Center the links with some margin */
}

#divFullPanelDisplay a:hover {
  background-color: #000; /* Change background color on hover */
  color: #666; /* Change text color on hover */
  border: 4px solid #666;
  border-radius: 8px;
}

#BtnNight {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  position: relative;
}
#BtnNight img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

#imgAddPlayList,
#imgGetPLTracks {
  height: 24px;
  width: 86px;
  margin-top: 8px;
  margin-left: 8px;
  margin-bottom: -8px;
  cursor: pointer;
}

#imgAddPlayList:hover,
#imgGetPLTracks:hover {
  border: 3px solid chartreuse;
  border-radius: 6px;
}

#lblSelectAllText {
  padding: 5px 4px;
  color: chartreuse;
  border: 2px solid chartreuse;
  border-radius: 6px;
  background-color: black;
  font-size: 0.8rem;
}
#lblSelectAllText:hover {
  cursor: pointer;
  color: black;
  background-color: rgb(200, 200, 200);
  border: 3px solid chartreuse;
  border-radius: 6px;
}

#ULLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1em; /* optional: space between items */
  padding: 0;
  margin: 0;
  list-style: none;
}

#ULLinks li {
  flex: 1 1 200px; /* grow, shrink, min width */
  min-width: 180px; /* minimum width for a column */
  max-width: 300px; /* optional: maximum width */
  box-sizing: border-box;
  display: flex; /* Add flexbox to align checkbox and link */
  align-items: center; /* Vertically center the checkbox and link */
  gap: 8px; /* Space between checkbox and link */
}

#ULLinks li a {
  display: block; /* Makes the link a block element */
  padding: 8px 12px; /* Adds clickable padding inside the link */
  text-decoration: none;
  color: inherit; /* Makes the link text use the color of the li */
  flex: 1; /* Allow the link to take remaining space */
}

/* Style for the track checkboxes */
.track-checkbox {
  flex-shrink: 0; /* Prevent checkbox from shrinking */
  margin: 0 0 0 8px; /* Add 8px left margin */
}

#footerHome {
  background-color: black;
  color: silver;
  text-align: center;
  padding: 10px;
  margin-top: auto; /* Pushes the footer to the bottom */
}

/* Styling for the Time/Volume info bar below the player controls */
#divAud .info-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  margin: 8px 0 0 0;
  list-style: none;
  background-color: transparent; /* Set to transparent to show the black background */
}

#divAud .info-bar li {
  font-size: 14px; /* Set font size directly on the li to override general styles */
  font-weight: bold; /* Make the text bold */
  color: silver; /* Set text color for visibility on black background */
  padding: 4px 0;
  margin: -4px 0; /* Remove any inherited margin that might affect layout */
  min-height: auto;
  text-align: center;
}
