﻿
canvas {
    display: block;
    margin: 2rem auto;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

#pdf-album-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
}

    #pdf-album-container canvas {
        max-width: 100%;
        height: auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }


.album-page {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2rem;
    width: 950px;
    height: 675px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}

.album-page.fade-in {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.album-left-side {
    /*    background-color:burlywood;*/
    background-image: url('../Images/JukeBox.png');
    background-repeat: no-repeat;
    display: flex;
    width: 400px;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    height: 100%; /* or a fixed height like 700px */
}

.album-right-side {
    margin-top: 0px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    max-height: 600px;
    padding-top: 1rem;
    box-sizing: border-box;
}

.album-right-side {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering (optional) */
}

.album-overview {
    clear: both;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f8f8; /* Or match your textured brown */
    border-top: 1px solid #ccc;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}


.lyric-content {
    text-align: center;
    font-family: 'Dancing Script';
    font-size: 3rem;
    color: #442c1e;
    margin-top: 0px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
    padding-bottom:10px;
}

.prose-content {
    text-align: center;
    font-family: 'Dancing Script';
    font-size: 2.5rem;
    color: #442c1e;
    margin-top: 0px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.prose-content {
    max-height: 600px; /* Adjust height as needed */
    overflow-y: auto;
    padding-right: 10px; /* Optional: adds space for scrollbar */
}

    .prose-content::-webkit-scrollbar {
        width: 8px;
    }

    .prose-content::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

    .prose-content::-webkit-scrollbar-track {
        background-color: #f0f0f0;
    }


.album-scrollable {
    padding-top: 0;
    max-height: 500px;
    overflow-y: auto;
    background-color: transparent;
    scroll-behavior: smooth;
}

.lyrics-wrapper {
    background-color: whitesmoke;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1; /* Fill available vertical space */
    margin: 2rem auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.image-wrapper {
    margin-top: 8rem; /* Locks image position */
}

.album-centered-image {
    width: 250px;
    border-radius: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.audio-wrapper {
    margin-top: 3em; /* Independent spacing */
}

.album-audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.album-return-link {
    position:inherit;
    left: 0;
    color: #666;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .album-return-link:hover {
        opacity: 1;
        transform: translateX(-2px);
    }


/* ===========================
   Responsive: Tablet
   =========================== */

@media (max-width: 768px) {

    .album-page {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%; /* ✅ avoids scrollbar overflow */
        height: 100vh;
        max-width: 100%; /* ✅ ensures it never exceeds viewport */
        padding: 1rem;
        margin-top: 1rem;
        box-sizing: border-box; /* ✅ includes padding in width calc */
    }

    .album-left-side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        height: auto; /* or set a fixed height if needed */
    }

    .album-right-side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        height: auto; /* or set a fixed height if needed */
        width: 100% !important;
        margin: 0 auto; 
    }

    .prose-content {
        font-size: 4rem;
        line-height: 1.6;
        text-align: left;
        padding: 0 0.5rem;
        width: 90%;
        opacity: 0;
        animation: fadeIn 1s ease forwards;
        animation-delay: 0.3s;
    }

    .image-wrapper {
        margin-top: 16rem; /* Locks image position */
        margin-left: -1rem;
    }

    .album-centered-image {
        margin-left: 0;
        width: 250px;
        border-radius: 12px;
        opacity: 0.9;
        transition: opacity 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    .album-audio-player {
        width: 80%;
        margin-left: 3rem;
    }

    .lyrics-wrapper {
        background-color: whitesmoke;
        margin-left: 0;
        max-width: 100%;
        border-radius: 12px;
        box-shadow: none;
        width: 100%;
    }

    .lyric-content {
        text-align: center;
        font-family: 'Dancing Script';
        font-size: 4rem;
        color: #442c1e;
        padding-right: 2rem;
        width: 100%;
        animation: fadeIn 1s ease forwards;
        animation-delay: 0.3s;
    }

    #pdf-album-container {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0.5rem;
    }

    .album-scrollable {
        padding-top: 0;
        max-height: 300px;
        width: 100%;
        overflow-y: auto;
        background-color: transparent;
        scroll-behavior: smooth;
    }
   
    .album-return-link {
        display: block;
        margin: 2rem auto 1rem auto;
        text-align: center;
        font-size: 1.2rem;
    }
}

/* ===========================
   Responsive: Phone
   =========================== */

@media (max-width: 480px) {
    .album-page {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100vw !important;
        height: auto !important;
        padding: 1rem;
        margin-top: 1rem;
    }

    .album-left-side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        height: auto; /* or set a fixed height if needed */
    }

    .album-right-side {
        display: flex;
        flex-direction: column;
        align-items: center; /* horizontal centering (optional) */
        justify-content: flex-start; /* 🔥 vertical alignment to top */
        padding-top: 1rem; /* optional spacing from top */
        max-width: 600px; /* or whatever suits your layout */
        margin-left: 0;
        margin-right: auto;
        width: 100vw !important;
        height: 600px !important;
        margin-bottom: 1.5rem;
    }

   .lyrics-wrapper {
    background-color:whitesmoke;
    margin-left:0;
    max-width: 100vw;
    border-radius:12px;
    box-shadow: none;
  }

    .lyric-content {
        font-family: 'Dancing Script';
        font-size: 4rem;
        font-weight:700;
        text-align: center;
        color: #442c1e;
        padding-right: 2rem;
        animation: fadeIn 1s ease forwards;
        animation-delay: 0.3s;
    }

  .prose-content {
        width: 90%;
        opacity: 0;
        animation: fadeIn 1s ease forwards;
        animation-delay: 0.3s;
        font-size: 3rem;
        line-height: 1.6;
        text-align: left;
        padding: 0 0.5rem;
    }

  .image-wrapper {
        margin-top:16rem; /* Locks image position */
        margin-left:-1rem;
    }

  .album-centered-image {
        margin-left: 0;
        width: 250px;
        border-radius: 12px;
        opacity: 0.9;
        transition: opacity 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    #pdf-album-container {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0.5rem;
    }

    .album-scrollable {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


  .album-audio-player {
        width: 80%;
        margin-left:3rem;     
    }

  .album-return-link {
    display: block;
    margin: 2rem auto 1rem auto;
    text-align: center;
    font-size: 1.2rem;
  }
}

