html {
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  /* height: -webkit-fill-available; */
  height: 100%;
  overflow: visible;
  position: relative;
  font-family: Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

/* 
h1 {
  font-size: 2em;
  color: #111;
}

p {
  font-size: 1em;
  color: #666;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  height: 100%;
} */

  #playerAccessButton {
    font-size: 20px;
    font-weight: bold;
    height: 50px;
    background-color: lightblue;
  }
  #signup-form {
    flex-direction: column;
  }

  #signup-form input {
    width: 100%;
    margin-bottom: 10px;
  }

  #signup-form button {
    width: 100%;
  }



  .progressLine {
    background-color: red;
    height: 2px;
    width: 0%;
    transition: width 0.1s ease-out; /* Smooth transition for width changes */
    position: absolute; /* Makes both lines overlap */
    left: 0;
    top: 0;
  }
  
  .progressBar {
    background-color: black; /* Set background of the non-progress area */
    height: 2px; /* Set a fixed height for the player */
    position: absolute;
    bottom: 50px; /* height of the player */
    width: 100%; /* Ensure it spans the width it should */
  }
  

  .input-group, .button-group {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 10px; /* Space between groups */
  }
  
  .input-group input[type="text"] {
    flex-grow: 1; /* Make input take available space */
    margin-right: 8px; /* Space between input and button */
  }
  
  .button-group {
    display: flex;
    justify-content: center; /* Center aligning the logout button */
  }
  


#app {
  display: flex;
  flex-direction: column;
  height: 100%; /* Set the height of the main container to 100% of the viewport height */
  width: 100%;
  height: 100%;
  overflow: visible; /* or 'auto' if you want scrollbars when necessary */
  touch-action: none;
  max-width: 720px; /* Maximum width for larger screens */
  margin: 0 auto; /* Center the content horizontally */
  box-sizing: border-box; /* Ensures padding does not add to the width */
  position: relative;
  padding-bottom: env(safe-area-inset-bottom); /* This ensures space for the iOS bottom bar */
  /* border: 2px solid red; */
}


.main {
  display: flex;
  flex-direction: column;
  flex: 1 !important; 
  height: calc(100% - 90px); /* Adjusted for the top bar height */
  background: lightgray; 
  justify-content: space-around;
  align-items: center;
  background: lightgray;
}

#User-Settings, #User-Playlist {
  background: lightgray;
  height: calc(100% - 102px);
  width: 100%; 
  position: absolute;
  z-index: 5;
  top: 50px;
  text-align: center;
  padding-top: 1%;
  padding-bottom: 1; 
  padding-left: 5%;
  padding-right: 5%;
  transition: 1s ease;
  transform: translateX(100%);
  overflow: hidden; 
  max-width: 720px; 
}

#User-Playlist:after {
  content: "";
  height: calc(100% - 102px);
  width: 1px;
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
}

#User-Playlist.active {
  transform: translateX(0); /* unchanged */
}
/* Updated styles for scrollable playlist container */
#playlistsContainer {

  max-height: calc(100% - 30px); /* Adjusted for padding and elements within #User-Playlist */
  overflow-y: scroll; /* Enables vertical scrolling when content overflows */
  padding-bottom: 1%;
  padding-top: 1%;
  /* overflow: hidden; */
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #f8f8f8;
  border-bottom: 1px solid #ccc;
}


.playlist-title {
  flex-grow: 1;
  text-align: center;
  margin: 0 10px; /* Ensure title has space around it */
}
/* Style for individual playlists */
.playlist {
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.playlist-toggle, .add-song {
  padding: 5px 10px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.playlist-toggle {
  background-color: #007BFF;
  color: white;
}

.playlist-toggle:hover {
  background-color: #0056b3;
}

.add-song {
  background-color: #28a745;
  color: white;
}

.add-song:hover {
  background-color: #218838;
}


/* Styles for the song container inside each playlist */
.songs-container {
  display: none; /* Hidden by default */
  padding: 10px;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
}

/* Scrollable song list */
.songs-container {
  /* max-height: 200px; */
  overflow-y: auto;
}



/* Styles for the match list */
#matchList {
  flex: 1; 
  overflow-y: auto; 
  margin-top: 10px; /* Add a top margin of 10% */
  margin-bottom: 60px; /* Add a bottom margin of 10% */
  width: 80%;
  padding-top: .25rem;
  padding-bottom: .25rem;
}
.list-group-item {
  border: none; /* Remove the border */
  padding: 0px var(--bs-list-group-item-padding-x);
  background-color: transparent;
}

.list-group-item-action:focus, .list-group-item-action:hover{
  background-color: transparent;
}


.list-group-item button.btn {
  color: #007bff;
  background-color: #fff;
  border-color: #007bff;
  margin-top: .25rem !important;
  margin-bottom: .25rem !important;
}

.list-group-item button.btn:hover {
  background-color: #007bff;
  color: #fff;
}

.list-group-item button.btn.active {
  color: #fff;
  background-color: #007bff;
}


/* Styles for User Settings - Assuming you want to keep this part unchanged */
#User-Settings {
  transform: translateX(-100%);
}

