html { scroll-behavior: smooth; }

body {
  /* DARK THEME BACKGROUND */
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%); /* Deep charcoal to black */
  color: #f0f0f0; /* Light text for dark background */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  overflow-y: scroll;
  margin: 0;
  padding: 0;
}

.dev-banner {
    position: fixed;
    top:45%;
    left: 0;
    width: 100%;
    z-index: 9999;

    padding: 1em;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;

    /* Adjust dev banner for dark theme */
    background: linear-gradient(135deg, #333333aa 0%, #66666647 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);

    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8),
                 -1px -1px 2px rgba(255,255,255,0.2);
}
#dev-inside { width:30%; margin:0 auto }
h3 { font-size: 1.2em } /* Keep existing h3 style for dev banner, but general h3 below will be lighter */
.close-btn {
  position: absolute;
  right: 0.362em;
  top: 25.2%;
  transform: translateY(-50%);
  font-size: 1.1em;
  cursor: pointer;
  color: #ccc; /* Lighter color for close button */
  transition: color 0.2s ease;
  user-select: none;
}
.close-btn:hover {
  color: #ff3333; /* Red hover for close */
}

/* Header styling */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1em;
  /* Darker header with subtle gradient */
  background: linear-gradient(90deg, #2a3d2b 0%, #1e2c1f 33%, #000000 100%);
  border-bottom: 1px solid #444; /* Darker border */
  max-height: 6.7em;
  font-weight: bold;
  text-align: right;
  z-index: 999;
  color: #f0f0f0; /* Light text */
  transition: all ease-in-out 0.3s;
}

.header.scrolled {
  padding:  0.5em; /* Reduced padding for thin appearance */
  max-height: 4em; /* Reduced height */
  font-size: 0.9em; /* Slightly smaller font */
  background: linear-gradient(90deg, #2a3d2b 0%, #1e2c1f 66%, #000000 100%);
}

#banR {
  margin: -3.7em 0 0 0;
  display: flex;
  align-items: center;
  font-size: 0.85em;
  font-weight:bolder;
}
#banR.scrolled{
 margin-top: -3.9em;
  font-size: 0.66em;
}
#banR img {
  width:  5.82em;  /* Adjust size as needed */
  height: auto;
  margin: -0em 0.52em 0 0.36em; /* Spacing between logo and text */
}
#imgGizmo.scrolled {
  margin-top: -0.63em;
  width:4.36em
}

#subBanR{
  margin:3.1em 0 0 0.2em;
  font-size: 1.4em;
  color: #aaffaa; /* Bright green accent for sub-banner */
  text-shadow: 0 0 5px rgba(170, 255, 170, 0.7);
}

#sharpSymbol{
  font-size: 1.11em;
  color: #99ff99; /* Green accent */
}

a.plLink {
  text-decoration:none;
  color: #aaffaa; /* Green links */
}

/* Responsive styling */
@media (max-width: 768px) {
  .header {
      text-align: center;
      padding: 0.8em;
  }
  .header.scrolled {
      font-size: 0.8em;
  }
  #subBanR.scrolled{
      display:none;
  }
}

#offAnim  {
  left:0.5em;
}

#offAnimbtn,#headContactbtn {
  box-shadow: 0px 0px 2px #aaffaa; /* Green glow for buttons */
}

#offAnim.scrolled{
  left:0.2em;
}

#offAnimbtn.scrolled, #headContactbtn.scrolled{
  box-shadow: 0px 1px 4px #aaffaa;
}

#headContact, #offAnim {
  position: absolute;
  top: 7em;
}

#headContact.scrolled, #offAnim.scrolled {
    top:4em;
}

#headContact{
  left: 7.67em;
}

#headContact.scrolled{
  left: 7.5em;
}

#usermng{
    position:absolute;
    top:0.6em;
    right:0;
    margin-top:0;
    text-align:right;
    float:right;
    min-width: 27em;
    min-height:5.7em;
}

