* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Rajdhani", sans-serif;
    background: #000;
    color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


body {
    background: radial-gradient(circle at center, #07000a, #10011b, #030314, #1a0212);            
    background-attachment: fixed; /* Fix the background for a smoother look */
    background-blend-mode: overlay; /* Add depth to the colors */
  }

.container {
    flex: 1; /* Ensures the container grows to fill available space */
    width: 80%;
    margin: 0 auto;
    text-align: center; /* Center align the content */
    max-width: 900px;
}

.footer-nav {
    position: relative; /* Allow the footer to sit at the bottom of the content */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for visibility */
    text-align: center;
    padding: 3rem 0;
    left: 0;
}
.footer-nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.footer-nav a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.header .header-logo {
    display: inline-block;
    line-height: 0;
}

.header .header-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@media (max-width: 600px) {
    .header .header-logo img {
        height: 36px;
    }
}


.purpleGlass {
    background: rgba(67, 22, 150, 0.25);
    box-shadow: 0 8px 32px 0 rgba(112, 31, 135, 0.37);
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.greenGlass {
    background: rgba(3, 112, 116, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 107, 135, 0.37);
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
}


.logoArea {
    z-index: 1000;
    border-radius: 8px;
    background: rgba(38, 12, 85, 1);
    max-width: 639px;
    text-align: left;
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: space-between; /* Distribute space between image and divs */
    text-align: center;
    margin: 0 auto; /* Center the element horizontally */
}

.logoArea img {
    width: 60%; /* Image takes 60% of the space */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
}

.logoArea .auth-buttons {
    font-size: 14px;
    border-radius: 0.5rem;
    flex-direction: row;        
    gap: 10px; /* Adds space between Free Sign Up and Log In */
    margin-left: auto; /* Push the buttons to the right */
    width: 100px; /* Set width for the buttons area */
    background:  #008B9D;
    text-align: center;
    margin-bottom: 3px;
    cursor: pointer;
}
.logoArea .auth-buttons:hover {
    background: linear-gradient(135deg, #150590, #008B9D);  
}

.logoArea div {
    text-align: center;
    padding: 3px 6px;
    
}



h1, h2 {
    color: #fff;
}

.hidden {
    display: none;
}

#make-music-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

#make-music-button:hover {
    background-color: #0056b3;
}

#create-song {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

label {
    display: block;
    margin-top: 10px;
}

input[type="text"], textarea {
    width: 100%;
    max-width: 600px;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

button {
    font-family: "Rajdhani", sans-serif;
    padding: 6px 15px;
    background-color: #008B9D;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 1rem;
}



button:hover {
    background-color: #2F1E50;
}

/* Style for the small instrumental button */
.small-button {
    font-size: 12px;
    padding: 2px 6px;
    background-color: #008B9D;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.small-button:hover {
    background-color: #2F1E50;
}

.player {
    border-radius: 8px;
    box-shadow: 0 0 8px #fff;
    box-reflect: below 10px linear-gradient(transparent, transparent, #0005);
    padding-bottom: 10px; /* Add some space below the image for the title */        
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    display: inline-flex; /* Shrink to fit contents */
    align-items: center;
    margin: 0 auto 20px; /* Centering via auto margins */
    width: 100%; /* Changed to full width */
    max-width: 800px; /* Limit max width */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    text-align: left; /* Align content inside player if needed */    
}
.player {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
}
.playerControls {
    display: flex;
    flex-direction: column;
    width: calc(100% - 150px); /* Adjust based on thumbnail size */
}

#player-thumbnail {
    max-height: 121px;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent shrinking */
}

#audio-player {
    
    color: #fff; /* Set text color */
    width: 94%; /* Full-width player */    
    height: 40px; /* Set a uniform height for the player */
}



#songs {
    margin-top: 0.5rem;
}
#songs li div strong {
    display: inline;
    vertical-align: middle; /* Aligns the text vertically in the middle */
}


.song-controls {
    display: inline-block; /* Ensures the controls div stays on the same line as the strong tag */
    vertical-align: middle; /* Aligns the controls vertically in the middle */
    margin-left: 10px; /* Adds some spacing between the title and the controls */
}

