
body {
    font-family: roboto;
    font-size:1vw;
    background-color: rgb(0, 0, 0);
    margin: 0;
    overflow: hidden;
    padding:0;
    user-select: none;
}

#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


#liveView{
  z-index: 2;
}



html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* Prevent scrolling */
}

#container {
  width: 100%;
  height: 100%;
  position: relative; /* Ensure positioning works as expected */
}




/* ----------------------------------- */
/*    Aspect Ratio Specific Changes    */
/* ----------------------------------- */

/* If th easpect ratio is less than 1, the the app is in "portrait" mode, and the layout should change.

/* Styles specific to portrait aspect ratio */
@media screen and (max-aspect-ratio: 1) {
  #playInfoPanel{
      background-color: #6200ff;
  }
}


#highScorePanel {
display: none;
}

#optionsPanel {
display: none;
}


#playInfoPanel {
display: none;
}









/*//////////////////////////////////////*/
/*///////     CANVAS'S        /////*/
/*//////////////////////////////////////*/
.particleCanvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1; /* Adjust as needed */
  /*pointer-events: none;  Ensures canvas does not block other elements */
}

#gameVideo {
  /*position: absolute; /* or fixed, depending on your layout */
  z-index: 1; /* Ensure this is higher than the z-index of other elements */
  /* You can add other styling here as needed */
}




/*////////////////////////////////////////////////////////////*/
/* TITLE PAGE     Main container (buttons + links) */
/*////////////////////////////////////////////////////////////*/
#titlePageContainer  {
  position: fixed;
  width: 100%;
  bottom: 10vh;
  text-align: center;
  z-index: 20;  /* Added back to ensure buttons stay on top */
}

/* Beta Version TITLE ONLY */
#titlePageContainer #versionLabel {
  position: absolute; /* Allows for precise placement */
  top: 140px; /* Adjust this to lower the label */
  left: 50%; /* Centers it horizontally within the container */
  transform: translate(-50%); /* Offsets the position to truly center */
  font-size: 14px;
  color: white;
  background-color: rgba(0, 0, 0, 0.3); /* Increased transparency */
  padding: 5px 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  z-index: 22; /* Ensure it appears above other title page elements */
}



#playButton {
  background-color: rgba(39, 145, 197, 0.8);
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #fff;
  padding: 10px 0;
  width: 200px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 21;  /* Added to ensure clickability */
}

#playButton:hover {
  background-color: #ee0da3;
}

#linksContainer {
  margin-top: 3vh;
  color: #fff;
  font-size: 1.3vw;
  opacity: 0.7;
  z-index: 21;  /* Added to ensure clickability */
}

#linksContainer a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
  padding: 5px 10px;  /* Added back for better touch targets */
  display: inline-block;  /* Added to make padding work properly */
}

/* Just one media query for mobile */
@media screen and (max-width: 868px) {
  #titlePageContainer {
    bottom: 8vh;
  }
  
  #playButton {
    width: 180px;
    font-size: 16px;
  }
  
  #linksContainer {
    font-size: 18px;
    margin-top: 22vh;
  }
  
  #linksContainer a {
    padding: 8px 15px;  /* Slightly larger touch target for mobile */
  }

/* beta version MOBILE */
  #titlePageContainer #versionLabel {
    top: 140px; /* Adjust for smaller screens */
    left: 630px; /* Adjust for smaller screens */

    font-size: 12px; /* Slightly smaller text for mobile */
    padding: 4px 8px; /* Adjust padding for smaller size */
  }
}




/*///////////////////////*/
/*HTML TITLE PAGE BUTTONS */
#socialButtonContainer {
  position: absolute;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.socialButton {
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.socialButton:hover {
  transform: scale(1.1);
}

.socialButton img {
  width: 3vw;
  height: 3vw;
  max-width: 40px;
  max-height: 40px;
}





/*//////////////////////////////////////*/
/*///////    APP START OVERLAYS     /////*/
/*//////////////////////////////////////*/

#fullButton{
  position: fixed;
  top: 4;
  right:4px;
  
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  outline: none; 
}

#fullimg {
  width: 20px;
  height: auto;
  display: block;
}

#webcamList {
  position: fixed;
  top: 0;
  right: 28px;
}












/*//////////////////////////////////////*/
/* --------------------------- */
/* Stage Select specific items */
/* --------------------------- */
/*//////////////////////////////////////*/


#stageSelectContent {
  color: white;
  font-family: 'Verdana', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  position: fixed;
  overflow: hidden; /* Prevent body scroll */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for center alignment */
  background-image: url('images/gradient_V1.png');
  /*background-image: url('images/bg_image.png');*/

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}



/* STAGE Navigation Arrows */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Left and right arrows */
.nav-arrow {
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  font-size: 2em;
  color: white;
}

.nav-arrow.left-arrow {
  position: absolute;
  left: 10px;
}

.nav-arrow.right-arrow {
  position: absolute;
  right: 10px;
}

.nav-arrow.hidden {
  visibility: hidden;
}





/*//////////////////////////////////////*/
/* SONG SELECT LIST STUFF!!!! */
/*//////////////////////////////////////*/

.hidden {
  display: none;
}

.songSelectList {
  height: calc(100% - 120px); /* Subtract more space for the bottom bar */
  list-style: none;
  padding: 0;
  margin-top: 2vw;
  margin-bottom: 0px;
  padding-bottom: 40px; /* Add some padding instead */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.32vw;
  text-align: left;
  height: 100%;
  position: absolute; /* From second rule */
  left: 0;            /* From second rule */
  top: 0;             /* From second rule */
  width: 100%;        /* From second rule */
}

.songSelectList li {
  display: flex;
  align-items: center;
  margin: .21vw;
  cursor: pointer;
  padding-bottom: .21vw;
  border-bottom: 1.3px solid #2e2e2e;
  width: 100%;
}

.cover-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  padding-left: 40px; /* Just add this one line */

}

.info-container {
  display: flex;
  flex-grow: 1;
  align-items: center;
  margin-right: 100px; /* Add some space after song info */
}

.level-number {
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  margin-right: 10px;
  white-space: nowrap;
}

.song-info-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.song-name {
  font-size: 1.3em;
  color: white;
  word-wrap: break-word;
}

.song-artist {
  font-size: 0.7em;
  color: rgb(131, 131, 131);
}





.play-button-container {
  margin-left: auto;
}


.songSelectList li.locked .level-number,
.songSelectList li.locked .song-name,
.songSelectList li.locked .song-artist {
  opacity: 0.5;
}

.songSelectList li.selected .level-number,
.songSelectList li.selected .song-name,
.songSelectList li.selected .song-artist {
  color: red;
}





/*//////////////////////////////////////*/
/* Song Select Panel- how is this different? */
/*//////////////////////////////////////*/

.panel {
  width: 75%;
  height: 82%;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 45vh !important;; /* Use viewport height units to make it responsive */

  transform: translate(-14%, -0%);
  overflow: hidden;
  /*border-radius: 60px !important;*/
  border-radius: clamp(12px, 2vw, 20px) !important;
  padding: 0; /* Remove padding to align stages correctly */
  color: white;
}