#usermng.scrolled {
  margin:1em;
  border-radius:0.3em;
  padding:0.7em;
  border: 1px solid #444; /* Darker border */
  box-shadow: 0 3px 10px #aaffaa55; /* Green shadow */
  background: linear-gradient(90deg, #2a3d2b 0%, #1e2c1f 66%, #000000 100%);
  font-size:1.11em;
}

#login{
  margin:0;
  padding:0;
  width:12em;
}

#glogin{
  position: absolute;
  top:0;
  right:1em;
  margin:0;
  padding:0;
}

#glogin.scrolled{
  margin-top:1em;
}

#btnRegister, #btnRegisterOn, #btnCloseSession {
  position: absolute;
  right:1em;
  margin:0;
  padding:0;
}

#btnRegister, #btnRegisterOn {
  top:3.67em;
  width:12em;
}

#btnCloseSession{
  top:3.27em;
  width:18em;
}

.marginbt {
  margin-bottom:0.3em;
}

a.dropmenu {
  color: #f0f0f0;
}

a.dropmenu:hover{
  text-decoration: none;
  background: #333;
}

.smallerfont{
   font-size: 0.70em;
   padding: 0.47em 1em;
   border-radius: 1em;
   line-height:1em;
   height:2em;
   border-color: #aaffaa; /* Green border */
   overflow: hidden;
   color: #f0f0f0;
}
.smallerfont:hover{
  border-color: #77ff77; /* Lighter green on hover */
  text-shadow: 0px 0px 6px #aaffaa;
}

.biggerfont{
   font-size: 1.33em;
   font-family: P911FILL;
}

.morepadding {
  padding: 0.7em;
}

#main {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 10em 0 0 0;
  padding: 0 0 0 0;
}

#main-center {
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 98%;
  max-width: 90em;
}

/* Trapezoidal Signup Div */
#signup {
    display: none;
    text-align: left;
    width: 30em;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%); /* Darker background */
    border-radius: 0; /* Remove default radius */
    padding: 2em;
    margin-bottom: 2em;
    color: #f0f0f0;
    /* Trapezoidal effect */
    transform: skewY(-2deg);
    transform-origin: top left;
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    border: 1px solid #444;
}
#signup .div-section-title, #signup label {
    color: #aaffaa; /* Accent color for titles/labels */
    text-shadow: none;
    font-weight: bold;
    transform: skewY(2deg); /* Counter-skew text */
    transform-origin: top left;
    display: block; /* Ensure counter-skew applies to block */
}
#signup input, #signup select, #signup textarea {
    background: #1e1e1e; /* Even darker input fields */
    border: 1px solid #555;
    color: #f0f0f0;
}
#signup button {
    background-color: #2a3d2b; /* Dark green button */
    color: #f0f0f0;
    box-shadow: 0 0 5px #aaffaa55;
}
#signup button:hover {
    background-color: #1e2c1f;
    box-shadow: 0 0 8px #aaffaa;
}


/* Column Left */
#column_left {
  flex: 1 1 30%;
  padding: 0 0;
  text-align: left;
  position: relative; /* Needed for child positioning */
  z-index: 1; /* Ensure it's above other elements if overlapping */
}

.intro-text {
  display: block;
  margin: 0 0 1.5em;
  color: #aaffaa; /* Green accent for intro text */
  text-shadow: 1px 1px 1px #000;
  font-size: 1.5em;
  font-style: oblique;
}

.spacer {
  height: 3em;
  transition: all 0.3s ease;
}

.spacer.scrolled {
  height:0;
}
.spacer.responsiveHeight{
  height:5em;
}
.p {
  margin: 0.5em 0;
}

.status-check {
  color: #aaffaa; /* Green checkmark */
  font-weight: bold;
}

#column_right, #updateuser, #updateplaylist{
 width: 60%;
 text-align:left;
}

