:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100vw;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 5px; /* Width of the vertical scrollbar */
  height: 75%; /* Height of the horizontal scrollbar */
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #888; /* Thumb color */
  border-radius: 10px;
  width: 2px;
}


a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
  cursor: pointer;
  
}
a:hover {
  color: #535bf2;
  
}

body {
  margin: 0;
  display: flex;
  min-width: 320px;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(54, 0, 248, 0.3), rgba(0, 255, 64, 0.3));
  background-size: 200% 200%;
  animation: gradient-shift 60s infinite linear;
  overflow: hidden;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button, input[type="file"]::file-selector-button  {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button.danger {
  border-color: red;
}

button.danger:hover {
  color: white;
  background-color: red;
}



@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



@media (prefers-color-scheme: light) {
  .header {
    background-color: rgba(240, 240, 240, 0.85);
    border-bottom: 1px solid rgba(84, 91, 242, 0.3);
  }
}


.card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#root {
  margin: 0 auto;;
  text-align: center;
}
.text_input {
  background-color: transparent;
  border: 2pt solid #ffffff;
  color: inherit;
  opacity: 0.8;
  padding: 8pt; /* Increased padding for a larger input field */
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2em; /* Increased font size */
  max-width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.text-input:focus {
  opacity: 1;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: auto;
  width: 70%;

}

.google-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: transparent;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  max-height: 90vh;
  overflow-y: scroll;
  
  
}

.card > .list {
  overflow-y: auto;
  max-height: 80%;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
  margin-top: 2em;
  margin-bottom: -2em;
  margin-left: -2em;
  margin-right: -2em;
  max-height: 10%;
}

@media screen and (max-width: 523px) {
  .card-footer {
    margin-top: 1em;
    margin-bottom: -1em;
    margin-left: -1em;
    margin-right: -1em;

  }
}

.mini-player-card > .player-card {
  padding: 1em; /* Adjust padding as needed */
  width: 100% !important;
  height: 90%;
  margin: 0 auto; /* Center the player card */
  border-radius: 10px; /* Add rounded corners */
  position: relative;
  flex-shrink: 1;
  
}

.mini-player-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


@media screen and (max-width: 523px) {
  .card {
    padding: 1em;
    border-radius: 6px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
  }
}

button, input[type="file"]::file-selector-button {
  background-color: transparent;
  margin: 10pt;
  border: #ffffff 1pt solid;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s, scale 0.3s;
}
button:hover, input[type="file"]::file-selector-button:hover {
  background-color: #ffffff;
  scale: 1.1;
  color: black
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #646cff;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin: 1rem;
}

.checkbox:checked {
  background-color: #646cff;
  border-color: #646cff;
}

.read-the-docs {
  color: #888;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  cursor: pointer;
}

.list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  height: 100%; /* Ensure the parent container has a height for rows to stretch */
}
.list > * {
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 900px) {
  .list {
    grid-template-rows: repeat(0, 1fr); /* Single column on smaller screens */
    grid-template-columns: none;
    overflow-y: auto; /* Add scrolling if content overflows */
    max-height: 80vh; /* Limit height to enable scrolling */
  }
}

.list-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, background-color 0.2s;
  overflow: hidden;
}

.list-item:hover {
transform: translateY(-2px);
background-color: rgba(255, 255, 255, 0.1);
}

.list-item:last-child {
margin-bottom: 0;

}


  
.list-item {
  display: block;
  width: 100%;
}
.player-card {
  background: rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 90vw;
  margin: 0 auto;
  z-index: 0;
  overflow-y: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 80vh;
  max-height: 80vh;
  transition: height 0.3s ease;
  animation: show 600ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;
  animation: hide 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  @keyframes hide {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(20px);
    }
  }

  
}

.side-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgb(0,0,0,0.5);
  z-index: 1000;
  transition: opacity 0.3s;
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  pointer-events: auto;
  animation: overlay-fade-in 0.3s forwards;
}

@keyframes overlay-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes overlay-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.panel-base {
  height: 100%;
  background: rgb(36, 35, 35);
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
  overflow-y: auto;
  width: 100vw;
  max-width: 100vw;
  padding: 2em;
  display: flex;
  flex-direction: column;
  gap: 2em;


}

.panel-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100vw;
  background: rgb(36, 35, 35);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  overflow-y: auto;
  

}


.playlist-view > .player-card {
  height: 70% !important;
  max-height: 60% !important;
  width: 80% !important;
  z-index: 1002 !important;
}

.controls {
  width: 100%;
  background: rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
}
.controls > .buttons {
  display: flex;
  flex-direction: row;
  padding: 0.3rem;
}

.progress-bar {
  width: 85%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0;
}

.progress {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, #646cff, #61dafb);
  transition: width 0.1s linear;
  border-radius: 2px;
}

.progress-container {
  width: 90%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
}

.player-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 10px;
}

.player-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
  margin: 15pt;
}
.switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
  margin-bottom: 15pt;

}

.player-list-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.player-list-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 3px solid #ffffff;
}

.song-title {
  font-weight: bold;
  margin-bottom: 0;
  padding-right: 5pt;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

.song-artist {
  font-size: 0.85em;
  opacity: 0.8;
  margin-bottom: 1.5pt;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

.song-duration {
  margin-left: auto;
  opacity: 0.7;
  font-size: 0.85em;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

.currently-playing {
  height: 40vh;
  max-height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; 
  z-index: 1000;
  margin-bottom: 4em;
  padding: 0 20px;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Add these classes to toggle with JavaScript when content changes */
.content-changing {
  opacity: 0;
  transform: translateY(-20px);
}

.content-changed {
  opacity: 1;
  transform: translateY(0);
}
@media screen and (max-width: 523px) {
  .top-group {
    flex-direction: column;
  }
  .top-group > .album-cover {
    width: 120px;
    height: 120px;
  }
  .song-info-group > h1 {
    font-size: 2em;
  }
}
@media screen and (min-width: 523.01px) {
  .top-group > .album-cover {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    margin-right: 20px;
  }
}
.top-group {
  display: flex;
  align-items: center;
  justify-content: center;
  
  padding: 10pt;
  z-index: 999;
}
.album-cover {
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-album-cover {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  margin-right: 20px;
  float: left;
}

.album-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.player-card .album-cover {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  margin-right: 15px;
  float: left;
}

.clicked {
  color: green;
  font-weight: bold;
  transform: scale(1.02);
}


.album-cover-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.currently-playing-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 8px;
  z-index: 0;
  margin: 30px;
}

.song-info-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.audio-controls {
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
}

.header {
  background-color: rgba(40, 40, 40, 0.85);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(100, 108, 255, 0.3);
  width: 90vw;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  margin: 0;
  box-sizing: border-box;
  border-radius: 8px;
}

#container {
  padding: 2rem;
  justify-content: center;
  align-items: center;
}