/* STAGE  NAME IN PLAYINFO BOX */
.panel h1 {
    font-size: 2.8vw; 
    text-align: center;
    font-weight: 150;
    margin-top: 3vw;
    /*border: 1px solid #0F0;*/
    padding:0;
    white-space: nowrap;
    margin-bottom:0.25vw;
    /*color: #333333; /* Adjust the color as needed */
}

/* MAPPER NAME in smaller italic letters in playinfo*/
.panel h2 {
    font-size: 0.8vw;
    text-align: center;
    font-weight: lighter;
    font-style: italic;
    /*border: 1px solid #00F;*/
    margin:0;
    padding:0;
    /*color: #666666; /* Adjust the color as needed */
}

.panel::-webkit-scrollbar {
    width: 12px;
}

.panel::-webkit-scrollbar-thumb {
    background-color: #555555;
}

.panel::-webkit-scrollbar-track {
    background-color: #999999;
}

.list-item {
    margin-bottom: 10px;
}

#topButtonContainer{
    /*border: 1px solid #0F0;*/
    margin-top:1vh;
}

#playButtonContainer{
    /*border: 1px solid #FF0;*/
    margin-top:2vw;
}


/*Song number next to title*/
.song-number {
  font-weight: bold;
  margin-right: 8px;
}


.difficultyButton{
    margin-right: .7vw;
    width:4.1vw;
    height:1.35vw;
    background-color: #0000FF;
    color: #FFFFFF;
    border: 0px solid #0000FF;
    /*padding: 10px 20px;*/
    border-radius: .3vw;
    cursor: pointer;
    font-size: .9vw;
    outline: none;
}

.difficultyButton:hover {
    background-color: #FFFFFF;
    color: #0000FF;
    border: 0px solid #FFFFFF;
}

.playButton {
  margin-right: .7vw;
  width: 9vw;
  height: 2.3vw;
  background-color: #0000FF;
  color: #FFFFFF;
  border: 0px solid #0000FF;
  border-radius: .3vw;
  cursor: pointer;
  font-size: .9vw;
  outline: none;
  padding: 5px 10px; /* From Rule 1 */
}

.playButton:hover {
    background-color: #ffffff;
    color: #0000FF;
    border: 0px solid #FFFFFF;
}

.listContainer {
  width: 96%;
  height: calc(100% - 13vw); /* Increase space subtracted */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}



/* Gray out the disabled play buttons */
.playButton.disabled {
  background-color: #555;  /* Gray background */
  color: #999;  /* Light gray text */
  cursor: not-allowed;  /* Show not-allowed cursor */
  border: 0px solid #555;
}

.playButton.disabled:hover {
  background-color: #555;  /* Ensure the button doesn't change on hover */
  color: #999;
  cursor: not-allowed;
}







/* SONG RANK IN SONG LIST */
/* SONG RANK IN SONG LIST */
/* SONG RANK IN SONG LIST */

/* Subheader Row (Parent Container for Song, Rank, and Rating) */
/* Subheader Row (Parent Container) */
.subheader-row {
  display: flex;
  justify-content: space-between; /* Space evenly between headers */
  align-items: center;
  padding: 5px 40px;
  font-size: 1em;
  font-weight: bold;
  margin-top: -5px;
}

/* Subheader for Song */
.subheader-song {
  flex: 1.8; /* Slightly more space for Song */
  text-align: left;
  padding-left: 10px;
}

/* Subheader for Rank */
.subheader-rank {
  flex: 0.0; /* Slightly less space for Rank */
  text-align: center;
}

/* Subheader for Rating */
.subheader-rating {
  flex: 1.9; /* Keep Rating as is */
  text-align: center;
}




/* SONG RANK IN SONG LIST */
.song-rank {
  width: 80px; /* Give it a fixed width */
  text-align: center;
  color: #FFD700;
  font-size: 1em;
  margin-right: auto; /* Push it away from stars */
  position: absolute;
  left: 50%; /* Center between song and stars */
  transform: translateX(-50%); /* Offset by half its own width */
}


/* sword in song list */
/* Add these new styles to your existing CSS */
/* Rating area with consistent spacing */
/* Rating area with legend placeholder */
.rating-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 15vw; /* Responsive width */
  min-width: 160px; /* Minimum width on smaller screens */
  position: relative;
  margin-right: 2vw; /* Space before play button */
}


.song-list-star-rating {
  display: flex;
  align-items: center;
  gap: 0.25vw; /* Smaller, more precise vw value */
  margin-right: 4vw;
}

.star-icon {
  width: 2vw;
  min-width: 20px;
  height: 2vw;
  min-height: 20px;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: block;
}


/* STAR RATING POSITION */
.star-rating {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: 20px;
  position: relative; /* Keep it in the flow */
}

/* Legend icon */
.sword-icon {
  display: inline-flex;
  align-items: center;
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700;
  animation: swordGlow 2s infinite alternate;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -1vw; /* Changed from fixed pixels to vw */
  width: 2vw;
  min-width: 24px; /* Keep minimum size */
  height: auto;
}

@keyframes swordGlow {
  from {
    text-shadow: 0 0 5px #FFD700;
  }
  to {
    text-shadow: 0 0 15px #FFD700, 0 0 20px #FFD700;
  }
}

/* Lock icon */
.lock-icon {
  width: 24px;
  height: 24px;
  margin-right: 30px; /* Match star container spacing */
}


@keyframes swordGlow {
  from {
      text-shadow: 0 0 5px #FFD700;
  }
  to {
      text-shadow: 0 0 15px #FFD700, 0 0 20px #FFD700;
  }
}




/* CLAUDES NEW RANK THING */

/* Button Styling */
.subheader-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.update-rank-button {
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.update-rank-button:hover {
  opacity: 0.8; /* Simple hover effect */
}

.update-rank-button:disabled {
  color: #666;
  cursor: not-allowed;
}

/* Rank Change Animations */
.rank-changed {
  position: relative;
}

.rank-changed::after {
  content: attr(data-previous-rank) ' →';
  position: absolute;
  font-size: 0.8em;
  opacity: 0.7;
  right: 100%;
  margin-right: 5px;
    white-space: nowrap;
  
}

.rank-update-animation {
  animation: rankUpdate 2s ease;
}

@keyframes rankUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); background: #ffd700; }
  100% { transform: scale(1); }
}

.rank-update-message {
  text-align: center;
  padding: 10px;
  background: #4CAF50;
  color: white;
  margin-bottom: 10px;
  border-radius: 4px;
  animation: slideIn 0.3s ease;
}

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


/* Loading Animation */
.update-rank-button.loading {
  color: transparent; /* Hide the ↻ during loading */
}

.update-rank-button.loading::after {
  content: '...';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #ffd700;
  animation: loadingDots 1.5s infinite;
  letter-spacing: 2px;
}