.songTags, .lyrics-container {
    margin-top: 10px; /* Ensures these elements are displayed below the title and controls */
}



#player-song-title {
    font-size: 1.2em;
    font-weight: bold;
}

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

li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

li img {
    height: 66px;
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
    vertical-align: top; /* Ensure the thumbnail aligns to the top */
}

.carousel-item {
    position: relative;
    text-align: center;
    color: white;
}

* {
    margin: 0;
    padding: 0;
}


#music-container {
    position: absolute;
    top: 0;
    left: 0;
}

#audio-player {
    width: 94%;    
}

#spectral-graph, #audio-player {
    border-radius: 6px;    
    margin: 0.25rem 0 0;
}

#repeat-control, #autoplay-control {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#repeat-icon, #autoplay-icon {
    font-size: 24px;
    color: rgba(206, 205, 205, 0.25);
    transition: color 0.3s ease;
    margin-left: 6px;
}

#repeat-icon.active, #autoplay-icon.active {    
    color: #cbcaca; 
}

#prompt {
    min-height: 300px;
    max-width: 50%;
}

.tabs {    
    position: relative;
    display: flex;    
    z-index: 1000;
    padding-left: 15px;    
    margin: 0 auto -1px;
    justify-content: center;
    align-content: space-between;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    font-family: "Rajdhani", sans-serif;
    font-size: 21px;
    padding: 10px 20px;
    color: #E0E0E0;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 1rem;
    
    background: linear-gradient(135deg, #25037a, #80047c);
}

.tab i {
    margin-right: 8px;
}

.tab:hover {
    background: linear-gradient(135deg, #80047c, #25037a);
    transform: translateY(-2px);
}

.tab:active {
    transform: translateY(0);
}

.tab.active {
    background-color: #008B9D;
}


.tab-content {
    display: none;    
    padding: 20px;    
    border-radius: 16px;
    backdrop-filter: blur(10px);    
    text-align: left;
    margin: 0 auto 20px;
    width: 900px;
}

.tab-content.active {
    display: block;
}

#step-2.hidden {
    display: none;
}

/* Adjust spacing and layout as needed */
#step-1, #step-2 {
    margin-bottom: 20px;
}

.make-new-song-button, .update-account-button {
    padding: 9px 21px;
    font-size: 15px;
}

/* Ensure buttons are consistently styled */
#generate-lyrics-button, .make-new-song-button, .update-account-button {
    padding: 9px 21px;
    font-size: 15px;
    margin-top: 10px;
    background-color: #008B9D;
    border: 1px solid #008B9D;
    color: #fff;    
    border-radius: 4px;
    cursor: pointer;
}

#generate-lyrics-button:hover, .make-new-song-button:hover, .update-account-button:hover {
    background-color: #2F1E50;
    border: 1px solid #fff;
}

.exampleTags {
    font-size: 0.75rem;
    color: cadetblue;
}

/* Tag styles for exampleTags */
.exampleTags span {
    display: inline-block;
    background-color: #024f4d;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    margin: 2px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Hover effect for tags */
.exampleTags span:hover {
    background-color: #2F1E50;
}

/* Custom Swal2 Styles */
.swal2-custom {
    background-color: rgba(18, 18, 18, 1) !important; /* Background color */
    color: #FFFFFF !important; /* Text color */    
    background: rgba(67, 22, 150, 0.25);
    box-shadow: 0 8px 32px 0 rgba(112, 31, 135, 0.37);
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );

}

.swal2-custom .swal2-title {
    color: #024f4d !important; /* Title color */
}

.swal2-custom .swal2-icon.swal2-error {
    border-color: #ff4d4d !important; /* Error icon border color */
    color: #ff4d4d !important; /* Error icon color */
}

.swal2-custom .swal2-icon.swal2-success {
    border-color: #28a745 !important; /* Success icon border color */
    color: #28a745 !important; /* Success icon color */
}

.swal2-custom .swal2-confirm {
    background-color: #024f4d !important; /* Confirm button background color */
    border: none !important;
}

.songTags {
    margin-top: 6px;
    font-size: 12px;
    color: rgb(212, 212, 212);
}

