/* styles.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(232,242,232);
    font-family: 'Gentium Book Plus', serif; /* Applying the Gentium Book font */
    overflow: hidden; /* Prevents scrollbars from appearing */
}

.container {
    position: absolute; /* Positioned above images */
    z-index: 10; /* Ensures text is on top */
    text-align:center; /* Centers text horizontally */
    padding: 10px;
    background-color: rgba(232, 242, 232, 0.8);
    border-radius: 10px;
}

h1 {
    margin: 0;
    font-size: 2rem; /* Adjust as needed */
    color: rgb(40, 40, 40); /* Adjust color if needed */
}

h2 {
    margin: 0;
    font-size: 2.5rem; /* Adjust as needed */
        /* Set the background gradient */
        background: linear-gradient(to right, #ff6f61, #ffbc00, #ffeb3b);

        /* Apply the gradient as text color using background-clip */
        -webkit-background-clip: text; /* For WebKit browsers */
        background-clip: text; /* Standard syntax */
        
        /* Ensure text is transparent so the gradient shows through */
        color: transparent;
    
        /* Optional: Adjust font size and weight */
    
        /* Optional: Add some padding and center the text */
}

h3 {
    margin: 0;
    font-size: 1rem; /* Adjust as needed */
    color: rgb(40, 40, 40); /* Adjust color if needed */
}

.image-container {
    position: relative;
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity:0.45;
}

.image {
    position: absolute;
    height: 80vh; /* 80% of the viewport height */
    width: auto; /* Auto width to maintain aspect ratio */
    animation-duration: 60s; /* Duration for one complete cycle */
    animation-timing-function:linear;
    animation-iteration-count: infinite;
    object-fit: cover; /* Ensures the image covers the container properly */
}

.image-1 {
    animation-name: crossfade-loop-1, rotate;
}

.image-2 {
    animation-name: crossfade-loop-2, rotate;
    
}

@keyframes crossfade-loop-1 {
    0% { opacity: 1; }
    25% { opacity: 0; }
    50% { opacity: 0; } 
    75% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes crossfade-loop-2 {
    0% { opacity: 0; }
    25% { opacity: 1; }
    50% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-container{
width: 20vw;
}
.player-container {
    text-align: left;
    font-family: 'Gentium Book Plus', serif;
    font-weight: 500;
    font-size: 10pt;
    width: 20vw;
    background-color: rgb(232,242,232);
    border-radius: 5px;
    opacity: 0.89;
}

.tracklist {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.tracklist li {
    cursor: pointer;
    margin: 5px;
    padding: 8px;
    background-color: rgb(232,242,232);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tracklist li.active {
    background-color: #303437;
    color: rgb(232,242,232);
}

.tracklist li:hover {
    background-color: rgb(193, 236, 193);
}

#currentTrackTitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 1px;
    text-align: left;
}

#customAudioPlayer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#currentTrackName {
    margin-right: 10px;
}

.control-btn {
    width: 60px;
    height: 60px;
    margin: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(232,242,232);
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
    border-radius: 50%;
    font-size: 40pt;
    transition: background-color 0.3s, transform 0.3s;
}

.control-btn:hover {
    background-color: #c0c0c0;
    transform: scale(1.1);
}

.control-btn i {
    font-size: 20px;
    color: #222222;
}

.progress-bar {
    flex-grow: 2;
    height: 9px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: inset 6px 6px 12px #d1d1d1, inset -6px -6px 12px #ffffff;
    position: relative;
    margin: 0 10px;
    cursor: pointer;
}

.progress-indicator {
    height: 100%;
    background-color: #2f3e49;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    box-shadow: 3px 3px 6px #000;
}

.time-display {
    margin: 0 5px;
}

/* Media Queries for Mobile Devices */
@media (max-width: 600px) {
   html, body{
    overflow-y: auto;
   }
    .container{
        width: 91vw;
        height: 90vh;
        margin-top: 5rem;
        margin-bottom: 5rem;
    }
    .player-container {
        width: 90vw; /* Make player container full width on mobile */
        font-size: 10pt; /* Further reduced font size for mobile */
    }
    
    .text-container {
        width: 90vw; /* Make player container full width on mobile */
    }

    .control-btn {
        width: 40px; /* Further reduced size for mobile */
        height: 40px; /* Further reduced size for mobile */
        font-size: 25pt; /* Adjusted size for mobile */
    }
    
    .progress-bar {
        height: 5px; /* Further reduced size for mobile */
        margin: 0 2px; /* Further reduced margin for mobile */
    }
    
    .progress-indicator {
        box-shadow: 2px 2px 4px #000;
    }
}