@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40%, 60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Rate limit indicator */
.update-rank-button[data-next-update] {
  cursor: not-allowed;
}

.update-rank-button[data-next-update]:hover::before {
  content: attr(data-next-update);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}


















/* STAGE Slide out to the left */
.slide-out-left {
  transform: translateX(-100%);
}

/* STAGE Slide out to the right */
.slide-out-right {
  transform: translateX(100%);
}

/* STAGE Slide in from the left */
.slide-in-left {
  transform: translateX(-100%);
}

/* STAGE Slide in from the right */
.slide-in-right {
  transform: translateX(100%);
}

/*STAGE Reset to original position */
.reset-slide {
  transform: translateX(0);
}




/* Stages wrapper that holds all stages */
.stages-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
}

/* Each stage container */
.stage-container {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Adjust the header container if necessary */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* Ensure it stays above the background */
}

.header-container h1 {
  transform: translateY(-30px);  /* This moves JUST the title up */
}ß
/* Left and right arrows */
.nav-arrow {
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  font-size: 2em;
  color: white;
}

.nav-arrow.left-arrow {
  position: absolute;
  left: 10px;
}

.nav-arrow.right-arrow {
  position: absolute;
  right: 10px;
}

/* Dot indicator container */
.dot-indicator-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 1; /* Ensure it stays above the background */
}

/* Individual dots */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: gray;
  margin: 0 5px;
  cursor: pointer;
}

/* Active dot */
.dot.active {
  background-color: white;
}

/* Disable text selection on draggable elements */
.stages-wrapper, .stage-container {
  user-select: none;
  -webkit-user-drag: none;
}











/*//////////////////////////////////////*/
/* NAVIGATION Bottom bar styling */
/*//////////////////////////////////////*/

#bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 0; /* Increased padding for larger bar */
  z-index: 1000;
  /* Add top border */
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* Menu button styling */
.menu-button {
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  transition: color 0.3s;
  font-size: 28px; /* Increased font size */
  position: relative; /* For pseudo-element positioning */
}

/* Active menu button */
.menu-button.active {
  color: red;
}


/* Add line below "Song Select" */
.menu-button[data-panel="songSelectPanel"]::after {
  content: '';
  position: absolute;
  bottom: -15px; /* Adjust to move line up or down */
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Adjust these values to fine-tune the appearance, do i need this? */
:root {
  --bottom-bar-height: 60px; /* Height of the bottom bar */
  --bottom-bar-padding: 15px; /* Padding of the bottom bar */
  --menu-button-font-size: 18px; /* Font size of menu buttons */
  --panel-border-radius: 15px; /* Border radius of panels */
}










#PIB_Header{
    font-size:1.3vw; /* font size of song name in PIB  */
}

















/* ----------------------------------- */
/* ResultsSplashPage.css */
/* ----------------------------------- */
/* Variables */
:root {
  --background-color: rgba(0, 0, 0, 0.8);
  --text-color: white;
  --highlight-color: yellow;
  --button-blue: blue;
  --button-dark-blue: darkblue;
  --button-red: red;
  --button-dark-red: darkred;
  --button-green: green;
  --button-dark-green: darkgreen;
}

/* Global Styles */
body {
  font-family: 'Verdana', 'Helvetica', Arial, sans-serif;
  color: var(--text-color);
}

/* Background */
.resultsSplashBackground {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('images/bg_image.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Results Panel */
.results-splash-panel {
  background-color: var(--background-color);
  border-radius: 20px;
  padding: 60px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Level Complete Title */
.level-complete-title {
  font-size: 4em;
  margin-top: 20px;
}

/* Letter Animation */
@keyframes letterPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  animation: letterPop 0.3s ease-out forwards;
}

.space { width: 10px; }

/* Song Info */
.results-splash-song-info {
  font-size: 18px;
  font-style: italic;
  margin: 10px 0 30px;
}

/* Result Container */
.results-splash-result-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
}

.results-splash-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Labels and Values */
.results-splash-label {
  font-size: 18px;
  margin-bottom: 10px;
}

.results-splash-value {
  font-size: 48px;
  color: var(--highlight-color);
}

/* Star Rating */
.results-splash-star-rating {
  margin: 20px 0;
}

.results-splash-star-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.star-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 5px;
}

.results-splash-star {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.results-splash-star.grey-star { transform: scale(1); }
.results-splash-star.gold-star { transform: scale(0); }

@keyframes starPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.21); }
  100% { transform: scale(1); }
}

.pop-star { animation: starPop 0.3s ease-out forwards; }

/* Star Requirement Text */
.star-requirement-text {
  color: var(--highlight-color);
  margin: 20px 0;
}

/* Button Container */
.results-splash-button-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 40px;
  padding: 0 20px;
  flex-direction: row-reverse;
}

/* Buttons */
.level-select-button,
.try-again-button,
.next-level-button,
.next-stage-button {
  padding: 10px 60px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-color);
  transition: background-color 0.3s;
}

.level-select-button {
  background-color: var(--button-blue);
  &:hover { background-color: var(--button-dark-blue); }
  &.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.try-again-button {
  background-color: var(--button-red);
  &:hover { background-color: var(--button-dark-red); }
}

.next-level-button,
.next-stage-button  {
  background-color: var(--button-green);
  margin-top: 20px;
  animation: pulseButton 1.5s infinite;  /* Reduced from 2s to 1.5s */
  &:hover { background-color: var(--button-dark-green); }
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% { /* Changed from 70% to 50% for faster pulse */
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}



/* Stats Container */
.results-splash-stats-container {
  display: flex;
  justify-content: space-between;  
  width: 100%;
  margin-top: 20px;
}

.results-splash-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-splash-stat-label { font-size: 18px; }
.results-splash-stat-value {
  font-size: 24px;
  color: var(--highlight-color);
}

/* New High Score */
.new-high-score-text {
  color: var(--highlight-color);
  font-size: 24px;
  margin-top: 20px;
}

/* Animations */
@keyframes growIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}





/* CONGRATS BUTTON GROW */

.next-level-button.animate-grow {
  background-color: var(--button-green);
  animation: pulseButton 1.5s infinite;
  &:hover { background-color: var(--button-dark-green); }
}

@keyframes pulseButton {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}





.animate-grow { animation: growIn 0.3s ease-out forwards; }

/* Utility Classes */
.cursor-hide { cursor: none !important; }





.legend-container {
  position: absolute;
  right: max(10px, 3%);
  top: max(15px, 5%);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(20deg);
  width: fit-content;
  z-index: 10;
}

.legend-text {
  font-family: 'Luminari', 'Medieval Sharp', fantasy;
  font-size: min(1.5em, 5vw); /* Cap size relative to viewport */
  font-weight: bold;
  color: #FFD700;
  text-shadow: 
    0 0 2px #FFA500,
    0 0 4px #FF8C00,
    1px 1px 1px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.5);
  white-space: nowrap;
}