.rajdhani-light {
    font-family: "Rajdhani", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .rajdhani-regular {
    font-family: "Rajdhani", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .rajdhani-medium {
    font-family: "Rajdhani", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .rajdhani-semibold {
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .rajdhani-bold {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-style: normal;
  }

  /* Updated Button Styles */
    .play-button, .download-button, .lyrics-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        
        font-size: 14px;        
        color: #E0E0E0;
        border: none;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: background 0.3s ease, transform 0.3s ease;
        cursor: pointer;
        margin-right: 10px;
    }

    .play-button i, .download-button i, .lyrics-button i {
        margin-right: 8px;
    }

    .play-button:hover, .download-button:hover, .lyrics-button:hover {
        background: linear-gradient(135deg, #25037a, #80047c);
        transform: translateY(-2px);
    }

    .play-button:active, .download-button:active, .lyrics-button:active {        
        transform: translateY(0);
    }

  
/* Responsive Styles */
@media (max-width: 600px) {

    body {        
        perspective: 200px;        
    }  
    
    
    .logoArea {
        min-width: 80%;    
    }

    #drag-container {
        min-height: 200px;
        margin-bottom: 2rem;        
    }    

    #spin-container {
        will-change: transform;
    }    

    /* Adjust Carousel */
    #spin-container div {
        width: 75px;
        padding: 6px;     
        font-size: 10px;   
        overflow-x: hidden;
    }

    #spin-container img {
        width: 80px;
        height: auto;        
    }

    .tab-content {     
        padding: 6px;   
        max-width: 95%; 
    }

    .container {
        flex: 1; /* This makes sure the container grows to fill available space */
        width: 80%;        
        margin: 0 auto;
        text-align: center;
    }
    

    /* Adjust Player */
    .player {
        flex-direction: column;
        padding: 10px;
        text-align: center;
        display: flex;
        width: auto;
    }

    #player-thumbnail {
        max-height: 80px;
        margin: 0 auto 10px;
    }

    
    .playerControls {        
        width: calc(100% - 80px); /* Adjust based on thumbnail size */
    }

    /* Adjust Your Songs */
    #songs li {
        
        align-items: flex-start;
    }

    #songs li img {
        width: 100%;
        max-width: 60px;
        margin-bottom: 10px;
    }

    #songs li div {
        width: 100%;        
        
    }
    
    #songs li div strong {
        display: block;
        font-size: 18px;
    }
    .songTags {
        font-size: 12px;
    }
    #songs li div button {
        font-size: 13px;
        padding: 3px 6px;
        margin: 0;
    }

    .tab {        
        font-size: 15px;        
        padding: 6px;        
        margin: 0px 3px 1rem 3px;
    }
    .tabs {
        padding-left: 0px;
        width: 100%;
    }

    #prompt {        
        max-width: 90%;
    }

    input[type="text"], textarea {
        width: 90%;
    }

    .player {
        flex-direction: row; /* Make the player elements align in a row */
        padding: 6px;
        margin-top: 1rem;
    }

    #player-thumbnail {        
        margin: 0 auto 10px;
        max-height: 80px; /* Reduce thumbnail size */        
        max-height: 80px;
        margin: 0 5px 0 0;
        flex-shrink: 0;
    }

    .playerControls {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: calc(100% - 90px); /* Adjust width to account for thumbnail */
    }

    #player-song-title {
        font-size: 1.1em;
        margin-bottom: 0px; /* Add space below the title */
        text-align: left; /* Align title to the left */
    }

    #audio-player {
        width: 100%;
    }

    canvas#spectral-graph {
        width: 100%;        
    }
    #audio-player {
        font-size: 11px; /* Set font size to 11px for audio player controls */
    }

    #repeat-icon, #autoplay-icon {
        font-size: 15px; /* Adjust the icon size to match the smaller font */
        margin-left: 3px; /* Adjust spacing to prevent overlap */
    }        

    .drag-wrapper {
        margin-top: -1rem;
    }
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes spinRevert {
    from {
        transform: rotateY(360deg);
    }
    to {
        transform: rotateY(0deg);
    }
}
