.svg-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* Ensure it is behind other content */
  overflow: hidden;
  background-color: #333333; /* Change this to your desired color */
}

h1 {
  margin-top: 10vh;
  text-align: center; /* Center the heading */
  font-family: "Arial", sans-serif; /* Choose a modern font */
}

h1 span {
  display: inline-block;
  font-size: 3em; /* Increase the font size for better impact */
  letter-spacing: 0.05em; /* Slightly increase letter spacing */
  color: #333333; /* Dark text color for contrast */
  font-weight: 700; /* Bold font for emphasis */
  padding: 10px 15px; /* Add padding to create a box effect */
  background-color: #e0f7fa; /* Light cyan background for the 'keys' */
  border-radius: 5px; /* Slightly round the corners */
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); /* Shadow to add depth */
  margin: 0 3px; /* Spacing between 'keys' */
  transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

/* Alternate background colors for 'black keys' */
h1 span:nth-child(odd) {
  background-color: #80deea; /* Medium cyan for 'black keys' */
  color: #ffffff; /* White text for contrast */
}

h1 span:hover {
  transform: translateY(-5px); /* Lift the key on hover */
  background-color: #4dd0e1; /* Slight color change on hover */
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5); /* Darker shadow on hover */
}

/*  */
/* Keyframes for breathing animation */
@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Keyframes for sliding animation */
@keyframes slideIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Add delay to each span for a staggered effect */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Style for the form */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2vh;
}
/* Center Container */
.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
 
  height: 10vh;
}

/* Heading */
.h2 {
  font-size: 2.5em;
  font-weight: 600;
  margin: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  background: linear-gradient(to right, #e0ffff, #32cd32, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.1px #000000;
  text-align: center;
}
/* Connect Span (Button Style) */
.connect {
  display: inline-block;
  color: #32cd32;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid #000000c4;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.connect:hover {
  background-color: #32cd32ae;
  color: #fff;
  box-shadow: 0 0 10px #32cd32, 0 0 20px #32cd32, 0 0 30px #32cd32;
}

/* Style for the input field */
#song_search {
  font-size: 1.5em;
  width: 60%;
  max-width: 600px;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

/* Hover effect for the input field */
#song_search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

/* Style for the suggestions list */
#suggestions {
  list-style-type: none;
  padding: 30px; /* Reduced padding for a smaller appearance */
  width: 80%;
  max-width: 700px;
  max-height: 300px; /* Limits height to make the list smaller */
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow-y: auto; /* Enables vertical scrolling */
  display: grid;
  grid-template-columns: 1fr; /* Single column */
  gap: 8px; /* Space between items */
}
/* Scrollbar styling for webkit browsers (Chrome, Safari) */ 
#suggestions::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

#suggestions::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.6); /* Color of the scrollbar thumb */
  border-radius: 10px; /* Rounded edges */
}

#suggestions::-webkit-scrollbar-track{
  background: rgba(255, 255, 255, 0.3); /* Color of the scrollbar track */
}
#suggestions li {
  padding: 11px;
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
  display: flex; /* Use flexbox for item layout */
  align-items: center; /* Vertically center the content */
}

#suggestions li:hover {
  background: rgba(255, 255, 255, 0.4);
}

#suggestions img {
  width: 40px;
  height: 40px;
  margin-right: 10px; /* Space between image and text */
  border-radius: 4px;
}

#suggestions div {
  flex: 1; /* Allow text to take the remaining space */
}

/* Firefox scrollbar styling */
#suggestions{
  scrollbar-width: thin; /* Make the scrollbar thinner */
  scrollbar-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.3); /* Thumb color and track color */
}
/* pop for to select after playlist is created*/
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: rgba(0, 187, 249, 0.8);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 40%; /* Could be more or less, depending on screen size */
  border-radius: 20px;
}

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

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

.modal-button {
  background-color: #4caf50; /* Match your page's color scheme */
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}