.sword {
  font-size: min(1.2em, 4vw);
  opacity: 0;
  transform: scale(0.5);
  min-width: 1em;
  text-align: center;
}

@keyframes legendPop {
  0% { 
    opacity: 0;
    transform: scale(0.5) translateY(-15px);
  }
  50% { 
    transform: scale(1.15) translateY(3px);
  }
  75% {
    transform: scale(1.05) translateY(-1px);
  }
  100% { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes swordSpin {
  0% { 
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.15) rotate(180deg);
  }
  100% { 
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

.animate-legend {
  animation: legendPop 0.6s forwards cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.animate-sword {
  animation: swordSpin 0.8s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sword.left, .sword.right {
  animation-delay: 0.2s;
}

@media screen and (max-width: 480px) {
  .legend-text {
    font-size: min(1.2em, 4.5vw);
    text-shadow: 
      0 0 1px #FFA500,
      0 0 2px #FF8C00,
      0.5px 0.5px 1px rgba(0, 0, 0, 0.5);
  }
  
  .sword {
    font-size: min(1em, 4vw);
  }
}

@media screen and (max-width: 360px) {
  .legend-container {
    right: 5px;
    top: 10px;
    gap: 4px;
  }
  
  .legend-text {
    font-size: min(1em, 4vw);
  }
}



/*NEW HELP stuff no fail, tutorial and practice in FAIL page

/* Results Page - Failed Level Options */
.results-failed-options-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80%; /* Or a fixed width like 400px */
  max-width: 450px;
  margin: 25px auto 15px auto; /* top auto bottom auto */
  padding: 12px 0;
  background-color: rgba(0, 0, 0, 0.3); /* Subtle background for the bar */
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.results-failed-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  color: white;
  flex: 1; /* Distribute space evenly */
}

.results-failed-option-icon {
  width: 45px;   /* Slightly smaller for a bar */
  height: 45px;  /* Slightly smaller for a bar */
  margin-bottom: 5px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.results-failed-option-icon:hover {
  transform: scale(1.1);
}

.results-failed-option-label {
  font-size: 0.8em;
  font-family: 'Arial', sans-serif;
}

/* Text to inform user about options menu */
.results-options-info-text {
  font-size: 0.75em;
  color: #bbb;
  text-align: center;
  margin-top: -10px; /* Pull it closer to the bar */
  margin-bottom: 20px;
}

/* Ensure the main button container is still distinct */
.results-splash-button-container {
margin-top: 20px; /* Existing or adjusted margin */
}

/* Styling for the practice mode speed selection pop-up on results page */
.results-practice-mode-menu {
  position: absolute; /* Crucial for positioning relative to resultsPanel or specific icon */
  background: rgba(30,30,30,0.95);
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #555;
  z-index: 1005; /* Above results panel content */
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: white;
  min-width: 120px; /* Ensure it's not too cramped */
}
.results-practice-mode-menu div {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 3px;
}
.results-practice-mode-menu div:hover {
  background-color: #444;
}








/*        STAGE COMPLETE CONGRATS PAGE         */
/* Cumulative Score Modal Overlay */
/* Stage Complete Modal Styles */
.cumulative-score-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cumulative-score-modal-content {
  background-color: #222;
  padding: 20px 40px;
  border-radius: 10px;
  position: relative;
  color: white;
  width: 80%;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.scrollable-content {
  overflow-y: auto;
  flex-grow: 1;
  margin: 20px 0;
  padding: 0 10px;
}

.cumulative-score-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.cumulative-score-list li {
  font-size: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin: 0;
}

.total-high-score {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.next-stage-button {
  margin: 15px auto;
  padding: 12px 30px;
  font-size: 1.2em;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}































/*//////////////////////////////////////*/
/*       LEADBOARD/HIGH SCORE LIST      */
/*//////////////////////////////////////*/
.highScoreContainer {
    height: calc(100% - 8vw);
    width: 100%;
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    /*border: 2px solid #FF0000;*/
}


.highScoreStateButtonContainer {
    width: 13%;
    float: left;
    box-sizing: border-box;
    /*margin-top:8vw;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*border: 1px solid #33ff00;
    background-color: #00ff00;*/
}

.stateButton {
    width: 2.5vw;
    height: 2.5vw;

    margin-bottom: 4vw;
    /*margin-left:1vw;
    margin-right:0;*/

    /*background-color: #999999;*/
}

.stateButton:hover {
    cursor: pointer;
}


.highScoreTableContainer {
    width: 87%;
    height:100%;
    float: left;
    box-sizing: border-box;
    padding: 10px;
    /*background-color: #999999;*/
}

.highScoreTable{
    width:98%;
    /*max-height: 12vw;*/
    margin-top:0%;
    /*background-color: #ee0da3;*/
}

.highScoreTable td,
.highScoreTable th {
    font-size: 1.6vw;
    padding-top: .2vw;
    width: 0;
    height: 0;
}

.highScoreTable td:nth-child(3) {
    text-align: right;
}

.highScoreTable td:nth-child(2) {
    text-align: center;
}



.stateButtonContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px; /* Space between each button */
}

.stateButtonLabel {
  font-size: 1.2vw; /* Adjust size for readability */
  text-align: center;
  color: #fff; /* White text */
  margin-top: 0.5vw; /* Space between button and label */
}






/* -------------------------------------- */
/*  ALL ICONS - Upload and Library STUFF  */
/* -------------------------------------- */

/* Icon Button Container */
#iconButtonContainer {
  display: flex;
  justify-content: space-evenly; /* This ensures icons are spaced evenly */
  position: absolute; /* This positions the container at a specified position relative to its nearest positioned ancestor or to the containing block */
  bottom: 2vw; /* This sets the bottom position of the container. Adjust as necessary */
  left: 0; /* Align container to the left edge of the parent */
  right: 0; /* Align container to the right edge of the parent */
  width: 60%; /* Adjust the width to bring icons closer */
  margin: 0 auto; /* Center the container */
}

.iconButton {
  width: 2.5vw; /* Set a specific width for the icons */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Change the cursor to signify clickable items */
  transition: transform 0.2s ease; /* Smooth transition for hover effect */
}

.iconButton:hover {
  transform: scale(1.1); /* Slightly increase the size of the icon on hover */
}

/* OPTIONS Button Container */

#optionButtonContainer {
    display: flex;
    justify-content: space-between; /* This spreads the icon buttons across the full width of the container */
    position: absolute; /* This positions the container at a specified position relative to its nearest positioned ancestor or to the containing block */
    bottom: 1vw; /* This sets the bottom position of the container. Adjust as necessary */
    left: 0; /* Align container to the left edge of the parent */
    right: 0; /* Align container to the right edge of the parent */
    padding: 0 2vw; /* Add some padding on the left and right */
    box-sizing: border-box; /* This ensures padding does not add to the total width */
}

/* Icon Button Style */
.optionButton {
    width: 2.5vw; /* Set a specific width for the icons */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Change the cursor to signify clickable items */
    transition: transform 0.2s ease; /* Smooth transition for hover effect */
}

.optionButton:hover {
    transform: scale(1.1); /* Slightly increase the size of the icon on hover */
}



.iconText {
  color: white;
  font-size: 0.8vw; /* Smaller text size */
  text-align: center;
  margin-top: 0.5vw; /* Adjust the spacing as needed */
  opacity: 0.6; /* Make the text 60% transparent */
}




/* ----------------------------------- */
/*       Tool Tip Design & Layout      */
/* ----------------------------------- */

.highScoreTable {
  table-layout: fixed; /* Fixes table layout */
  width: 100%;
}

.highScoreTable td:nth-child(1) { /* Rank column */
  width: 50px; /* Keep the fixed width */
  text-align: left; /* Align the rank to the left */
  padding-left: 10px; /* Add some space from the edge */
}

.highScoreTable td:nth-child(2) { /* Player name column */
  text-align: left; /* Align player names to the left */
}

.highScoreTable td:nth-child(3) { /* Score column */
  text-align: right; /* Align scores to the right */
}

  
  .high-score-selected-options-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    height: 20px;
}

.mode-icon {
    width: 30px;
    height: 30px;
    margin: 0 9px;
}
  
  

/*//////////////////////////////////////*/
/*   OTHER TOOL TIPS  V2 - need to find out what */
/*//////////////////////////////////////*/
.tooltip-container {
  position: relative;
  display: inline-block;
}

.icon-tooltip-container {
display: flex;
flex-direction: column;
align-items: center;
}

.icon-tooltip-container .tooltiptext {
  opacity: 0;
  visibility: hidden;
  width: auto;
  background-color: #1f1f1f;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease-in-out;
}

.icon-tooltip-container:hover .tooltiptext {
  opacity: 1;
  visibility: visible;
}


#bottomRowContainer {
display: flex;
justify-content: space-around; /* Ensure even spacing for the bottom row */
margin-top: 1vw; /* Adjust as necessary */
}



.left-hand-option-container {
position: absolute;
top: 65%; /* Move the dot above the text */
left: 50%;
transform: translateX(-50%);
}

.left-hand-option {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}

.left-hand-tooltip {
  visibility: hidden;
  width: auto;
  background-color: #1f1f1f;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.left-hand-option-container:hover .left-hand-tooltip {
  visibility: visible;
}

.left-hand-option.active {
  background-color: #ff0000;
}
















/* ----------------------------------- */
/*    LOADING BAR Specific Changes    */
/* ----------------------------------- */
/* ----------------------------------- */
/*    LOADING BAR Specific Changes    */
/* ----------------------------------- */

.loading-image {
  width: 75vw;
  max-width: 100vw;
  height: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 10;
  display: none; /* Hide all images by default */

}

.loading-image.show {
  display: block;
}

#loadingBar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 300px;
}

#progressBar {
  width: 0;
  height: 10px;
  background-color: #4CAF50;
  transition: width 0.3s ease;
  margin-bottom: 10px;
}