#User-Settings:after {
  content: "";
  height: 100%;
  width: 1px;
  background: #000;
  position: absolute;
  top: 0;
  right: 0;
}

#User-Settings.active {
  transform: translateX(-1px);
}




.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ccc; /* Adds a subtle separator */
}

.song-details {
  flex-grow: 1; /* Ensures the title spans the remaining space */
  margin-right: 10px; /* Space between title and button */
}

.play-button {
  padding: 5px 10px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

.play-button:hover {
  background-color: #0056b3;
}


h2 {
  text-align: center;
  margin: 0 auto;
  padding: 1rem;
}

.topbar {
  background: rgb(127, 127, 127);
  width: 100%;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* padding: 5px 20px; */
  /* height: 50px; */
  margin: 0 0 0 0
}

/* Custom CSS to hide radio buttons */
.topbar .btn-group-toggle .btn input[type="radio"] {
  display: none;
  margin: 0 0 0 0;
  /* height: 50px; */
}

.topbar .btn-group-toggle .btn {
  /* height: 50px; */
  margin: 0 0 0 0;
  
}



.music-controls {
  display: flex;
  justify-content: center; /* Centers the children horizontally */
  align-items: center; /* Aligns the children vertically */
  gap: 20px; /* Adds space between the children */
}






#playerAccessButton {
  width: 100%;
}
.player {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 720px; /* Maximum width for larger screens */

}

.player .play-song .current-song-container {
  display: flex;
  align-items: center; /* Vertical alignment */
  justify-content: space-between; /* Horizontal spacing */
  padding: 10px; /* Padding for better spacing */
  height: 50px; /* Height of the player section */
  text-align: center;
  width: 100%;
}

.player .play-song .current-song-container .beat-readout {
  flex: none; /* Prevents the beat readout from growing */
  font-size: 20px; /* Font size for readability */
  color: black; /* Optional: color for the text */
  text-align: center;
  min-width: 40px;
}

.player .play-song .current-song-container .current-song {
  flex-grow: 1; /* Allows the song title to take up the remaining space */
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
}

.player .play-song .current-song-container .play-pause-btn {
  background: none; /* Removes any default styling */
  border: none; /* Removes border */
  cursor: pointer;
  font-size: 24px; /* Adjust size accordingly */
}

.current-song-container {
background-color: red;
}


.style {
  /* padding: 10px; */
  width: 80%;
  /* flex: 1; */
  display: flex; 
  flex-direction: column;
  justify-content: center; /* Vertically center content */
  align-items: center; /* Horizontally center content */
  overflow-y: auto; /* Add vertical scrolling if content exceeds height */
}

.slider-container {
  position: relative;
  width: 100%;  /* Ensures the container stretches full width */
  height: 4rem;  /* Fixed height to contain the slider and ticks */
  
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #141111;
  position: relative;
  z-index: 2;
  outline: none;
  bottom: -30%;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: #141111;
  border-radius: 3px;
  height: 100%;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  margin-top: -9px;
}


/* Generate ticks */
.slider-container::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;  /* Start from the very left edge */
  right: 0;  /* Extend to the very right edge */
  /* top: 85%;  */
  bottom: 50%;
  /* transform: translateY(-50%); */
  height: 5px;  /* Height of the tick line */
  background: repeating-linear-gradient(to right,
                                        #000 0%, #000 1px,  /* Narrow black tick marks */
                                        transparent 1px, transparent 11.05%);  /* Space between ticks */
  z-index: 1;  /* Below the slider thumb */
}







.style .form-label {
  display: flex; /* Utilizes flexbox for positioning */
  justify-content: space-between; /* Distributes space evenly between the children */
  width: 100%; /* Ensures the label spans the full width of its container */
  position: absolute; /* Position the labels absolutely within the slider container */
  bottom: -5px; /* Move the labels 30px up from the bottom of the slider container */
}


.style .form-label span:first-of-type {
  text-align: left; /* Aligns the first label to the left */
}

.style .form-label span:last-of-type {
  text-align: right; /* Aligns the second label to the right */
}








input[type="range"]::-webkit-slider-thumb {
  width: 20px; /* Customizable width */
  height: 20px; /* Customizable height */
  background: #FFFFFF; /* Customizable color */
  border: 2px solid #000000;
  border-radius: 50%;
  margin-top: -10px; /* Center align thumb */
  -webkit-appearance: none;
}

/* Specific colors for each slider based on the class */
input[type="range"].redSlide::-webkit-slider-thumb {
  background: lightsalmon; /* Red color */
}