/* Trapezoidal for main content blocks */
#lastEntries, #column_right, #updateuser, #updateplaylist, #quickStart {
  flex: 1 1 60%;
  margin: 0 0 3em 3em;
  padding: 2em 1em; /* Add padding for content inside trapezoid */
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%); /* Darker background */
  box-shadow: 0 8px 15px rgba(0,0,0,0.4);
  border: 1px solid #444;
  /* Trapezoidal effect - adjust values for different angles */
  transform: skewY(2deg); /* Different skew for right column */
  transform-origin: top right;
  position: relative; /* For counter-skewing children */
  z-index: 1;
}

/* Counter-skew inner content */
#lastEntries > *, #column_right > *, #updateuser > *, #updateplaylist > *, #quickStart > * {
    transform: skewY(-2deg);
    transform-origin: top right;
    display: block; /* Ensure it applies */
    position: relative;
}
/* Specifically for form labels in updateuser/playlist */
#updateuser form label, #updateplaylist form label {
    transform: skewY(-2deg);
    transform-origin: top right;
    display: block;
}


#updateuser , #updateplaylist{
  padding: 2em 3em 3em 3em;
  display:none;
}

.section-title, .div-section-title {
  display: block;
  margin-bottom: 1em;
  color: #aaffaa; /* Green accent for section titles */
  text-shadow: 1px 1px 1px #000;
  font-size: 1.5em;
}

.div-section-title {
 max-width: 23em;
}

.btns-update-plst {
  	display: flex;
    flex-direction: row;
    gap: 1em; /* spacing between buttons */
    align-items: center;
}
.btns-update-plst > div {
	display: inline-block;
}

.colFolderHead,
.colFolder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  text-shadow: 1px 1px 1px #000;
  padding:0.2em 0.4em 0.2em 0.4em;
}

.colFolderHead {
  font-weight: bold;
  background-color: #444; /* Darker header for folder */
  color: #f0f0f0;
}

.colFolder {
  background-color: #2e2e2e; /* Darker folder item */
  color: #f0f0f0;
}

.folder-name {
  cursor: pointer;
  color: #f0f0f0;
}

.folder-date {
  min-width: 10em;
  color: #ccc;
}

.folder-display{
  cursor: pointer;
  margin-left:2.97em;
}

.spanFolderOrg {
  color: #aaffaa; /* Green for organization */
  cursor: pointer;
  text-shadow: 1px 1px 1px #000;
}


/* Responsive Design */
@media (max-width: 768px) {
  #subBanR  {
    margin:-3.57em 0 0 -0.55em;

  }
  #main-center {
      flex-direction: column;
  }

  #column_left,
  #lastEntries,#column_right, #updateuser, #updateplaylist, #quickStart {
      flex: 1 1 100%;
      margin-bottom: 2em;
      transform: skewY(0deg); /* Remove skew on small screens */
      transform-origin: top left; /* Reset origin */
  }
  /* Remove counter-skew for children on small screens */
  #lastEntries > *, #column_right > *, #updateuser > *, #updateplaylist > *, #quickStart > * {
      transform: skewY(0deg);
  }
  #signup {
    transform: skewY(0deg); /* Remove skew on small screens */
    transform-origin: top left; /* Reset origin */
  }
  #signup .div-section-title, #signup label {
    transform: skewY(0deg); /* Remove counter-skew on small screens */
  }


  .section-title,
  .intro-text {
      text-align: center;
  }
}


#jssor_1 {
    position: absolute;
    top:42em;
    left:30em;
    padding:3em;
    font-size:0.8em;
    color: #f0f0f0;
}
#jssor_1 > div div div {
  width: 300px!important;
}

