﻿/* ==========================================================================
   Lyrics Companion Application Layout - Simplified Viewport
   ========================================================================== */

body {
    background-color: #050816;
    color: gold;
}




/* Main layout container */
.lyrics-container {
    max-width: 550px; /* Restricts the whole app width on desktop */
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

/* Dropdown and Navigation Header */
.dropdown-wrapper {
    margin-bottom: 25px;
}

    .dropdown-wrapper label {
        font-weight: 600;
        margin-right: 10px;
        color: #333;
    }

#dollySelect {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    max-width: 100%;
}

/* The Viewport Frame holding the slider and side buttons */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

/* Horizontal Scroll Window Engine */
.tracks-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #111; /* Dark framing highlights the parchment color */
    align-items: flex-start;
    /* Hide native scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .tracks-slider::-webkit-scrollbar {
        display: none;
    }

/* Individual Slide Item Container */
.slide-item {
    min-width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 15px;
    /* Restricts vertical height and enables inner scrolling */
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    /* The Image Custom Resizing */
    .slide-item img {
        width: 100%;
        max-width: 420px; /* Forcefully shrinks the tall image on desktop screens */
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 4px;
        max-height: 75vh; /* Prevents the image from exceeding the viewport height */   
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

/* Navigation Arrow Buttons - Pushed outward cleanly */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .nav-btn:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

    /* Place buttons completely clear of the narrower 420px image boundaries */
    .nav-btn.prev {
        left: -55px;
    }

    .nav-btn.next {
        right: -55px;
    }

/* Mobile Only: Maximize screen space for fluid thumb swiping */
@media (max-width: 600px) {
    .nav-btn {
        display: none; /* Hide arrows on mobile */
    }

    .lyrics-container {
        padding: 10px;
    }

    .slide-item {
        padding: 5px;
        max-height: 70vh;
    }

        .slide-item img {
            max-width: 100%; /* Let the image scale to full mobile screen width */
        }
}