#loadingText {
  font-size: 24px;
  color: white;
}

#loadingPercentage {
  font-size: 24px;
  color: white;
  margin-top: 5px;
}

@keyframes dotAnimation {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

#loadingDots::after {
  content: "";
  animation: dotAnimation 1s infinite;
  margin-left: 5px;
}





/*///////////////////////////////////////////*/
/* Styles for USER NAME INPUT modal AFTER LEVEL  */
/*///////////////////////////////////////////*/
.modal-username {
  display: none; 
  position: fixed; 
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5); 
}

.modal-username-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0 auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 280px;
  border-radius: 10px;
  text-align: center;
}

.close-username {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-username:hover,
.close-username:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.modal-username-content p {
  font-size: 18px;
  color: white;
  margin-bottom: 15px;
  text-align: center; /* Centering the text */
}

.modal-username-content input {
  width: 80%;
  padding: 10px;
  margin: 10px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  background-color: #333;
  color: white;
}

.modal-username-content button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  margin: 10px auto;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
}

.modal-username-content button:hover {
  background-color: #0056b3;
}


/* FOR FILTERING BAD WORDS */
.username-error-message {
  color: #ff4444;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
  display: none; /* Hidden by default */
}

/* When error is shown */
.username-error-message.show {
  display: block;
}










/* ////////////////////*/
/* OPTIONS MENU TOGGLE */
/* ////////////////////*/

#optionsPanel {
  width: 26.5%;
  height: auto;
  min-height: 5vw; /* Adjusted minimum height */
  border-radius: 2.5vw;
  overflow: visible;
  transition: min-height 0.3s ease, height 0.3s ease;
  margin-top: 2vw; /* Move the panel down slightly */
}


.options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw;
  cursor: pointer;
}

.options-header h1 {
  font-size: 1.3vw;
  margin: 0;
}




.options-content {
  padding: 1.5vw;
  display: none; /* Initially hidden */
  position: relative;
  z-index: 1;
  margin-top: -30px; /* Adjust this value to move the icons up */
}

#optionsPanel:not(.folded) .options-content {
  display: block;
  height: auto; /* Ensure content takes up available space */
}

/* Add a white line between the first and second row */
.options-content .row:first-child::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5); /* 50% opacity white line */
  margin: 1vw 0; /* Adjust spacing as needed */
}

/* Adjust the position of the second row */
.options-content .row:last-child {
  margin-top: 1vw; /* Move the second row down slightly */
}















/*////////////////////////////////////// */
/*////////////////////////////////////// */
/*////        MODALS           ///////// */
/*////////////////////////////////////// */
/*////////////////////////////////////// */


/*//////////////////////////////////////*/
/* ABOUT ME MODAL (background) */
/*//////////////////////////////////////*/

/* Style for the option icons */
.option-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-left: 5px;
}


.collapsible {
  background-color: rgba(0, 0, 0, 0.8); /* Match modal background */
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px; /* Increase font size to match headers */
  margin-bottom: 10px; /* Add space between sections */
}

.active, .collapsible:hover {
  background-color: rgba(0, 0, 0, 0.8); /* Keep the background same */
  color: #00bfff; /* Change text color to blue */
}

.collapsible:hover {
  text-decoration: underline; /* Underline text on hover */
}

/* New styles for when collapsible is open */
.collapsible.collapsible-open {
  color: red; /* Change text color to red */
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8); /* Match modal background */
  color: white; /* Match text color */
  margin-bottom: 10px; /* Add space between sections */
}

/* Modal styles */
.modal {
  top: 0; /* Ensure the background covers the entire height */
  height: 100%; /* Ensure the background covers the entire height */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  animation: fadeIn 0.5s;
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  width: 100%;
  overflow: hidden; /* Prevent full page scrolling */
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.8); /* Black w/ transparency */
  margin: 5% auto; /* Adjust margin to bring the modal box down */
  padding: 30px;
  border-radius: 10px;
  width: 60%;
  max-width: 800px;
  max-height: 60%; /* Confine the height */
  overflow-y: auto; /* Enable scrolling within the modal */
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s;
}