.toFadeOut {
  transition: opacity 1s ease-in-out;
}

  h1,h2 {
    color: #f0f0f0; /* Light text for headings */
    font-weight:600;
    font-size: 3.8em;

  }
  h1 {
      text-align:left;
      float:left;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      line-height : 3.2em;
      color: #aaffaa; /* Green for h1 */
  }
  h2 {
      text-align:right;
      float:left;
      font-size: 1.1em;
      text-shadow: 1px 1px #000;
      line-height : 2em;
      padding: 0.7em;
      color: #f0f0f0;
    }
  h3 {
    text-align:left;
    color: #aaffaa; /* Green for h3 */
  }
  @keyframes blink {
    50% {
      opacity: 0.0;
    }
  }
  .blink {
    animation: blink 1s step-start 0s infinite;
  }

  #nameIt, #uploadIt, #narrowDown {
    background:  rgba(40, 40, 40, 0.7); /* Darker background for these elements */
    width:100%;
    margin-bottom: 0.15em;
    border-radius: 0.30em;
    color: #f0f0f0;
  }

  #msg {
    display: block;
    top: 2em;
    width:100%;
    text-align:left;
    color: #f0f0f0;
  }

  .formstyle{
    background: #3a3a3a; /* Darker form style */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    border-radius: 7px;
    color:#f0f0f0;
  }

  .container {
    display: inline-block;
    border:1px solid #555; /* Darker border */
    background: #3a3a3a;
    color: #f0f0f0;
    text-shadow: 1px 1px 1px #000;
    width:50%;
    margin: 1em 0 0 0 ;
  }

.row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.4em;
  flex-wrap: wrap;
}

.labelRow {
  font-weight: bold;
  margin-bottom: 0.5em;
  text-align: left;
}

.col {
  flex: 1;
  min-width: 2em;
}

.numberCol {
  width: 3em;
  flex: 0 0 auto;
}

.minCol,
.secCol {
  width: 5em;
  flex: 0 0 auto;
}

.titleCol {
  flex: 2 1 6em;
}

.deleteCol {
  width: 3em;
  flex: 0 0 auto;
  text-align: center;
}

input.editableInputMin,
input.editableInputSec {
  width: 2.5em;
  background: #1e1e1e; /* Dark input */
  border: 1px solid #555;
  color: #f0f0f0;
}

input.editableInputTitle {
  min-width: 6em;
  background: #1e1e1e; /* Dark input */
  border: 1px solid #555;
  color: #f0f0f0;
}

@media (min-width: 600px) {
  .row {
    gap: 1em;
  }

  input.editableInputTitle {
    min-width: 6em;
  }

  .titleCol {
    min-width: 7em;
  }
}


  .colFolder {
    float:left;
    width:100%;
    background: linear-gradient(90deg, rgba(30,30,30,0.15) 0% ,  rgba(60, 60, 60,0.7)  100%); /* Darker gradient */
    margin-bottom:0.07em;
    padding: 0 0.3em;
  }
  .colFolderHead{
    float:left;
    width:100%;
    background: linear-gradient(90deg, rgba(30,30,30,0.45) 0% ,  rgba(90, 90, 90,0.45)  100%); /* Darker gradient */
    margin-bottom:0.07em;
  }

  .spanFolder, .spanFolderRed, .spanFolderOrg{
    text-shadow: 1px 1px 1px #000;
    cursor:pointer;
  }

  .spanFolder {
    color:#e0e020; /* Yellowish green */
  }

  .spanFolderTitle{
    color:#f0f0f0;
    margin-left:4.85em;
  }

  .spanFolderRed{
    color:#ff6666; /* Brighter red */
  }

  .spanFolderOrg{
    color:#aaffaa; /* Green accent */
  }


  .box {
    position:absolute;
    display:none;
    margin-top: -4.2em;
    margin-left: 17.5em;
    z-index:666;
  }