input[type="range"].greenSlide::-webkit-slider-thumb {
  background: lightgreen; /* Green color */
}

input[type="range"].blueSlide::-webkit-slider-thumb {
  background: lightblue; /* Blue color */
}






#show-tempo::after {
}

#show-tempo.slow input {
  color: transparent;
}

#show-tempo:after {
  position: absolute;
  background-color: #eda188;
  color: #fff;
  border-radius: 15px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 0 0px;
  transform: translateX(-92%);
}
#show-tempo.slow:after {
  content: "FASTER";
}
#show-tempo.fast:after {
  content: "SLOWER";
}

/*menu pages*/



.modal-backdrop.show {
  display: none;
}

.modal {
  text-align: center;
}

.modal-header,
.modal-footer {
  padding: 4rem;
  border: none;
}

.modal-footer {
  justify-content: center;
}

.modal-dialog {
  max-width: 100%;
  height: calc(60vh - 50px);
  margin: 0;
}

.modal-content {
  height: calc(60% - 50px);
  border-radius: 0;
  background-color: lightgray;
}

.modal-body {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.modal-body form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-body form div {
  margin-bottom: 1rem;
}



#splashText {
  display: block;
  position: flex; /* Fixed positioning relative to the viewport */
  width: 90%; 
  background-color: white;
  margin: 1rem; 
  border-radius: 10px; /* Rounded corners of the splash text box */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Shadow effect for the splash text box */
  text-align: center; /* Centering the text inside the splash text box */
  z-index: 1000; /* Ensures it stays on top of other content */
}

/* Initial hidden state */
body.interacted #splashText {
  display: none;
}



#buttonContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 75px;
  height: 75px;
  /* Add additional styles if you want to see the container boundaries, such as border: 1px solid black; */
}

#progressRingContainer {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: relative; /* Add this line */
  z-index: 3; /* Higher than the button */
}

#toggleAudio {
  position: absolute; /* Position the button absolutely within the relative container */
  top: 0;
  left: 0;
  width: 100%; /* Match the container size */
  height: 100%; /* Match the container size */
  z-index: 2; /* Ensures it's above the SVG */
  border-radius: 50%; /* Maintains the round shape */
  font-size: 24px; /* Adjust font size as necessary */
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent to see the SVG underneath */
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Removed overflow and line-height as they might not be necessary with flexbox alignment */
}
/* Popup styling */
#loadingPopup {
  position: absolute; /* Positioned absolutely relative to its positioned parent */
  display:none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  background-color: #ffffff;
  text-align: center;
  z-index: 10; /* Adjust if needed */
}

#loadingText {
  margin: 0;
  font-size: 18px;
  color: #333333;
  font-weight: 500;
}


.time-and-tempo {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;

}




.time-signatures, .tempo {
  flex: 1;  /* Allows each section to take half of the time-and-tempo container */
  display: flex;
  flex-direction: column;  /* Stacks the content vertically */
  justify-content: space-around;  /* Distributes space evenly */
  overflow: auto;  /* Enables scrolling within each section if content overflows */
  /* margin: 5px;  */
  padding-right: 10%;
  padding-left: 10%;
  width: 20%;
  box-sizing: border-box;
}

.tempo-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;  /* Allows each element to grow and fill available space */
  min-height: 0;  /* Overcome minimum sizing issues that prevent shrinking */
}

 .ts-row {
  margin: 2px 0;  /* Reduces margin to conserve space */
}

/* Additional styling to ensure usability and visual appeal */
.ts-btn, {
  padding: 5px 10px;  /* Reduces padding */
  font-size: 12px;  /* Reduces font size to fit in smaller spaces */
}

.btn-important {
  font-size: 24px; /* Increase font size for larger button */
  padding: 20px 20px; /* Increase padding for larger button */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}



.ts-row, .tempo-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
}

/* Hide the default radio button */
.ts-btn-check {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* Styling labels as buttons */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  border: 2px solid #007bff;
  padding: 5px 10px;
  margin: 2px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  width: 100%; /* Ensures labels fill the row */
}

/* Hover and active styles */
.ts-btn:hover, .ts-btn-check:checked + .ts-btn {
  background-color: #007bff;
  color: white;
}

 .ts-row {
  margin: 2px 0;
}

/* Reduce size adjustments for smaller controls */
.ts-btn,  button {
  font-size: 12px; /* Adjust font size to fit smaller spaces */
}



.time-and-tempo h2 {
  font-size: 16px;
  padding: 0%;
  margin: 0%;
}

.tempo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;  /* Ensures the container uses the full width */
  /* margin: 20px 0; */
}

.tempo-selector {
  display: flex;
  flex-direction: column;  /* Stack elements vertically */
  align-items: center;  /* Center-align items horizontally */
  width: 100%;  /* Adjust width as needed */
}



.tempo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;  /* Controls take full width of their container */
}