/* Custom scrollbar styles */
.modal-content::-webkit-scrollbar {
  width: 16px; /* Adjust the width of the scrollbar */
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5); /* Darker background for the scrollbar track */
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #333; /* Darker color for the scrollbar thumb */
  border-radius: 6px; /* Rounded corners for the scrollbar thumb */
  border: 3px solid rgba(0, 0, 0, 0.8); /* Optional: adds a border around the thumb */
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Slightly lighter color on hover */
}

.modal-content h2, .modal-content h3 {
  margin-top: 0;
  text-align: left; /* Left-justify the headings */
  font-size: 18px; /* Increase font size for headers */
}

.modal-content p, .modal-content ul {
  line-height: 1.8; /* More spacing between lines */
  margin-bottom: 15px; /* Add space between paragraphs */
}

.modal-content ul {
  list-style-type: disc; /* Add bullet points */
  margin-left: 20px;
}

.modal-content a {
  color: #00bfff;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal-gif {
  display: block;
  margin: 20px 0; /* Left-justify the GIF */
  max-width: 100%;
  height: auto; /* Responsive size */
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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




/* ////////////////////////////////////// */
/*     HOW TO PLAY Modal Tour Styles */
/*////////////////////////////////////// */


.modal-tour {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Dimming effect */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.modal-tour.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.modal-tour-content {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  margin: 10% auto; /* Adjust margin to center vertically */
  padding: 20px;
  width: 80%;
  max-width: 700px;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

.close-tour {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-tour:hover,
.close-tour:focus {
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
}

.modal-gif {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center the GIFs */
}

.modal-navigation {
  display: flex;
  justify-content: center; /* Center the navigation buttons */
  align-items: center;
  margin-top: 20px;
  position: relative;
  gap: 20px; /* Space between buttons, adjust this value as needed */
}

.modal-navigation-left {
  display: flex;
  justify-content: flex-start; /* Align to the left */
  align-items: center;
  margin-top: 20px;
  position: relative;
}

.tour-button {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100px; /* Ensure buttons are the same size */
}

.tour-button:hover {
  background-color: #009acd;
}

.step-indicator {
  position: absolute;
  right: 10px; /* Align the step indicator to the right */
  bottom: 10px; /* Position it above the bottom edge */
  font-size: 1em;
  color: #00bfff;
}


/* Center the checkbox and label with a responsive layout */
.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Adds space between checkbox and label */
  margin-top: 10px;
  flex-wrap: wrap; /* Ensures elements wrap on smaller screens */
}

/* Style for checkbox input */
.checkbox-container input[type="checkbox"] {
  transform: scale(1.2); /* Enlarges checkbox for visibility */
}

/* Style for label */
.checkbox-label {
  font-size: 1.1em; /* Makes the label text slightly larger */
  word-break: break-word; /* Allows text to wrap on smaller screens */
}


#agreeTerms {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Simplify and compact bullet points */
.legal-content ul {
  padding-left: 20px; /* Reduces indentation */
  margin-top: 5px; /* Small margin for separation */
}

.legal-content ul li {
  margin-bottom: 8px; /* Reduce space between list items */
  font-size: 1em; /* Consistent font size */
  line-height: 1.5; /* Improved readability */
}

/* Full-screen overlay to dim the background */
#backgroundOverlay {
  display: none;
  position: fixed;
  z-index: 999; /* One level below the modal */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Transparent black */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#backgroundOverlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.legal-content {
  color: white; /* Ensure the text inside the scrollable area is readable */
}

.terms-container {
  display: flex;
  align-items: center; /* Align items vertically centered */
}

#agreeTerms {
  transform: scale(0.5); /* Adjust the scale as needed */
  margin-right: -10px; /* Negative margin to move the checkbox closer to the text */
}

#toggleTerms {
  color: #00bfff;
  cursor: pointer;
  pointer-events: auto !important;
}












/* GAME MODE MODAL WELCOME TOUR - needs work!!!*/

/* Mobile landscape specific styles */
/* Mobile landscape specific styles */
@media screen and (orientation: landscape) and (max-height: 600px) {
  /* Main container settings */
  .modal-tour .modal-tour-content {
    margin: 2vh auto !important;
    max-height: 90vh !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  /* Image size control */
  .modal-tour .modal-tour-content .modal-gif {
    max-height: 70vh !important;
    width: auto !important;
    margin: 5px auto !important;
  }

  /* Title text size */
  .modal-tour .modal-tour-content h2 {
    font-size: 1.9em !important;
    margin: 5px 0 !important;
  }

  /* Navigation/button container */
  .modal-tour .modal-tour-content .modal-navigation {
    position: fixed !important;
    width: 90% !important;
    left: 5% !important;
    bottom: 10%; /* Moves the Prev/Next buttons lower */
    display: flex !important;
    justify-content: space-between !important; /* Positions Prev on the left, Next on the right */
    gap: 10px; /* Adds spacing between buttons */
    pointer-events: none !important;
  }

  .modal-tour .modal-navigation .tour-button {
    pointer-events: auto !important;
  }

  /* Prev Button Styling (Always on the Left) */
  .modal-tour .modal-navigation .tour-button:first-of-type {
    margin-left: 0 !important;
  }

  /* Next Button Styling (Always on the Right) */
  .modal-tour .modal-navigation .tour-button:last-of-type {
    margin-left: auto !important;
  }

  /* General Prev and Next Button Styling */
  .modal-tour .modal-navigation .tour-button {
    pointer-events: auto !important;
    padding: 8px 16px !important; /* Slightly larger for touch accessibility */
    font-size: 1em !important; /* Scales down font size for smaller screens */
    border-radius: 5px;
  }

  /* Start Button (No Change for Mobile) */
  .modal-tour-content.welcome .modal-navigation .tour-button {
    position: relative !important;
    display: block !important;
    margin: 20px auto !important; /* Centered for Welcome Modal */
    font-size: 1.3em !important; /* Keep larger size for emphasis */
  }

  /* Increase font size for "You're All Set!" */
  #modalTour7 .modal-tour-content h2 {
    font-size: 2.8em !important; /* Make the title significantly larger */
    font-weight: bold; /* Emphasize the title */
    text-align: center; /* Ensure it is centered */
    margin: 40px 0; /* Add spacing above and below */
  }

  /* Increase font size for "Enjoy playing Finger Saber!" */
  #modalTour7 .modal-tour-content p {
    font-size: 1.5em !important; /* Slightly larger for better visibility */
    text-align: center; /* Align text in the center */
    margin-top: 10px; /* Add spacing above the paragraph */
  }

  /* Legal Content Styling */
  .legal-content {
    max-height: 33vh !important; /* Limit the height to 33% of the viewport */
    width: 70% !important; /* Make the box narrower to prevent overlap */
    margin: 10px auto !important; /* Center the box */
    padding: 8px !important;
    font-size: 1.2em !important; /* Small but readable text */
    line-height: 1.4 !important;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow-y: auto !important; /* Enable scrolling inside the legal box */
  }

  /* Legal Modal (General Fixes for Welcome Modal) */
  .modal-tour-content.welcome {
    margin: 1vh auto !important;
    padding: 10px 20px !important;
    max-height: 80vh !important; /* Ensure modal doesn't overflow the viewport */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Center everything within */
    justify-content: space-between !important; /* Ensure balanced spacing */
  }

  /* Bullet Alignment for Legal Content */
  .legal-content ul {
    list-style-position: inside; /* Moves the bullet inside the text block */
  }

  .legal-content ul li {
    text-indent: 0; /* Ensures bullets and text stay aligned */
  }

  /* Checkbox container in legal modal */
  .checkbox-container {
    margin: 5px 0 !important;
    font-size: 1.9em !important;
  }

  /* "Got It" Button on Final Modal */
  .modal-tour-content .tour-button#gotItButton {
    display: block !important;
    margin: 20px auto !important;
    font-size: 1.2em !important;
  }
}