#spinnerContainerUpdate.box {
  position:absolute;
  display:none;
  margin-top: 0em;
  margin-left: 0em;
  z-index:666;
  }

  @keyframes spinner {
    to {
      transform: rotate(360deg);
    }
  }

  .spinner:before {
    content: '';
    box-sizing: border-box;
    position:absolute;
    top:0.7em;
    left:10em;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border-top: 0.1em solid #aaffaa; /* Green spinner */
    border-right: 0.1em solid transparent;
    box-shadow: 1px 1px 1px 1px #666; /* Darker shadow */
    animation: spinner 0.6s linear infinite;
    z-index: 777;
  }

  .allEvents {
    pointer-events: all;
    opacity: 1;
  }

  .noEvents {
    pointer-events: none;
    opacity: 0.3;
  }

  #div-to-display{
    position:absolute;
    top:-7.7em;
    right:12em;
    width:25em;
    height:7em;
    padding: 0.8em;
    z-index:99999;
    opacity:0;
    background: #1a1a1a; /* Dark background for popup */
    border-radius: 1em;
    border:0.2em solid #aaffaa; /* Green border */
    -webkit-box-shadow: 2px 4px 6px 2px #000;
    box-shadow: 2px 4px 6px 2px #000;
    text-align: left;
    overflow-y:scroll;
    font-size: 0.9em;
    color: #f0f0f0;
}

#lastEntries, #column_right, #updateuser, #updateplaylist, #quickStart {
    width:100%;
    text-align:left;
}

#contact-main {
  font-size: 0.87em;
}

#contact-main label {
   margin-bottom:-0.03em;
   color: #aaffaa; /* Green for contact form labels */
}

footer {
    text-align: center;
    font-size:0.9em;
    margin: 4em 0 0 0;
    padding: 1em 0 3.0em 0;
    background: linear-gradient(90deg, #2a3d2b 0%, #1e2c1f 33% 33%, #000000 100%); /* Darker footer */
    border-top: 1px solid #444; /* Darker border */
    color: #f0f0f0;
    text-shadow: 1px 1px 1px #000;
    z-index:777;
    transition: all 0.67s ease;
    opacity:1;
  }

  footer.scrolled {
    height:  0;
    opacity:0;

  }

  .onetwo {
    padding: 0 0.2em 1.3em 0;
    color:#aaffaa; /* Green for number text */
  }

  .wincmd {
    padding: 2.4em 0.7em;
    width: 32em; height:18em;
    overflow: hidden;
    border: 1px solid #444; /* Darker border */
    border-radius: 0.37em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.8);

    /* Adjusted background for dark theme */
    background: url(../image/m7q8L.png) left top no-repeat, linear-gradient(270deg, rgba(30, 30, 30, 0.7) 0%,rgba(45, 45, 45, 0.82) 33%, rgba(70, 70, 70, 0.92) 100%);
    background-size: cover; /* Ensure image covers or fits well */
    color: #f0f0f0;
    position: relative;
    /* Trapezoidal effect for wincmd */
    transform: skewX(-3deg);
    transform-origin: bottom left;
  }

  .wincmd > p {
    transform: skewX(3deg); /* Counter-skew inner text */
    transform-origin: bottom left;
    position: relative;
    color: #f0f0f0;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #aaffaa; /* Green label */
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #555; /* Darker border */
    border-radius: 4px;
    background: #1e1e1e; /* Dark input */
    color: #f0f0f0;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color:#aaffaa; /* Green focus border */
    box-shadow: 0 0 5px rgba(170, 255, 170, 0.5);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions button {
    background-color:#2a3d2b; /* Dark green button */
    color: #f0f0f0;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions button:hover {
    background-color:#1e2c1f; /* Darker green hover */
}

.form-header {
    margin-bottom: 20px;
    text-align: center;
}

button.deleteRow{
  padding: 0;
  margin: 0 0 0 0.7em;
  background: #ff6666; /* Red delete button */
  color: #f0f0f0;
}
button.deleteRow:hover {
    background: #cc3333;
}

#simpleformcontact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
}
.containersimpleform {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.form-wrapper {
  max-width: 500px;
  width: 100%;
  padding: 20px;
  background: rgba(30, 30, 30, 0.9); /* Darker form wrapper */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #f0f0f0;
}
.form-elements input,
.form-elements textarea,
.form-elements button {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #555; /* Darker border */
  border-radius: 5px;
  background: #1e1e1e; /* Dark input */
  color: #f0f0f0;
}
.form-elements button {
  background: #2a3d2b; /* Dark green button */
  color: white;
  cursor: pointer;
}
.form-elements button:hover {
  background: #1e2c1f; /* Darker green hover */
}
.captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.captcha img {
  margin-left: 10px;
  cursor: pointer;
}

#contact, #source {
  cursor: pointer;
  color: #aaffaa; /* Green for contact/source links */
}