.modal-button:hover {
  background-color: #45a049; /* Darker shade for hover effect */
}
/* Modal for playlist creation */
.modal1 {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content1 {
  background-color: rgba(0, 187, 249, 0.8);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 30px;
  border: 1px solid #888;
  width: 50%; /* Could be more or less, depending on screen size */
  border-radius: 20px;
  text-align: center; /* Center the text and loader */
}

/* Loader styling */
.loader {
  width: 50px; /* Adjust width for better visibility */
  height: 50px; /* Adjust height for better visibility */
  margin: 20px auto; /* Center loader horizontally */
  position: relative;
  animation: flippx 2s infinite linear; /* Animation */
}

.loader:before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(241, 91, 181);
  transform-origin: -24px 50%;
  animation: spin 1s infinite linear; /* Spinner effect */
}

.loader:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0, 245, 212); /* Loader color */
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Keyframe animations */
@keyframes flippx {
  0%, 49% {
    transform: scaleX(1);
  }
  50%, 100% {
    transform: scaleX(-1);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg); /* Spinner rotation */
  }
}


/*models for empty search box*/
/* pop for to select after playlist is created*/
.modal2 {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content2 {
  background-color: rgba(0, 187, 249, 0.8);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 40%; /* Could be more or less, depending on screen size */
  border-radius: 20px;
}

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

.close2:hover,
.close2:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal2-button {
  background-color: #4caf50; /* Match your page's color scheme */
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}

.modal2-button:hover {
  background-color: #45a049; /* Darker shade for hover effect */
}
/* Style for the submit button */
input[type="submit"] {
  font-size: 1.5em;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #ff4081;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hover effect for the submit button */
input[type="submit"]:hover {
  background: #d00053;
}




/* Responsive design for smaller screens */
@media (max-width: 768px) {
  #song_search {
    width: 80%;
  }
}
.music-note {
  position: absolute;
  font-size: 24px;
  color: #ff4081; /* Pink */
  animation: flyUp 1s ease-out forwards;
  pointer-events: none; /* Make sure notes don't interfere with other interactions */
}

@keyframes flyUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}
/* Styling for Connect to Spotify Button */
.spotify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: black; /* Spotify Green */
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
}

.spotify-button:hover {
  background-color: #1ed760; /* Lighter green for hover effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.spotify-logo {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Styling for Profile Info Section */
.profile-info {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align items to the right */
  gap: 15px; /* Spacing between elements */
  width: 100%; /* Full width for alignment */
}

/* Styling for Profile Picture */
.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
  border: 2px solid #fff; /* White border for separation */
  transition: transform 0.3s ease;
  object-fit: cover;
}

.profile-pic:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Styling for Logout Button */
.logout-button {
  background-color: red; /* Red shade for logout */
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

.logout-button:hover {
  background-color: #ff4569; /* Slightly lighter red for hover */
  transform: translateY(-2px); /* Lift effect */
}

/* Container for the back button */
.back-button-container {
  position: absolute; /* Ensure it doesn't interfere with other elements */
  top: 20px; /* Adjust position as needed */
  left: 20px; /* Adjust position as needed */
  z-index: 10; /* Make sure it stays on top */
}

/* Styling for Back to Main Page Button */
.back-button {
  display: inline-block;
  background-color: #1db954; /* Spotify Green */
  color: #fff; /* White text for contrast */
  font-weight: bold;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 30px; /* Rounded corners */
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  border: none;
}

/* Hover effect for the back button */
.back-button:hover {
  background-color: #1ed760; /* Lighter green for hover */
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.flashes {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999; /* Ensure it's on top */
  width: 80%;
  max-width: 600px; /* Adjust the max-width as needed */
}

.flashes ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.flashes li {
  color: #d9534f; /* Red color for error messages */
  margin-bottom: 10px;
  font-size: 16px;
}

.flashes button {
  background-color: #ff4081; /* Match your page's color scheme */
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.flashes button:hover {
  background-color: #e6397e; /* Darker shade for hover effect */
}

.flashes .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.flashes .close-button:hover {
  color: #ff4081;
}