/*////////////////////////////////////// */
/* UPLOAD CUSTOM SONG MAP MODAL */
/*////////////////////////////////////// */
.upload-modal {
  display: none; /* Ensure the modal is hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Dimming effect */
}

.upload-modal-content {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  margin: auto;
  padding: 15px; /* Reduced padding */
  border: 1px solid #888;
  width: 90%; /* Slightly wider */
  max-width: 500px; /* Reduced from 700px */
  text-align: center;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  max-height: 80vh; /* Ensure it doesn't exceed viewport height */
  overflow-y: auto; /* Allow scrolling if needed */
}

.upload-modal-image,
.modal-gif,
.upload-modal-content img {
  max-width: 100%;
  height: auto;
  max-height: 40vh; /* Limit height to 40% of viewport height */
  object-fit: contain; /* Maintain aspect ratio */
}




/* Add specific handling for landscape mode */

@media screen and (orientation: landscape) and (max-height: 600px) {
  .upload-modal-content {
    width: 88%; /* Almost full width */
    max-width: 95vh; /* Remove max-width constraint */
    padding: 5px; /* Minimal padding */
    margin: 1vh auto; /* Tiny margin top/bottom */
    border: none; /* Remove border for edge-to-edge look */
  }
  
  .upload-modal-image,
  .modal-gif,
  .upload-modal-content img {
    max-height: 75vh; /* Much bigger image */
    width: auto;
    margin: 5px auto;
  }

  /* Optional: make title smaller to give more room */
  .upload-modal-content h2 {
    font-size: 1.2em;
    margin: 5px 0;
  }
}


.upload-modal-image {
  display: block;
  margin: 20px auto; /* Center the image and add some margin */
  max-width: 100%;
  height: auto; /* Make the image responsive */
}



#dontShowAgainUpload {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.tour-button {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100px; /* Ensure buttons are the same size */
}

.tour-button:hover {
  background-color: #009acd;
}

.step-indicator {
  position: absolute;
  right: 10px; /* Align the step indicator to the right */
  bottom: 10px; /* Position it above the bottom edge */
  font-size: 1em;
  color: #00bfff;
}

/* Full-screen overlay to dim the background */
#backgroundOverlay {
  display: none;
  position: fixed;
  z-index: 999; /* One level below the modal */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Transparent black */
  opacity: 0;
  visibility: hidden;
}

#backgroundOverlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.upload-modal-content .link {
  color: #00bfff; /* Lighter blue for links */
  text-decoration: none;
}

.upload-modal-content .link:hover {
  text-decoration: underline;
}

.upload-modal-content h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.upload-modal-content p {
  font-size: 1em;
  margin-bottom: 20px;
}

.upload-close {
  color: white;
  font-size: 28px; /* Increase the font size */
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px; /* Move it to the right */
}

.upload-close:hover,
.upload-close:focus {
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
}









/* ////////////////////////// */
/* Achievements PAGE Panel Styles */
/* ////////////////////////// */


#achievementsPanel {
  width: 90vw; /* Responsive width to make it wider on all screens */
  max-width: 1200px; /* Optional: limit maximum width for large screens */
  padding: 15px;
  border-radius: 10px; /* Consistent rounded corners */
  margin: auto; /* Center it horizontally */
}
/* Achievements Panel Styles */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 20px;
  overflow-y: auto;
  max-height: 80%;
}

/* For larger screens, make it a two-column grid */
@media (min-width: 768px) {
  .achievements-grid {
      grid-template-columns: 1fr 1fr;
  }
}

.achievement-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px; /* Consistent border-radius across all screen sizes */

  position: relative;
}

/* Add subtle glow and yellow color for unlocked achievements */
.achievement-item.unlocked {
  background: rgba(255, 255, 200, 0.15);
  border-color: #FFD700;
  box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.6);
}

.icon-container {
  margin-right: 15px;
}

.trophy-icon {
  width: 50px;
  height: 50px;
  filter: grayscale(100%); /* Default grey for locked */
  transition: filter 0.3s, color 0.3s;
}

/* Apply bright yellow tint to unlocked trophies */
.achievement-item.unlocked .trophy-icon {
  filter: none; /* Remove grayscale */
  color: #FFD700; /* Fallback yellow color */
  background-color: #FFD700; /* For extra clarity on transparent icons */
  mask-image: url(images/defaultTrophy.png); /* Ensures icon structure is preserved */
  mask-size: cover;
}



.text-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.achievement-title {
  font-size: 1.2em;
  margin: 0;
  color: #f0f0f0; /* Slightly brighter white */
}

.achievement-description {
  font-size: 0.9em;
  color: #e0e0e0; /* Brighter gray */
  margin: 0 0 8px 0;  /* Added bottom margin */
  order: 2;  /* Ensure description comes before progress */
}

.achievement-progress {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 5px;
  order: 3;  /* Progress bar comes after description */
  width: 100%;
}






.trophy-unlock-particle {
  position: fixed;
  width: 3px;  /* Smaller particles */
  height: 3px;
  background-color: #FFD700;
  border-radius: 50%;
  opacity: 1;
  z-index: 1000;
  pointer-events: none;
  animation: trophy-particle-burst 1.2s ease-out forwards;
  box-shadow: 
    0 0 2px #FFD700,
    0 0 4px rgba(255, 215, 0, 0.8);  /* Subtle glow */
}

/* Variant for extra sparkle */
.trophy-unlock-particle.sparkle {
  width: 2px;  /* Even smaller sparkles */
  height: 2px;
  background-color: #FFF;
  animation: trophy-sparkle-burst 0.8s ease-out forwards;
}

@keyframes trophy-particle-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--x-offset), var(--y-offset)) scale(1.5);
    opacity: 0;
  }
}

@keyframes trophy-sparkle-burst {
  0% {
    transform: translate(0, 0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x-offset), var(--y-offset)) scale(0) rotate(180deg);
    opacity: 0;
  }
}