#contact-main { width:100%; text-align: center; margin: 2em 0 3em 0; }
#contact-main-center {
    width: 40em;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%); /* Trapezoidal-like element */
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    border: 1px solid #444;
    padding: 2em;
    transform: skewY(-1deg); /* Slight skew for contact form section */
    transform-origin: top left;
    position: relative;
    z-index: 1;
}
#contact-main-center > * {
    transform: skewY(1deg); /* Counter-skew content */
    transform-origin: top left;
    position: relative;
    display: block;
}

#success_message, .success { border: 1px solid #aaffaa; background: #33ff3322; color: #aaffaa; font-weight: bold; font-size: 1.2em; border-radius: 4px; }
fieldset { width: 90%; border-color: #555; } /* Darker fieldset border */
legend { font-size: 24px; color: #aaffaa; }
.note { font-size: 18px; color: #ccc; }
form label { display: block; font-weight: bold; color: #aaffaa; }
#captcha_error, .error { font-weight: bold; color: #ff6666; margin-top: 10px; } /* Red error for dark theme */

#bannerexample { width:100%; text-align: center; margin:3em 0 7em 0 }
#bannerexamplecenter {  margin: 0 auto; }
#imgGizmo {
  width: 30%;
}

#library { border:1px solid #555; border-radius:0.7em; background: #2a2a2a;} /* Dark library */
.tree { list-style: none; padding-left: 20px; color: #f0f0f0; }
.tree li { cursor: pointer; transition: all 0.3s ease-in-out; margin:0.7em; }
.tree li:hover { color: #aaffaa; transform: scale(1.05); } /* Green hover */
.hidden { display: none; }
.sort-buttons { margin-bottom: 10px; }
.username { font-weight: bold; cursor: pointer; color: #aaffaa; } /* Green username */
.playlist-list { margin-left: 20px; }

nav .mainmenu {
  padding: 0.5em;
  position: relative;
  text-align: left;
  border-radius:0;
}
.menu-toggle {
  position:absolute;
  display: block;
  cursor: pointer;
  padding: 0.42em;
  margin-bottom:-3.7em;
  background: #33333377;
  border: none;
  color: white;
  font-size: 0.64em;
  text-align: center;
  border-radius: 0.2em;
  border-color:#f0f0f0; /* Lighter border */
  box-shadow: 0 0 0.3em #aaffaa; /* Green shadow */
  z-index: 1000;
}
.menu-toggle:active {
  position:relative;
  top:1px
}
.menu-toggle div {
  width: 2em;
  height: 0.2em;
  background: #aaffaa; /* Green bars */
  margin: 0.37em 0;
  border-radius: 0.1em;
}
#menubody {
  position:absolute;
  z-index:999;
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 95%, 95% 100%, 0% 100%, 0% 0%
  );
  background: #2a2a2a; /* Dark menu body */
}
ul {
  margin-top: 7em;
  list-style: none;
  padding: 0em;
  margin: 0;
  display: none;
  background: #2a2a2a; /* Dark menu background */
  width: 20em;
  border-radius: 0;
  color: #f0f0f0;
  text-align: left;
  z-index:999;
}
.menu li {
  padding: 1em;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  z-index:999;
}
.menu {
 z-index:999;
}
.menu.hoverbg li:hover {
  background:rgba(40, 60, 40, 0.7); /* Dark green hover */
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 75%, 95% 100%, 0% 100%, 0% 0%
  );
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block; /* Ensures vertical layout */
}

.menu li, .submenu li {
  display: block; /* Forces list items to stack */
  width: 100%; /* Ensures full width for clickable area */
}
.menu, .submenu {
  display: flex;
  flex-direction: column;
}

.submenu {
  display: none;
  background: #3a3a3a; /* Darker submenu */
  width: calc(100% - 2em);
  margin-left: 1em;
  margin-top: 0.5em;
  border-radius: 0;
}
.submenu li {
  padding: 0.8em;
  border-bottom: 1px solid #555; /* Darker border */
  border-radius: 0;
}

.submenu li:hover {
  background: #4a4a4a; /* Darker hover */
}
.arrow {
  float: right;
  padding: 0 0.3em;
  color: #aaffaa;
}
a.linkmenu {
  text-decoration:none;
  color: #f0f0f0;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.arrow.rotated {
  transform: rotate(90deg);
}

#playlistContent {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 0.22em;
    width:100%;
  }

.colFolder {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

@media (min-width: 100px) {
  .menu-toggle { display: block; }
  .menu { display: none; }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 15px;
    }
    ul {
      background: #3a3a3a; /* Dark menu on mobile */
    }

}

@media screen and (max-width: 500px) {

  body {
    max-width: 450px;
  }
  .wincmd {
    width: 28em; height:15em;
    background-size: calc(100%);
    margin-bottom: 10em;
    transform: skewX(0deg); /* Remove skew on mobile */
    transform-origin: bottom left;
  }
  .wincmd > p {
    transform: skewX(0deg); /* Remove counter-skew on mobile */
  }


  #usermng {
    font-size:0.92em;
    position:absolute;
    right:0;
  }

}

  @media screen and (max-width: 1000px) {


    #banR  {
      font-size:0.82em;
    }

    #offAnim {
      top:7.5em;
      left:0.1em;
      font-size:0.9em;
    }

    #column_left {
      width: 100%;
    }

    #leftinside {
      display: none;
    }

    #glogin{
        top:1em;
        right:1em;
    }

    #btnRegister, #btnRegisterOn, #btnCloseSession {
        right:1em;
    }

    #btnRegister, #btnRegisterOn {
      top:4.65em;
   }

    #btnCloseSession {
      top:3.2em;
    }

    #usermng {
      position:absolute;
      top: 7.5em;
      float:left;
      right:0.6em;
      border-radius:0.3em;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
      background: linear-gradient(90deg, #2a3d2b 0%, #1e2c1f 66%, #000000 100%);
      padding:1em;
      max-width: 80%;
      z-index: 777;
    }

    #usermng.scrolled {
      opacity:0;
    }

    #main {
      font-size: 0.77em;
      margin-top:16em;
    }

    #main-center {
      margin: 0;
      padding: 0 1.9em;
      width:98%;
    }

    #lastEntries,#column_right, #updateuser, #updateplaylist, #quickStart {
      top: 7em;
    }

    .sepHidden{
      display:none;
    }

    .spacer.responsiveHeight{
      height:0;
    }

    footer{
      font-size: 0.77em;
    }

    #jssor_1 {
      top: 49em;
      left: 10em;
    }

    .lessradius{
      border-radius:0.44em;
    }

    #contact-main {
      font-size: 0.7em;
      margin: 2em 0;
    }
    #contact-main-center {
    padding: 0 2.9em;
    margin: 0;
    width:98%;
    transform: skewY(0deg); /* Remove skew on mobile */
    transform-origin: top left;
    }
    #contact-main-center > * {
        transform: skewY(0deg); /* Remove counter-skew on mobile */
    }

    #contact-main label {
       margin-bottom:-0.15em;
    }
    #subBanR {
      display:none;
    }
    #imgGizmo {
      width: 50%;
    }

    #div-to-display {
      position:absolute;
      top:100em;
    }
    .col { min-width: none;}
    #rightside{
      margin-top:1em;
    }
    #dev-inside{width:80%; }
    h3 { font-size: 0.9em }
  }


  .colFolderHead, .colFolder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 1px 0;
    padding: 0.3em 0.7em;
    border-radius: 3px;
  }

  .actions {
    display: flex;
    align-items: center;
  }

  .colFolder {
    overflow: visible;
  }


/* Style for the playlist container */
.colFolder {
  position: relative;
  transition: background-color 0.3s ease-in-out;
}

.colFolder:first-of-type {
  margin-top: 0.22em; /* optional: give first one extra space from .colFolderHead */
}

.colFolder:hover {
  background-color: #3e3e3e; /* Darker hover for folders */
}

#div-to-display.show {
    visibility: visible;
    opacity: 1;
}

#div-to-display .header-disp {
    font-weight: bold;
    margin-bottom: 0.5em;
    line-height: 0.9;
    text-align: left;
    color: #aaffaa;
}


#div-to-display .content {
    font-size: 0.9em;
    line-height: 1.1;
    color: #f0f0f0;
}

#div-to-display .visits {
    font-size: 0.8em;
    line-height: 1.8;
    float: right;
    color: #ccc;
}

#div-to-display .scrollable {
    max-height: 200px;
    overflow-y: scroll;
}

.toHoverClickTarget {
  font-size:0.7em;
  font-style: oblique;
  left:0;
  cursor: pointer;
  color: #aaffaa;
}

#closeDisp {
    cursor: pointer;
    font-size: 0.9em;
    color: #ccc;
    position: absolute;
    top: 0.3em;
    right: 0.3em;
}

#closeDisp:hover {
    color: #ffcc00; /* Yellow hover for close */
}