/* Locked Achievement Styling background */
.achievement-item.locked {
  background: rgba(100, 100, 100, 0.6); /* Dark grey background for locked */
  border-color: rgba(150, 150, 150, 0.5); /* Faded border */
  filter: grayscale(100%); /* Full desaturation for locked achievements */
  opacity: 0.5; /* Dim opacity for locked */
}

.achievement-item.locked .achievement-title,
.achievement-item.locked .achievement-description {
  color: #cecece; /* Brighter gray for better readability */
}

/* Unlocked Achievement Styling */
.achievement-item.unlocked {
  background: rgba(255, 255, 200, 0.15); /* Light yellow background */
  border-color: #FFD700; /* Bright yellow border */
  box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.6); /* Yellow glow */
  opacity: 1; /* Full opacity for unlocked */
  filter: none; /* Remove grayscale */
}

.achievement-item.unlocked .achievement-title,
.achievement-item.unlocked .achievement-description {
  color: #FFD700; /* Bright yellow text */
}

.achievement-item.unlocked .trophy-icon {
  filter: none; /* Remove grayscale */
  color: #FFD700; /* Yellow color for the icon */
  background-color: #FFD700; /* Extra yellow tint */
}

/* Lock icon for locked achievements */
/* Lock icon for locked achievements */
/* Lock icon for locked achievements */
.achievement-lock-icon {
  margin-left: auto; /* Pushes the lock icon to the far right */
  width: 25px; /* Fixed width */
  height: auto; /* Maintain aspect ratio */
  opacity: 0.7;
  z-index: 1;
}



/* Add to your existing CSS */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 5px;
}

.progress-fill {
  height: 100%;
  background: #FFD700;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8em;
  color: #aaa;
  margin-bottom: 2px;
}


/* TOGGLING STUFF FOR ACHIEVEMENTS */
.achievement-category {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.category-header {
  font-size: 1.1em;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: #FFD700;
}

.category-header:hover {
  background: rgba(255, 255, 255, 0.2);
}

.category-content {
  display: block; /* Visible by default */
  padding: 10px 20px;
}









/* Full-Screen Achievement Modal Styling */
/* RESULTS PAGE!!!!! */
.achievement-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: showModal 0.3s ease-out;
}

/* Close Button Styling */
.achievement-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* Achievement Badges in a Row */
.achievement-modal-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Bubble Pop Effect for Achievements */
@keyframes bubblePop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Individual Achievement Badge */
.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  width: 160px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: bubblePop 0.5s ease-out forwards; /* Apply bubble pop effect */
  animation-delay: var(--delay, 0s); /* Dynamic delay for staggered entry */
}

/* Particle Effect Styling */
.particle-effect {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.8);
  animation: particleMove 0.8s ease-out forwards;
}

/* Particle Animation */
@keyframes particleMove {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translate(30px, -30px) scale(0); }
}

/* Trophy Icon Styling */
.achievement-trophy-icon {
  width: 40px;
  height: 40px;
  filter: brightness(2) saturate(2) hue-rotate(50deg);
  margin-bottom: 10px;
}

/* Achievement Text */
.achievement-text {
  font-size: 1.1em;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin: 10px 0;
}

/* Bottom Prompt */
.achievement-prompt {
  color: #FFD700;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}


/* BAR */


.achievement-modal .progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 5px;
}

.achievement-modal .progress-fill {
  height: 100%;
  background: #FFD700;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.achievement-modal .progress-text {
  font-size: 0.8em;
  color: #FFD700;
  margin-bottom: 2px;
  text-align: center;
}

.achievement-modal .achievement-progress {
  font-size: 0.9em;
  color: #FFD700;
  margin-top: 5px;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .achievement-modal {
    width: 95%;
  }
  .achievement-badge {
    width: 100%;
  }
}








/* Style for the SPEAKER ICON in the upper left corner */
#speaker-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#speaker-icon {
  display: none; /* Hidden by default */
}

#stageSelectContent.active + #speaker-icon {
  display: block; /* Show only when StageSelect is active */
}




/* Responsive style for smaller screens */
@media (max-width: 768px) {
  #speaker-icon {
      width: 25px; /* Adjust icon size for smaller screens */
      height: 25px;
      top: 10px;
      left: 10px;
  }
}

/* ============================
   iOS INSTALL PROMPT STYLES
============================ */

#iosInstallModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/installBackground.jpg') no-repeat center center;
  background-size: cover;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content near the top */
  align-items: center;
  visibility: hidden; /* Hidden by default */
}

#iosInstallModal.visible {
  visibility: visible; /* Show the modal */
}

.install-container {
  text-align: center;
  color: white;
  margin-top: 20px; /* Adjust to move closer to the top */
}

.install-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #fff;
}

.install-text {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px; /* Space between text and arrow */
}

.highlight {
  color: #ff4545; /* Red color for emphasis */
  font-weight: bold;
}

.bouncing-arrow {
  font-size: 80px;
  color: #fff;
  position: absolute;
  bottom: 0px; /* Position arrow closer to share icon */
  left: 45%; /* Align arrow slightly to the left */
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Browser Version Button */
.browser-version {
  position: absolute;
  bottom: 15px; /* Slightly lower placement for balance */
  right: 15px;
  font-size: 14px;
  background: none;
  border: none;
  color: white;
  text-decoration: underline;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.hide-browser-version {
  display: none !important; /* Hides the element completely */
}


.share-icon {
  width: 40px; /* Adjust to your desired size */
  height: 40px; /* Match the width for consistency */
  vertical-align: middle; /* Align icon vertically with text */
  margin: 0 5px; /* Optional: Add space around the icon */
}




/* ============================
   ANDROID INITIAL INSTALL SCREEN
============================ */
#androidInitialInstallScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/installBackground.jpg') no-repeat center center;
  background-size: cover;
  z-index: 99999999; /* Ensure it's on top of pleaserotate and everything else */
  display: none; /* Hide by default, show via JavaScript when needed */
  overflow: hidden;
}

/* Container for content inside the overlay */
.android-install-content {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Center the big install button in the middle of the screen */
.big-install-button {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Browser Version button at bottom-right corner */
#androidBrowserVersionButton.browser-version {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 14px;
  background: none;
  border: none;
  color: white;
  text-decoration: underline;
  cursor: pointer;
  font-family: Arial, sans-serif;
}














/*////////////////////////////////////// */
/*////       GRAVE YARD MAYBE           ///////// */
/*////////////////////////////////////// */




/*SORTING MENU AND SONG SONG SELECT STUFF - MIGHT BE ABLE TO KILL */

.sort-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  right: 60px; /* Adjust the value to move the dropdown to the left */
  bottom:-30px;
}

.sort-container .caret {
  font-size: 0.6em;
}


.sort-dropdown {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0;
  top: 100%;
  padding: 10px;
  border-radius: 5px;
  color: white;
}

.sort-dropdown div {
  padding: 5px;
  cursor: pointer;
}

.sort-dropdown div:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.sort-dropdown.show {
  display: block;
}