.buttonone {
  font-size: 1em;
  background: linear-gradient(to bottom, #444, #222); /* Darker button */
  color: #fff;
  padding: 0.75em 2em;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 0 0.5em #000;
  transition: var(--transition-fast);
}

.buttonone:active {
  position:relative;
  top:1px;
}

.buttonone:hover {
  cursor: pointer;
  background: linear-gradient(to bottom, #555, #333);
  box-shadow: 0 0 0.75em #aaffaa; /* Green glow */
}

.buttonone::after{
  background:linear-gradient(to bottom, #444, #111);
}

.category-filter {
  max-width: 30em;
  padding: 1em;
  background: rgba(30, 30, 30, 0.5); /* Darker category filter */
  border-radius: 1em;
  box-shadow: 0 0 0.5em rgba(0,0,0,0.5);
  color: #f0f0f0;
}

.category-filter h3 {
  margin-bottom: 0.8em;
  font-weight: 600;
  color: #aaffaa;
}

.cat-tag {
  background: #4a4a4a; /* Darker tag */
  padding: 0.4em 0.8em;
  margin: 0.3em;
  border-radius: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #f0f0f0;
}

.cat-tag:hover {
  background: #2a3d2b; /* Dark green hover */
  color: #aaffaa;
}

.subcat-container {
  margin-left: 1em;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.4s ease;
}

.subcat-container.visible {
  max-height: 500px; /* enough to fit subcategories */
  margin-bottom: 1.56em;
  opacity: 1;
  transform: translateY(5px);
}

.subcategory-search {
  margin: 0.5em 0 0.8em 1.5em;
  padding: 0.5em;
  background: rgba(40,40,40,0.6); /* Darker search input */
  border-radius: 0.8em;
  box-shadow: 0 0 0.5em rgba(0,0,0,0.3);
  animation: appear 0.3s ease;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

#adsPopup {
  position: fixed;
  top: 5em;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  z-index: 9999;
  background: rgba(30,30,30,0.97); /* Darker popup */
  border-radius: 1em;
  box-shadow: 0 0 1.2em rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 40em;
  width: 90%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  color: #f0f0f0;
}

#adsPopup.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.ads-popup-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.8em;
}

.ad-item {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #444; /* Darker border */
  transition: background 0.25s ease;
}

.ad-item:hover {
  background: rgba(0,0,0,0.15); /* Darker hover */
  cursor: pointer;
}

.ad-date {
  font-size: 0.8em;
  color: #ccc;
  margin-bottom: 0.2em;
}

.ad-title {
  font-weight: 600;
  color: #aaffaa; /* Green title */
}

.ad-desc {
  font-size: 0.9em;
  color: #f0f0f0;
}

